@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.10

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 (1610) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +72 -2
  3. package/bin/build-dist.mjs +145 -0
  4. package/bin/ns-compiled-adapter.js +46 -0
  5. package/bin/ns-compiled-doctor.js +15 -0
  6. package/bin/ns-compiled-retrace.js +16 -0
  7. package/bin/ns-compiled-verify.js +15 -0
  8. package/bin/ns-compiled.js +26 -0
  9. package/bin/strip-types.js +18 -0
  10. package/config.d.ts +41 -0
  11. package/dist/adapters/active.js +59 -0
  12. package/dist/adapters/first-party.js +12 -0
  13. package/dist/adapters/framework.js +135 -0
  14. package/dist/adapters/hooks.js +115 -0
  15. package/dist/adapters/load.js +188 -0
  16. package/dist/api/adapter-api.js +2 -0
  17. package/dist/api/binding-api.js +11 -0
  18. package/dist/api/elements.js +21 -0
  19. package/dist/api/ir.js +29 -0
  20. package/dist/api/listview.js +27 -0
  21. package/dist/api/rewrite.js +98 -0
  22. package/dist/api/typescript-internal.d.ts +35 -0
  23. package/dist/cli/commands/compile-android.cjs +79 -0
  24. package/dist/cli/commands/compile-doctor.cjs +45 -0
  25. package/dist/cli/commands/compile-ios.cjs +77 -0
  26. package/dist/cli/commands/compile-retrace.cjs +40 -0
  27. package/dist/cli/commands/compile-verify.cjs +73 -0
  28. package/dist/cli/contracts.cjs +36 -0
  29. package/dist/cli/runtime.cjs +166 -0
  30. package/dist/css/css.js +118 -0
  31. package/dist/css/worker.js +242 -0
  32. package/dist/driver/cli.js +95 -0
  33. package/dist/driver/compile.js +571 -0
  34. package/dist/driver/contract.js +136 -0
  35. package/dist/driver/mirror.js +71 -0
  36. package/dist/driver/paths.js +19 -0
  37. package/dist/driver/preflight.js +206 -0
  38. package/dist/driver/toolchain.js +46 -0
  39. package/dist/driver/unimplemented.js +326 -0
  40. package/dist/kit/core-source.js +107 -0
  41. package/dist/kit/kit-index.js +105 -0
  42. package/dist/kit/manifest.js +468 -0
  43. package/dist/kit/overlay.js +56 -0
  44. package/dist/kit/swift-declarations.js +643 -0
  45. package/dist/kotlin/access.js +635 -0
  46. package/dist/kotlin/app-modules.js +111 -0
  47. package/dist/kotlin/arguments.js +398 -0
  48. package/dist/kotlin/assignment.js +226 -0
  49. package/dist/kotlin/builtins.js +575 -0
  50. package/dist/kotlin/calls.js +519 -0
  51. package/dist/kotlin/checked.js +61 -0
  52. package/dist/kotlin/class-accessors.js +129 -0
  53. package/dist/kotlin/class-constructor.js +129 -0
  54. package/dist/kotlin/class-declaration.js +337 -0
  55. package/dist/kotlin/class-fields.js +362 -0
  56. package/dist/kotlin/class-methods.js +213 -0
  57. package/dist/kotlin/classes.js +333 -0
  58. package/dist/kotlin/components.js +450 -0
  59. package/dist/kotlin/construction.js +235 -0
  60. package/dist/kotlin/control-flow.js +188 -0
  61. package/dist/kotlin/conversion.js +513 -0
  62. package/dist/kotlin/core-api.js +762 -0
  63. package/dist/kotlin/core-index.js +228 -0
  64. package/dist/kotlin/declarations.js +461 -0
  65. package/dist/kotlin/diagnostics.js +28 -0
  66. package/dist/kotlin/expression-statements.js +227 -0
  67. package/dist/kotlin/expressions.js +468 -0
  68. package/dist/kotlin/functions.js +479 -0
  69. package/dist/kotlin/global-calls.js +307 -0
  70. package/dist/kotlin/install.js +89 -0
  71. package/dist/kotlin/key-plans.js +117 -0
  72. package/dist/kotlin/kit-gen.js +581 -0
  73. package/dist/kotlin/ktfmt.js +60 -0
  74. package/dist/kotlin/library.js +62 -0
  75. package/dist/kotlin/literals.js +593 -0
  76. package/dist/kotlin/loops.js +185 -0
  77. package/dist/kotlin/mixins.js +103 -0
  78. package/dist/kotlin/modules.js +769 -0
  79. package/dist/kotlin/names.js +273 -0
  80. package/dist/kotlin/narrowing.js +180 -0
  81. package/dist/kotlin/native/api.js +117 -0
  82. package/dist/kotlin/native/bridging.js +254 -0
  83. package/dist/kotlin/native/calls.js +408 -0
  84. package/dist/kotlin/native/classfiles.js +524 -0
  85. package/dist/kotlin/native/classpath.js +32 -0
  86. package/dist/kotlin/native/conversions.js +280 -0
  87. package/dist/kotlin/native/extend.js +302 -0
  88. package/dist/kotlin/native/members.js +240 -0
  89. package/dist/kotlin/native/overloads.js +253 -0
  90. package/dist/kotlin/native/subclasses.js +378 -0
  91. package/dist/kotlin/native/types.js +421 -0
  92. package/dist/kotlin/operators.js +449 -0
  93. package/dist/kotlin/optional-chains.js +279 -0
  94. package/dist/kotlin/overrides.js +835 -0
  95. package/dist/kotlin/placement.js +749 -0
  96. package/dist/kotlin/prototype-calls.js +154 -0
  97. package/dist/kotlin/render.js +363 -0
  98. package/dist/kotlin/state-backend.js +123 -0
  99. package/dist/kotlin/statements.js +426 -0
  100. package/dist/kotlin/static-calls.js +296 -0
  101. package/dist/kotlin/syntax.js +689 -0
  102. package/dist/kotlin/translator-types.js +1 -0
  103. package/dist/kotlin/translator.js +810 -0
  104. package/dist/kotlin/type-facts.js +414 -0
  105. package/dist/kotlin/type-tests.js +250 -0
  106. package/dist/kotlin/types.js +662 -0
  107. package/dist/kotlin/untyped-values.js +356 -0
  108. package/dist/plugins/bindings-android.js +69 -0
  109. package/dist/plugins/bindings.js +93 -0
  110. package/dist/plugins/native-android.js +582 -0
  111. package/dist/plugins/native-ios.js +632 -0
  112. package/dist/plugins/resolve.js +108 -0
  113. package/dist/plugins/source.js +1124 -0
  114. package/dist/program/app-modules.js +52 -0
  115. package/dist/program/app-paths.js +60 -0
  116. package/dist/program/build-caches.js +14 -0
  117. package/dist/program/build-context.js +48 -0
  118. package/dist/program/constructor-factories.js +134 -0
  119. package/dist/program/core-facts.js +151 -0
  120. package/dist/program/core-patches.js +59 -0
  121. package/dist/program/env.js +4 -0
  122. package/dist/program/module-order.js +123 -0
  123. package/dist/program/order.js +23 -0
  124. package/dist/program/patterns.js +99 -0
  125. package/dist/program/platform.js +401 -0
  126. package/dist/program/program.js +726 -0
  127. package/dist/program/properties.js +61 -0
  128. package/dist/program/reach.js +444 -0
  129. package/dist/program/source-lines.js +268 -0
  130. package/dist/program/stable-names.js +112 -0
  131. package/dist/semantics/apis/api.js +31 -0
  132. package/dist/semantics/apis/array.js +69 -0
  133. package/dist/semantics/apis/bigint.js +53 -0
  134. package/dist/semantics/apis/console.js +29 -0
  135. package/dist/semantics/apis/date.js +7 -0
  136. package/dist/semantics/apis/globals.js +40 -0
  137. package/dist/semantics/apis/json.js +6 -0
  138. package/dist/semantics/apis/mapset.js +21 -0
  139. package/dist/semantics/apis/math.js +48 -0
  140. package/dist/semantics/apis/number.js +33 -0
  141. package/dist/semantics/apis/object.js +25 -0
  142. package/dist/semantics/apis/operators.js +316 -0
  143. package/dist/semantics/apis/promise.js +22 -0
  144. package/dist/semantics/apis/regexp.js +15 -0
  145. package/dist/semantics/apis/statics.js +61 -0
  146. package/dist/semantics/apis/string.js +45 -0
  147. package/dist/semantics/ast.js +315 -0
  148. package/dist/semantics/async.js +582 -0
  149. package/dist/semantics/class-plan.js +168 -0
  150. package/dist/semantics/classes.js +562 -0
  151. package/dist/semantics/config.js +29 -0
  152. package/dist/semantics/constant-init.js +107 -0
  153. package/dist/semantics/conversion.js +255 -0
  154. package/dist/semantics/decision-trace.js +304 -0
  155. package/dist/semantics/facts.js +433 -0
  156. package/dist/semantics/forms/by-name.js +338 -0
  157. package/dist/semantics/forms/flow.js +336 -0
  158. package/dist/semantics/forms/forms.js +311 -0
  159. package/dist/semantics/forms/observers.js +513 -0
  160. package/dist/semantics/forms/open.js +218 -0
  161. package/dist/semantics/forms/place-calls.js +387 -0
  162. package/dist/semantics/forms/placements.js +296 -0
  163. package/dist/semantics/forms/results.js +307 -0
  164. package/dist/semantics/forms/union-find.js +157 -0
  165. package/dist/semantics/globals.js +46 -0
  166. package/dist/semantics/lang/arrays.js +238 -0
  167. package/dist/semantics/lang/fields.js +211 -0
  168. package/dist/semantics/lang/members.js +277 -0
  169. package/dist/semantics/lang/prototypes.js +262 -0
  170. package/dist/semantics/lang/this-args.js +189 -0
  171. package/dist/semantics/lang.js +232 -0
  172. package/dist/semantics/ledger.js +157 -0
  173. package/dist/semantics/limits.js +11 -0
  174. package/dist/semantics/losses.js +201 -0
  175. package/dist/semantics/lowering-methods.js +42 -0
  176. package/dist/semantics/marks.js +39 -0
  177. package/dist/semantics/nullish.js +918 -0
  178. package/dist/semantics/observers.js +1 -0
  179. package/dist/semantics/placement.js +698 -0
  180. package/dist/semantics/platform-globals.js +20 -0
  181. package/dist/semantics/read-sites.js +29 -0
  182. package/dist/semantics/refusals.js +206 -0
  183. package/dist/semantics/refuse-construction.js +64 -0
  184. package/dist/semantics/refuse-receivers.js +189 -0
  185. package/dist/semantics/refuse-scope.js +82 -0
  186. package/dist/semantics/regexp.js +219 -0
  187. package/dist/semantics/result-shapes.js +203 -0
  188. package/dist/semantics/runtime.js +482 -0
  189. package/dist/semantics/shape-defined-keys.js +146 -0
  190. package/dist/semantics/shape-instance-keys.js +230 -0
  191. package/dist/semantics/shape-map.js +72 -0
  192. package/dist/semantics/shapes.js +660 -0
  193. package/dist/semantics/sharing.js +406 -0
  194. package/dist/semantics/signals.js +166 -0
  195. package/dist/semantics/spelled.js +45 -0
  196. package/dist/semantics/states/by-name.js +46 -0
  197. package/dist/semantics/states/elements.js +310 -0
  198. package/dist/semantics/states/fields.js +308 -0
  199. package/dist/semantics/states/foreign.js +208 -0
  200. package/dist/semantics/states/lenient.js +246 -0
  201. package/dist/semantics/states/missing.js +289 -0
  202. package/dist/semantics/states/nil.js +223 -0
  203. package/dist/semantics/states/parameters.js +191 -0
  204. package/dist/semantics/states/predicates.js +232 -0
  205. package/dist/semantics/states/reads.js +247 -0
  206. package/dist/semantics/states/results.js +113 -0
  207. package/dist/semantics/states/untrusted.js +141 -0
  208. package/dist/semantics/states/untyped.js +194 -0
  209. package/dist/semantics/states/value-states.js +422 -0
  210. package/dist/semantics/tdz.js +106 -0
  211. package/dist/semantics/threading.js +77 -0
  212. package/dist/semantics/throws.js +880 -0
  213. package/dist/semantics/top-names.js +59 -0
  214. package/dist/semantics/translator-methods.js +602 -0
  215. package/dist/semantics/trust.js +321 -0
  216. package/dist/semantics/type-methods.js +168 -0
  217. package/dist/semantics/type-step.js +116 -0
  218. package/dist/semantics/types.js +458 -0
  219. package/dist/semantics/worker-state.js +198 -0
  220. package/dist/swift/access.js +754 -0
  221. package/dist/swift/app-modules.js +41 -0
  222. package/dist/swift/arguments.js +237 -0
  223. package/dist/swift/assignment.js +270 -0
  224. package/dist/swift/availability.js +146 -0
  225. package/dist/swift/builtins.js +822 -0
  226. package/dist/swift/calls.js +493 -0
  227. package/dist/swift/casts.js +218 -0
  228. package/dist/swift/checked.js +433 -0
  229. package/dist/swift/class-accessors.js +139 -0
  230. package/dist/swift/class-constructor.js +144 -0
  231. package/dist/swift/class-declaration.js +308 -0
  232. package/dist/swift/class-fields.js +361 -0
  233. package/dist/swift/class-methods.js +247 -0
  234. package/dist/swift/classes.js +524 -0
  235. package/dist/swift/components.js +386 -0
  236. package/dist/swift/construction.js +291 -0
  237. package/dist/swift/control-flow.js +210 -0
  238. package/dist/swift/conversion.js +425 -0
  239. package/dist/swift/core-api.js +1068 -0
  240. package/dist/swift/declarations.js +389 -0
  241. package/dist/swift/enums.js +58 -0
  242. package/dist/swift/expression-statements.js +312 -0
  243. package/dist/swift/expressions.js +575 -0
  244. package/dist/swift/from-any.js +316 -0
  245. package/dist/swift/functions.js +498 -0
  246. package/dist/swift/generics.js +124 -0
  247. package/dist/swift/global-calls.js +217 -0
  248. package/dist/swift/install.js +109 -0
  249. package/dist/swift/key-plans.js +136 -0
  250. package/dist/swift/kit-gen.js +605 -0
  251. package/dist/swift/lenient.js +468 -0
  252. package/dist/swift/library.js +109 -0
  253. package/dist/swift/literals.js +509 -0
  254. package/dist/swift/loops.js +245 -0
  255. package/dist/swift/marks.js +212 -0
  256. package/dist/swift/members.js +253 -0
  257. package/dist/swift/method-values.js +179 -0
  258. package/dist/swift/mixins.js +113 -0
  259. package/dist/swift/modules.js +969 -0
  260. package/dist/swift/names.js +370 -0
  261. package/dist/swift/narrowing.js +170 -0
  262. package/dist/swift/native/api.js +269 -0
  263. package/dist/swift/native/bridging.js +240 -0
  264. package/dist/swift/native/calls.js +586 -0
  265. package/dist/swift/native/conversions.js +532 -0
  266. package/dist/swift/native/dispatch.js +218 -0
  267. package/dist/swift/native/members.js +416 -0
  268. package/dist/swift/native/sdk-tables.js +772 -0
  269. package/dist/swift/native/sdk-types.js +1 -0
  270. package/dist/swift/native/sdk.js +409 -0
  271. package/dist/swift/native/subclasses.js +533 -0
  272. package/dist/swift/object-classes.js +396 -0
  273. package/dist/swift/operators.js +575 -0
  274. package/dist/swift/optional-chains.js +405 -0
  275. package/dist/swift/parameters.js +210 -0
  276. package/dist/swift/placement.js +900 -0
  277. package/dist/swift/protocols.js +164 -0
  278. package/dist/swift/prototype-calls.js +227 -0
  279. package/dist/swift/render.js +385 -0
  280. package/dist/swift/results.js +370 -0
  281. package/dist/swift/state-backend.js +243 -0
  282. package/dist/swift/statements.js +505 -0
  283. package/dist/swift/static-calls.js +320 -0
  284. package/dist/swift/syntax.js +916 -0
  285. package/dist/swift/translator-types.js +1 -0
  286. package/dist/swift/translator.js +890 -0
  287. package/dist/swift/type-facts.js +530 -0
  288. package/dist/swift/type-tests.js +211 -0
  289. package/dist/swift/types.js +665 -0
  290. package/dist/targets/android/build.js +598 -0
  291. package/dist/targets/android/compose-mapping.js +218 -0
  292. package/dist/targets/android/deprecations.js +81 -0
  293. package/dist/targets/android/resources.js +80 -0
  294. package/dist/targets/ios/build.js +583 -0
  295. package/dist/targets/ios/core-native.js +149 -0
  296. package/dist/targets/ios/dependencies.js +464 -0
  297. package/dist/targets/ios/plist.js +127 -0
  298. package/dist/targets/ios/resources.js +285 -0
  299. package/dist/targets/ios/retrace.js +196 -0
  300. package/dist/targets/ios/signing.js +84 -0
  301. package/dist/targets/ios/xcodegen.js +39 -0
  302. package/dist/targets/resources.js +180 -0
  303. package/dist/template/model.js +38 -0
  304. package/dist/template/plan.js +576 -0
  305. package/dist/tools/doctor.js +172 -0
  306. package/dist/tools/retrace.js +116 -0
  307. package/dist/tools/verify.js +330 -0
  308. package/dist/types/adapter-api.d.ts +683 -0
  309. package/dist/types/binding-api.d.ts +48 -0
  310. package/dist/types/elements.d.ts +10 -0
  311. package/dist/types/ir.d.ts +245 -0
  312. package/dist/types/listview.d.ts +15 -0
  313. package/dist/types/rewrite.d.ts +18 -0
  314. package/dist/types/typescript-internal.d.ts +35 -0
  315. package/dist/xml/app.js +65 -0
  316. package/dist/xml/bindings.js +308 -0
  317. package/dist/xml/contexts.js +296 -0
  318. package/dist/xml/fold.js +170 -0
  319. package/dist/xml/keys.js +146 -0
  320. package/dist/xml/pages.js +550 -0
  321. package/dist/xml/plan.js +650 -0
  322. package/docs/CLI.md +131 -0
  323. package/docs/cli/compile-android.md +30 -0
  324. package/docs/cli/compile-doctor.md +18 -0
  325. package/docs/cli/compile-ios.md +30 -0
  326. package/docs/cli/compile-retrace.md +18 -0
  327. package/docs/cli/compile-verify.md +18 -0
  328. package/docs/cli/compile.md +15 -0
  329. package/kit-android/build.gradle.kts +65 -0
  330. package/kit-android/consumer-rules.pro +7 -0
  331. package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
  332. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
  333. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +39497 -0
  334. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
  335. package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
  336. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
  337. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
  338. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
  339. package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
  340. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
  341. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
  342. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
  343. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
  344. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
  345. package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
  346. package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
  347. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
  348. package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
  349. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
  350. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
  351. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
  352. package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
  353. package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
  354. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
  355. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
  356. package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
  357. package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
  358. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
  359. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
  360. package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
  361. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
  362. package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
  363. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
  364. package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
  365. package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
  366. package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
  367. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
  368. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
  369. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
  370. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
  371. package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
  372. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
  373. package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
  374. package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
  375. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
  376. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
  377. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
  378. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
  379. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
  380. package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
  381. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
  382. package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
  383. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
  384. package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
  385. package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
  386. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
  387. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
  388. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
  389. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
  390. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
  391. package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
  392. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
  393. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
  394. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
  395. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
  396. package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
  397. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
  398. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
  399. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
  400. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
  401. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
  402. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
  403. package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
  404. package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
  405. package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
  406. package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
  407. package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
  408. package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
  409. package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
  410. package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
  411. package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
  412. package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
  413. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
  414. package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
  415. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
  416. package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
  417. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
  418. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
  419. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
  420. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
  421. package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
  422. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
  423. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
  424. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
  425. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
  426. package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
  427. package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
  428. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
  429. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
  430. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
  431. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
  432. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
  433. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
  434. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
  435. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
  436. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
  437. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
  438. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
  439. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
  440. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3597 -0
  441. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
  442. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
  443. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
  444. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
  445. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
  446. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
  447. package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
  448. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
  449. package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
  450. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
  451. package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
  452. package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
  453. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
  454. package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
  455. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
  456. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
  457. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
  458. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
  459. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
  460. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
  461. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
  462. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
  463. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
  464. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
  465. package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
  466. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
  467. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
  468. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
  469. package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
  470. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
  471. package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
  472. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
  473. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
  474. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
  475. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
  476. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
  477. package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
  478. package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
  479. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
  480. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
  481. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
  482. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
  483. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
  484. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
  485. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
  486. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
  487. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
  488. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
  489. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
  490. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
  491. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
  492. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
  493. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
  494. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
  495. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
  496. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
  497. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
  498. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
  499. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
  500. package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
  501. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
  502. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
  503. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
  504. package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
  505. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
  506. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
  507. package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
  508. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
  509. package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
  510. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
  511. package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
  512. package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
  513. package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
  514. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
  515. package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
  516. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
  517. package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
  518. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
  519. package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
  520. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
  521. package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
  522. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
  523. package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
  524. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
  525. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
  526. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
  527. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
  528. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
  529. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
  530. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
  531. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
  532. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
  533. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
  534. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
  535. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
  536. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
  537. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
  538. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
  539. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
  540. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
  541. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
  542. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
  543. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
  544. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
  545. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
  546. package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
  547. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
  548. package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
  549. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
  550. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
  551. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
  552. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
  553. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
  554. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
  555. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
  556. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
  557. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
  558. package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
  559. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
  560. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
  561. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
  562. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
  563. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
  564. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
  565. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
  566. package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
  567. package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
  568. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
  569. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
  570. package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
  571. package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
  572. package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
  573. package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
  574. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
  575. package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
  576. package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
  577. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
  578. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
  579. package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
  580. package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
  581. package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
  582. package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
  583. package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
  584. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
  585. package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
  586. package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
  587. package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
  588. package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
  589. package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
  590. package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
  591. package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
  592. package/kit-android/generated/manifest.json +860 -0
  593. package/kit-android/generated/source-lines.json +1 -0
  594. package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
  595. package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
  596. package/kit-android/gradlew +240 -0
  597. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
  598. package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
  599. package/kit-android/overlays/xml-free/overlay.json +20 -0
  600. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
  601. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +302 -0
  602. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
  603. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
  604. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
  605. package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
  606. package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
  607. package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
  608. package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
  609. package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
  610. package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
  611. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
  612. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
  613. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
  614. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
  615. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
  616. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
  617. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
  618. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +689 -0
  619. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
  620. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
  621. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
  622. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
  623. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
  624. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +702 -0
  625. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
  626. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
  627. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +526 -0
  628. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
  629. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
  630. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
  631. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +292 -0
  632. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
  633. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
  634. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
  635. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
  636. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
  637. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
  638. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
  639. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
  640. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
  641. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1263 -0
  642. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
  643. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
  644. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
  645. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
  646. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
  647. package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
  648. package/kit-apple/Overlays/xml-free/overlay.json +34 -0
  649. package/kit-apple/Package.swift +17 -0
  650. package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
  651. package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
  652. package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
  653. package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
  654. package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
  655. package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
  656. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
  657. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6525 -0
  658. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4713 -0
  659. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
  660. package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
  661. package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
  662. package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
  663. package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
  664. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
  665. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
  666. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
  667. package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
  668. package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
  669. package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
  670. package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
  671. package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
  672. package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
  673. package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
  674. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
  675. package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
  676. package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
  677. package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
  678. package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
  679. package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
  680. package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
  681. package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
  682. package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
  683. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
  684. package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
  685. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
  686. package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
  687. package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
  688. package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
  689. package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
  690. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
  691. package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
  692. package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
  693. package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
  694. package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
  695. package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
  696. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
  697. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
  698. package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
  699. package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
  700. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
  701. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
  702. package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
  703. package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
  704. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
  705. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
  706. package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
  707. package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
  708. package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
  709. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
  710. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
  711. package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
  712. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
  713. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
  714. package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
  715. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
  716. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
  717. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
  718. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
  719. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
  720. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
  721. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
  722. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
  723. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
  724. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
  725. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
  726. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
  727. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
  728. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
  729. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
  730. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
  731. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
  732. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
  733. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
  734. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
  735. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
  736. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
  737. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
  738. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
  739. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
  740. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
  741. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
  742. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
  743. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
  744. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
  745. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
  746. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
  747. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
  748. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
  749. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
  750. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
  751. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
  752. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
  753. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
  754. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
  755. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
  756. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
  757. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
  758. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
  759. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
  760. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
  761. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
  762. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
  763. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
  764. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
  765. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
  766. package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
  767. package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
  768. package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
  769. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
  770. package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
  771. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
  772. package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
  773. package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
  774. package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
  775. package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
  776. package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
  777. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
  778. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
  779. package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
  780. package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
  781. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
  782. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
  783. package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
  784. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
  785. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
  786. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
  787. package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
  788. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
  789. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
  790. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
  791. package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
  792. package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
  793. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
  794. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
  795. package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
  796. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
  797. package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
  798. package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
  799. package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift +413 -0
  800. package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
  801. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
  802. package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
  803. package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
  804. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
  805. package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
  806. package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
  807. package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
  808. package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
  809. package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
  810. package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
  811. package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
  812. package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
  813. package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
  814. package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
  815. package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
  816. package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
  817. package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
  818. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
  819. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
  820. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
  821. package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
  822. package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
  823. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
  824. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
  825. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
  826. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
  827. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
  828. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
  829. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
  830. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
  831. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
  832. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
  833. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
  834. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
  835. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
  836. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
  837. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
  838. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
  839. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
  840. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
  841. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
  842. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
  843. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
  844. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
  845. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
  846. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
  847. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
  848. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
  849. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
  850. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
  851. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
  852. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
  853. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
  854. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
  855. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
  856. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
  857. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
  858. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
  859. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
  860. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
  861. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
  862. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
  863. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
  864. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
  865. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
  866. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
  867. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
  868. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
  869. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
  870. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
  871. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
  872. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
  873. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
  874. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
  875. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
  876. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
  877. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
  878. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
  879. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
  880. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
  881. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
  882. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
  883. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
  884. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
  885. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
  886. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
  887. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
  888. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
  889. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
  890. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
  891. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
  892. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
  893. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
  894. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
  895. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
  896. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
  897. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
  898. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
  899. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
  900. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
  901. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
  902. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
  903. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
  904. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
  905. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
  906. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
  907. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
  908. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
  909. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
  910. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
  911. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
  912. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
  913. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
  914. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
  915. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
  916. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
  917. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
  918. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
  919. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
  920. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
  921. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
  922. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
  923. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
  924. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
  925. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
  926. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
  927. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
  928. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
  929. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
  930. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
  931. package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
  932. package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
  933. package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
  934. package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
  935. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
  936. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
  937. package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
  938. package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
  939. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
  940. package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
  941. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
  942. package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
  943. package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
  944. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
  945. package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
  946. package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
  947. package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
  948. package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
  949. package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
  950. package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
  951. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
  952. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
  953. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
  954. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
  955. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
  956. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
  957. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
  958. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
  959. package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
  960. package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
  961. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
  962. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
  963. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
  964. package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
  965. package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
  966. package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
  967. package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
  968. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
  969. package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
  970. package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
  971. package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
  972. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
  973. package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
  974. package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
  975. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
  976. package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
  977. package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
  978. package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
  979. package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
  980. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
  981. package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
  982. package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
  983. package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
  984. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
  985. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
  986. package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
  987. package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
  988. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
  989. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
  990. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
  991. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
  992. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
  993. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
  994. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
  995. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
  996. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
  997. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
  998. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
  999. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
  1000. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
  1001. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
  1002. package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
  1003. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
  1004. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
  1005. package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
  1006. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
  1007. package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
  1008. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
  1009. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
  1010. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
  1011. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
  1012. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
  1013. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
  1014. package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
  1015. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
  1016. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
  1017. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
  1018. package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
  1019. package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
  1020. package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
  1021. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
  1022. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
  1023. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
  1024. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
  1025. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
  1026. package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
  1027. package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
  1028. package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +481 -0
  1029. package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
  1030. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
  1031. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
  1032. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
  1033. package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
  1034. package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
  1035. package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
  1036. package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
  1037. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
  1038. package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
  1039. package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
  1040. package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
  1041. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
  1042. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
  1043. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
  1044. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
  1045. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
  1046. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
  1047. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
  1048. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
  1049. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
  1050. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
  1051. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
  1052. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
  1053. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
  1054. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
  1055. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
  1056. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
  1057. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
  1058. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
  1059. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
  1060. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
  1061. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
  1062. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
  1063. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
  1064. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
  1065. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
  1066. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
  1067. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
  1068. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
  1069. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
  1070. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
  1071. package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
  1072. package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
  1073. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
  1074. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
  1075. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
  1076. package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
  1077. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
  1078. package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
  1079. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
  1080. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
  1081. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
  1082. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
  1083. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
  1084. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
  1085. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
  1086. package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
  1087. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
  1088. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
  1089. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
  1090. package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
  1091. package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
  1092. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
  1093. package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
  1094. package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
  1095. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
  1096. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
  1097. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
  1098. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
  1099. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
  1100. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
  1101. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
  1102. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
  1103. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
  1104. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
  1105. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
  1106. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
  1107. package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
  1108. package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
  1109. package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
  1110. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
  1111. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
  1112. package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
  1113. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
  1114. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
  1115. package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
  1116. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
  1117. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
  1118. package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
  1119. package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
  1120. package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
  1121. package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
  1122. package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
  1123. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
  1124. package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
  1125. package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
  1126. package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
  1127. package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
  1128. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
  1129. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
  1130. package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
  1131. package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
  1132. package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
  1133. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
  1134. package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
  1135. package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
  1136. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
  1137. package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
  1138. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
  1139. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
  1140. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
  1141. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
  1142. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
  1143. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
  1144. package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
  1145. package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
  1146. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
  1147. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
  1148. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
  1149. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
  1150. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
  1151. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
  1152. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
  1153. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
  1154. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
  1155. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
  1156. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
  1157. package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
  1158. package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
  1159. package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
  1160. package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
  1161. package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
  1162. package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
  1163. package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
  1164. package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
  1165. package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
  1166. package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
  1167. package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
  1168. package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
  1169. package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
  1170. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
  1171. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
  1172. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
  1173. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
  1174. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
  1175. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
  1176. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
  1177. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
  1178. package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
  1179. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
  1180. package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
  1181. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
  1182. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
  1183. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
  1184. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
  1185. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
  1186. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
  1187. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
  1188. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
  1189. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
  1190. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
  1191. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
  1192. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
  1193. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
  1194. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
  1195. package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
  1196. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
  1197. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
  1198. package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
  1199. package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
  1200. package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
  1201. package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
  1202. package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
  1203. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
  1204. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
  1205. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
  1206. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
  1207. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
  1208. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
  1209. package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
  1210. package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
  1211. package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
  1212. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
  1213. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
  1214. package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
  1215. package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
  1216. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
  1217. package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
  1218. package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
  1219. package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
  1220. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
  1221. package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
  1222. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
  1223. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
  1224. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
  1225. package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
  1226. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
  1227. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
  1228. package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
  1229. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
  1230. package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
  1231. package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
  1232. package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
  1233. package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
  1234. package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
  1235. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
  1236. package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
  1237. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
  1238. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
  1239. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
  1240. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
  1241. package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
  1242. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
  1243. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
  1244. package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
  1245. package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
  1246. package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
  1247. package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
  1248. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
  1249. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
  1250. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
  1251. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
  1252. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
  1253. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
  1254. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
  1255. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
  1256. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
  1257. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
  1258. package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
  1259. package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
  1260. package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
  1261. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
  1262. package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
  1263. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
  1264. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
  1265. package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
  1266. package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
  1267. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
  1268. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
  1269. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
  1270. package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
  1271. package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
  1272. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
  1273. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
  1274. package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
  1275. package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
  1276. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
  1277. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
  1278. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
  1279. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
  1280. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
  1281. package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
  1282. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
  1283. package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
  1284. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
  1285. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
  1286. package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
  1287. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
  1288. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
  1289. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
  1290. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
  1291. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
  1292. package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
  1293. package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
  1294. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
  1295. package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
  1296. package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
  1297. package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
  1298. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
  1299. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
  1300. package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
  1301. package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
  1302. package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
  1303. package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
  1304. package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
  1305. package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
  1306. package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
  1307. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
  1308. package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +201 -0
  1309. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
  1310. package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
  1311. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
  1312. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
  1313. package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
  1314. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
  1315. package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
  1316. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
  1317. package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
  1318. package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
  1319. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
  1320. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
  1321. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
  1322. package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
  1323. package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
  1324. package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
  1325. package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
  1326. package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
  1327. package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
  1328. package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
  1329. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
  1330. package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
  1331. package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
  1332. package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
  1333. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
  1334. package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
  1335. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
  1336. package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
  1337. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
  1338. package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
  1339. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +699 -0
  1340. package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
  1341. package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +325 -0
  1342. package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
  1343. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
  1344. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
  1345. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
  1346. package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
  1347. package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
  1348. package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
  1349. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
  1350. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +413 -0
  1351. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
  1352. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
  1353. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
  1354. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
  1355. package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
  1356. package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
  1357. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
  1358. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
  1359. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30808 -0
  1360. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3383 -0
  1361. package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
  1362. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
  1363. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
  1364. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
  1365. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
  1366. package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
  1367. package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
  1368. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
  1369. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
  1370. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
  1371. package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
  1372. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
  1373. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
  1374. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
  1375. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
  1376. package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
  1377. package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
  1378. package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
  1379. package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
  1380. package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
  1381. package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
  1382. package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
  1383. package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
  1384. package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
  1385. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
  1386. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
  1387. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
  1388. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
  1389. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
  1390. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
  1391. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
  1392. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
  1393. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
  1394. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
  1395. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
  1396. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
  1397. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
  1398. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
  1399. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
  1400. package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
  1401. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
  1402. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
  1403. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
  1404. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
  1405. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
  1406. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
  1407. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
  1408. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
  1409. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
  1410. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
  1411. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
  1412. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4347 -0
  1413. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
  1414. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
  1415. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
  1416. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
  1417. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
  1418. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
  1419. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
  1420. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
  1421. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
  1422. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
  1423. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
  1424. package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
  1425. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
  1426. package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
  1427. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
  1428. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
  1429. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
  1430. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
  1431. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
  1432. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
  1433. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
  1434. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
  1435. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
  1436. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
  1437. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
  1438. package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
  1439. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
  1440. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
  1441. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
  1442. package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
  1443. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
  1444. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
  1445. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
  1446. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
  1447. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
  1448. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
  1449. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
  1450. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
  1451. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
  1452. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
  1453. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3235 -0
  1454. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
  1455. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
  1456. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
  1457. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
  1458. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
  1459. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
  1460. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
  1461. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
  1462. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
  1463. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
  1464. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
  1465. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
  1466. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
  1467. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
  1468. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
  1469. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
  1470. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
  1471. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
  1472. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
  1473. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
  1474. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
  1475. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
  1476. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
  1477. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
  1478. package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
  1479. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
  1480. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
  1481. package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
  1482. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
  1483. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
  1484. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
  1485. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
  1486. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
  1487. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
  1488. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
  1489. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
  1490. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
  1491. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
  1492. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
  1493. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
  1494. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
  1495. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
  1496. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
  1497. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
  1498. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
  1499. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
  1500. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
  1501. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
  1502. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
  1503. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
  1504. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
  1505. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
  1506. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
  1507. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
  1508. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
  1509. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
  1510. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
  1511. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
  1512. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
  1513. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
  1514. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
  1515. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
  1516. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
  1517. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
  1518. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
  1519. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
  1520. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
  1521. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1047 -0
  1522. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
  1523. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
  1524. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
  1525. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
  1526. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
  1527. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
  1528. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
  1529. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
  1530. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
  1531. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
  1532. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
  1533. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
  1534. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
  1535. package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
  1536. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
  1537. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
  1538. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
  1539. package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
  1540. package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
  1541. package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
  1542. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
  1543. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
  1544. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
  1545. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
  1546. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
  1547. package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
  1548. package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
  1549. package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
  1550. package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
  1551. package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
  1552. package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
  1553. package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
  1554. package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
  1555. package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
  1556. package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
  1557. package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
  1558. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
  1559. package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
  1560. package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +388 -0
  1561. package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
  1562. package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
  1563. package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
  1564. package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
  1565. package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
  1566. package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
  1567. package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
  1568. package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +78 -0
  1569. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1693 -0
  1570. package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
  1571. package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
  1572. package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
  1573. package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
  1574. package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
  1575. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +474 -0
  1576. package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
  1577. package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
  1578. package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +372 -0
  1579. package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +762 -0
  1580. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
  1581. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +799 -0
  1582. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
  1583. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
  1584. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +593 -0
  1585. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
  1586. package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
  1587. package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
  1588. package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
  1589. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +471 -0
  1590. package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
  1591. package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
  1592. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +576 -0
  1593. package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
  1594. package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
  1595. package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
  1596. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
  1597. package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
  1598. package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
  1599. package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
  1600. package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
  1601. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2069 -0
  1602. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
  1603. package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
  1604. package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
  1605. package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
  1606. package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
  1607. package/package.json +94 -4
  1608. package/verify/ui-driver/Host/App.swift +7 -0
  1609. package/verify/ui-driver/Tests/Driver.swift +54 -0
  1610. package/verify/ui-driver/project.yml +35 -0
@@ -0,0 +1,4016 @@
1
+ // Generated from @nativescript/core by tools/kit: edit core, not this file.
2
+
3
+ import CFNetwork
4
+ import CoreFoundation
5
+ import CoreGraphics
6
+ import CoreServices
7
+ import CoreText
8
+ import Dispatch
9
+ import Foundation
10
+ import ObjectiveC
11
+ import Photos
12
+ import QuartzCore
13
+ import Symbols
14
+ import SystemConfiguration
15
+ import UIKit
16
+ import WebKit
17
+
18
+ public protocol ChangeAccumulator: JSDynamic {
19
+ func addAttribute(_ node: Any?, _ attribute: String) throws
20
+ func addPseudoClass(_ node: Any?, _ pseudoClass: String) throws
21
+ }
22
+ public final class ChangeAccumulatorObject: ChangeAccumulator, JSObjectConvertible {
23
+ nonisolated deinit {}
24
+ public var _addAttribute: ((Any?, String) throws -> Void)?
25
+ public var _addPseudoClass: ((Any?, String) throws -> Void)?
26
+ private let jsOrder: [String]?
27
+ public init(
28
+ _addAttribute: ((Any?, String) throws -> Void)?, _addPseudoClass: ((Any?, String) throws -> Void)?,
29
+ jsOrder: [String]? = nil
30
+ ) {
31
+ self._addAttribute = _addAttribute
32
+ self._addPseudoClass = _addPseudoClass
33
+ self.jsOrder = jsOrder
34
+ }
35
+ private var jsExtra: JSDynamic?
36
+ public convenience init(jsObject: Any?) {
37
+ self.init(
38
+ _addAttribute: FunctionCell_AnyOpt_String_to_Void.fromScriptOrNil(jsField(jsObject, "addAttribute")),
39
+ _addPseudoClass: FunctionCell_AnyOpt_String_to_Void.fromScriptOrNil(jsField(jsObject, "addPseudoClass")),
40
+ jsOrder: (jsObject as? JSDynamic)?.jsKeys)
41
+ jsExtra = jsObject as? JSDynamic
42
+ }
43
+ public var jsKeys: [String] {
44
+ let order = jsOrder ?? ["addAttribute", "addPseudoClass"]
45
+ let keys = order + (jsExtra?.jsKeys ?? []).filter { !order.contains($0) }
46
+ return keys
47
+ }
48
+ public var jsClassName: String? { nil }
49
+ public subscript(jsKey key: String) -> Any? {
50
+ get {
51
+ switch key.utf8.count {
52
+ case 12:
53
+ switch key {
54
+ case "addAttribute": return FunctionCell_AnyOpt_String_to_Void.scriptOrNil("", 2, self._addAttribute)
55
+ default: break
56
+ }
57
+ case 14:
58
+ switch key {
59
+ case "addPseudoClass":
60
+ return FunctionCell_AnyOpt_String_to_Void.scriptOrNil("", 2, self._addPseudoClass)
61
+ default: break
62
+ }
63
+ default: break
64
+ }
65
+ return jsExtra?[jsKey: key] ?? nil
66
+ }
67
+ set {
68
+ switch key.utf8.count {
69
+ case 12:
70
+ switch key {
71
+ case "addAttribute":
72
+ self._addAttribute = FunctionCell_AnyOpt_String_to_Void.fromScriptOrNil(newValue)
73
+ return
74
+ default: break
75
+ }
76
+ case 14:
77
+ switch key {
78
+ case "addPseudoClass":
79
+ self._addPseudoClass = FunctionCell_AnyOpt_String_to_Void.fromScriptOrNil(newValue)
80
+ return
81
+ default: break
82
+ }
83
+ default: break
84
+ }
85
+ if jsExtra == nil { jsExtra = JSObject() }
86
+ jsExtra?[jsKey: key] = newValue
87
+ }
88
+ }
89
+ public func addAttribute(_ node: Any?, _ attribute: String) throws {
90
+ try jsCallable(_addAttribute, "addAttribute")(node, attribute)
91
+ }
92
+ public func addPseudoClass(_ node: Any?, _ pseudoClass: String) throws {
93
+ try jsCallable(_addPseudoClass, "addPseudoClass")(node, pseudoClass)
94
+ }
95
+ }
96
+
97
+ public enum Specificity {
98
+ public static let Inline: Double = 1000
99
+ public static let Id: Double = 100
100
+ public static let Attribute: Double = 10
101
+ public static let Class: Double = 10
102
+ public static let PseudoClass: Double = 10
103
+ public static let `Type`: Double = 1
104
+ public static let Universal: Double = 0
105
+ public static let Invalid: Double = 0
106
+ public static let Zero: Double = 0
107
+ public static let SelectorListHighest: Double = -1
108
+ }
109
+
110
+ public enum Rarity {
111
+ public static let Invalid: Double = 4
112
+ public static let Id: Double = 3
113
+ public static let Class: Double = 2
114
+ public static let `Type`: Double = 1
115
+ public static let PseudoClass: Double = 0
116
+ public static let Attribute: Double = 0
117
+ public static let Universal: Double = 0
118
+ public static let Inline: Double = 0
119
+ }
120
+
121
+ public enum PseudoClassSelectorList {
122
+ public static let Regular: Double = 0
123
+ public static let Forgiving: Double = 1
124
+ public static let Relative: Double = 2
125
+ }
126
+
127
+ public enum Combinator {
128
+ public static let descendant: String = " "
129
+ public static let child: String = ">"
130
+ public static let adjacent: String = "+"
131
+ public static let sibling: String = "~"
132
+ public static let parent: String = "<"
133
+ public static let _column_combinator_: String = "||"
134
+ public static let jsEnumObject = JSObject([
135
+ ("descendant", " " as Any?), ("child", ">" as Any?), ("adjacent", "+" as Any?), ("sibling", "~" as Any?),
136
+ ("parent", "<" as Any?), ("column-combinator", "||" as Any?),
137
+ ])
138
+ }
139
+
140
+ public enum AttributeSelectorOperator {
141
+ public static let exists: String = ""
142
+ public static let equals: String = "="
143
+ public static let start: String = "^="
144
+ public static let end: String = "$="
145
+ public static let `any`: String = "*="
146
+ public static let element: String = "~="
147
+ public static let hyphen: String = "|="
148
+ public static let jsEnumObject = JSObject([
149
+ ("exists", "" as Any?), ("equals", "=" as Any?), ("start", "^=" as Any?), ("end", "$=" as Any?),
150
+ ("any", "*=" as Any?), ("element", "~=" as Any?), ("hyphen", "|=" as Any?),
151
+ ])
152
+ }
153
+
154
+ public enum SelectorTier {
155
+ public static let Application: Double = 0
156
+ public static let Local: Double = 1
157
+ }
158
+
159
+ public enum Match {
160
+ public static let Dynamic: Bool = true
161
+ public static let Static: Bool = false
162
+ }
163
+
164
+ open class SelectorBase: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
165
+ nonisolated deinit {}
166
+ private static let jsSite_SelectorBase_dynamic = JSReadSite("dynamic")
167
+ open var __own_dynamic: Bool? = nil
168
+ /// Dynamic selectors depend on attributes and pseudo classes.
169
+ open var dynamic: Bool {
170
+ get {
171
+ if let v = __own_dynamic { return v }
172
+ return jsLenientBool(JSPrototypes.value(type(of: self), SelectorBase.jsSite_SelectorBase_dynamic, self))
173
+ }
174
+ set {
175
+ __own_dynamic = .some(newValue)
176
+ if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "dynamic") }
177
+ }
178
+ }
179
+ private static let jsSite_SelectorBase_hasAdjacentCombinator = JSReadSite("hasAdjacentCombinator")
180
+ open var __own_hasAdjacentCombinator: Bool? = nil
181
+ /// Selector contains an adjacent sibling ('+') combinator, so its match depends on the direct previous sibling.
182
+ open var hasAdjacentCombinator: Bool {
183
+ get {
184
+ if let v = __own_hasAdjacentCombinator { return v }
185
+ return jsLenientBool(
186
+ JSPrototypes.value(type(of: self), SelectorBase.jsSite_SelectorBase_hasAdjacentCombinator, self))
187
+ }
188
+ set {
189
+ __own_hasAdjacentCombinator = .some(newValue)
190
+ if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "hasAdjacentCombinator") }
191
+ }
192
+ }
193
+ private static let jsSite_SelectorBase_hasSiblingCombinator = JSReadSite("hasSiblingCombinator")
194
+ open var __own_hasSiblingCombinator: Bool? = nil
195
+ /// Selector contains a general sibling ('~') combinator, so its match depends on all previous siblings.
196
+ open var hasSiblingCombinator: Bool {
197
+ get {
198
+ if let v = __own_hasSiblingCombinator { return v }
199
+ return jsLenientBool(
200
+ JSPrototypes.value(type(of: self), SelectorBase.jsSite_SelectorBase_hasSiblingCombinator, self))
201
+ }
202
+ set {
203
+ __own_hasSiblingCombinator = .some(newValue)
204
+ if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "hasSiblingCombinator") }
205
+ }
206
+ }
207
+ public init() throws {
208
+ }
209
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
210
+ return nil
211
+ }
212
+ open class var jsSymbolPlain: Bool { true }
213
+ open class var jsSymbolFieldsPlain: Bool { true }
214
+ open var jsExpando: JSObject?
215
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
216
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
217
+ open func match(_ node: Any?) throws -> Bool { throw JSException(JSTypeError("match is not a function")) }
218
+ open func mayMatch(_ node: Any?) throws -> Bool { throw JSException(JSTypeError("mayMatch is not a function")) }
219
+ open func trackChanges(_ node: Any?, _ map: Any?) throws {
220
+ throw JSException(JSTypeError("trackChanges is not a function"))
221
+ }
222
+ public final var jsMadeBits0: UInt64 = 0
223
+ public final var jsMade: [String]?
224
+ open var jsDeclaredKeys: [String] {
225
+ (jsMadeBits0 & (1 << 0) != 0 ? ["dynamic"] : [])
226
+ + (jsMadeBits0 & (1 << 1) != 0 ? ["hasAdjacentCombinator"] : [])
227
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["hasSiblingCombinator"] : [])
228
+ }
229
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
230
+ open var jsClassName: String? { "SelectorBase" }
231
+ open subscript(jsKey key: String) -> Any? {
232
+ get {
233
+ switch key.utf8.count {
234
+ case 7:
235
+ switch key {
236
+ case "dynamic": return self.dynamic
237
+ default: break
238
+ }
239
+ case 20:
240
+ switch key {
241
+ case "hasSiblingCombinator": return self.hasSiblingCombinator
242
+ default: break
243
+ }
244
+ case 21:
245
+ switch key {
246
+ case "hasAdjacentCombinator": return self.hasAdjacentCombinator
247
+ default: break
248
+ }
249
+ default: break
250
+ }
251
+ return jsExpandoGet(self, key)
252
+ }
253
+ set {
254
+ switch key.utf8.count {
255
+ case 7:
256
+ switch key {
257
+ case "dynamic":
258
+ jsStoring { self.dynamic = (try jsConvertedBool(newValue)) }
259
+ return
260
+ default: break
261
+ }
262
+ case 20:
263
+ switch key {
264
+ case "hasSiblingCombinator":
265
+ jsStoring { self.hasSiblingCombinator = (try jsConvertedBool(newValue)) }
266
+ return
267
+ default: break
268
+ }
269
+ case 21:
270
+ switch key {
271
+ case "hasAdjacentCombinator":
272
+ jsStoring { self.hasAdjacentCombinator = (try jsConvertedBool(newValue)) }
273
+ return
274
+ default: break
275
+ }
276
+ default: break
277
+ }
278
+ jsExpandoSet(self, key, newValue)
279
+ }
280
+ }
281
+ open class var jsName: String { "SelectorBase" }
282
+ open class var jsStaticKeys: [String] { [] }
283
+ }
284
+
285
+ open class SelectorCore: SelectorBase {
286
+ nonisolated deinit {}
287
+ open var pos: Double = .nan {
288
+ didSet { if jsMadeBits0 & (1 << 3) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 3, "pos") } }
289
+ }
290
+ private static let jsSite_SelectorCore_tier = JSReadSite("tier")
291
+ open var __own_tier: Double? = nil
292
+ open var tier: Double {
293
+ get {
294
+ if let v = __own_tier { return v }
295
+ return jsLenientNumber(JSPrototypes.value(type(of: self), SelectorCore.jsSite_SelectorCore_tier, self))
296
+ }
297
+ set {
298
+ __own_tier = .some(newValue)
299
+ if jsMadeBits0 & (1 << 4) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 4, "tier") }
300
+ }
301
+ }
302
+ private static let jsSite_SelectorCore_specificity = JSReadSite("specificity")
303
+ open var __own_specificity: Double? = nil
304
+ open var specificity: Double {
305
+ get {
306
+ if let v = __own_specificity { return v }
307
+ return jsLenientNumber(
308
+ JSPrototypes.value(type(of: self), SelectorCore.jsSite_SelectorCore_specificity, self))
309
+ }
310
+ set {
311
+ __own_specificity = .some(newValue)
312
+ if jsMadeBits0 & (1 << 5) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 5, "specificity") }
313
+ }
314
+ }
315
+ private static let jsSite_SelectorCore_rarity = JSReadSite("rarity")
316
+ open var __own_rarity: Double? = nil
317
+ open var rarity: Double {
318
+ get {
319
+ if let v = __own_rarity { return v }
320
+ return jsLenientNumber(JSPrototypes.value(type(of: self), SelectorCore.jsSite_SelectorCore_rarity, self))
321
+ }
322
+ set {
323
+ __own_rarity = .some(newValue)
324
+ if jsMadeBits0 & (1 << 6) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 6, "rarity") }
325
+ }
326
+ }
327
+ private static let jsSite_SelectorCore_combinator = JSReadSite("combinator")
328
+ open var __own_combinator: String? = nil
329
+ open var combinator: String {
330
+ get {
331
+ if let v = __own_combinator { return v }
332
+ return jsLenientString(
333
+ JSPrototypes.value(type(of: self), SelectorCore.jsSite_SelectorCore_combinator, self))
334
+ }
335
+ set {
336
+ __own_combinator = .some(newValue)
337
+ if jsMadeBits0 & (1 << 7) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 7, "combinator") }
338
+ }
339
+ }
340
+ open var ruleset: RuleSet? {
341
+ didSet { if jsMadeBits0 & (1 << 8) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 8, "ruleset") } }
342
+ }
343
+ public override init() throws {
344
+ try super.init()
345
+ }
346
+ /// If the selector is static returns if it matches the node.
347
+ /// If the selector is dynamic returns if it may match the node, and accumulates any changes that may affect its state.
348
+ open func accumulateChanges(_ node: Any?, _ map: Any?) throws -> Bool {
349
+ throw JSException(JSTypeError("accumulateChanges is not a function"))
350
+ }
351
+ open func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
352
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:257)
353
+ _ = try jsCallMethod(sorter, "sortAsUniversal", jsObjectRequired((base ?? self)))
354
+ }
355
+ #sourceLocation()
356
+ public final func lookupSort__SelectorCore(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
357
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:257)
358
+ _ = try jsCallMethod(sorter, "sortAsUniversal", jsObjectRequired((base ?? self)))
359
+ }
360
+ #sourceLocation()
361
+ open override var jsDeclaredKeys: [String] {
362
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 3) != 0 ? ["pos"] : [])
363
+ + (jsMadeBits0 & (1 << 4) != 0 ? ["tier"] : []) + (jsMadeBits0 & (1 << 5) != 0 ? ["specificity"] : [])
364
+ + (jsMadeBits0 & (1 << 6) != 0 ? ["rarity"] : []) + (jsMadeBits0 & (1 << 7) != 0 ? ["combinator"] : [])
365
+ + (jsMadeBits0 & (1 << 8) != 0 ? ["ruleset"] : [])
366
+ }
367
+ open override var jsClassName: String? { "SelectorCore" }
368
+ open override subscript(jsKey key: String) -> Any? {
369
+ get {
370
+ switch key.utf8.count {
371
+ case 3:
372
+ switch key {
373
+ case "pos":
374
+ if !(jsMadeBits0 & (1 << 3) != 0) { return nil }
375
+ return self.pos
376
+ default: break
377
+ }
378
+ case 4:
379
+ switch key {
380
+ case "tier": return self.tier
381
+ default: break
382
+ }
383
+ case 6:
384
+ switch key {
385
+ case "rarity": return self.rarity
386
+ default: break
387
+ }
388
+ case 7:
389
+ switch key {
390
+ case "ruleset":
391
+ if !(jsMadeBits0 & (1 << 8) != 0) { return nil }
392
+ return self.ruleset
393
+ default: break
394
+ }
395
+ case 10:
396
+ switch key {
397
+ case "combinator": return self.combinator
398
+ case "lookupSort":
399
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
400
+ default: break
401
+ }
402
+ case 11:
403
+ switch key {
404
+ case "specificity": return self.specificity
405
+ default: break
406
+ }
407
+ default: break
408
+ }
409
+ return super[jsKey: key]
410
+ }
411
+ set {
412
+ switch key.utf8.count {
413
+ case 3:
414
+ switch key {
415
+ case "pos":
416
+ jsStoring { self.pos = (try jsConvertedNumber(newValue)) }
417
+ return
418
+ default: break
419
+ }
420
+ case 4:
421
+ switch key {
422
+ case "tier":
423
+ jsStoring { self.tier = (try jsConvertedNumber(newValue)) }
424
+ return
425
+ default: break
426
+ }
427
+ case 6:
428
+ switch key {
429
+ case "rarity":
430
+ jsStoring { self.rarity = (try jsConvertedNumber(newValue)) }
431
+ return
432
+ default: break
433
+ }
434
+ case 7:
435
+ switch key {
436
+ case "ruleset":
437
+ jsStoring { self.ruleset = (try jsCast(newValue, RuleSet.self)) }
438
+ return
439
+ default: break
440
+ }
441
+ case 10:
442
+ switch key {
443
+ case "combinator":
444
+ jsStoring { self.combinator = (try jsConvertedString(newValue)) }
445
+ return
446
+ default: break
447
+ }
448
+ case 11:
449
+ switch key {
450
+ case "specificity":
451
+ jsStoring { self.specificity = (try jsConvertedNumber(newValue)) }
452
+ return
453
+ default: break
454
+ }
455
+ default: break
456
+ }
457
+ super[jsKey: key] = newValue
458
+ }
459
+ }
460
+ open override class var jsName: String { "SelectorCore" }
461
+ }
462
+
463
+ open class SimpleSelector: SelectorCore {
464
+ nonisolated deinit {}
465
+ public override init() throws {
466
+ try super.init()
467
+ }
468
+ open override func accumulateChanges(_ node: Any?, _ map: Any? = nil) throws -> Bool {
469
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:263)
470
+ if !self.dynamic {
471
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:264)
472
+ return try self.match(node)
473
+ } else if try self.mayMatch(node) {
474
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:266)
475
+ try self.trackChanges(node, map)
476
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:268)
477
+ return true
478
+ }
479
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:271)
480
+ return false
481
+ }
482
+ #sourceLocation()
483
+ open override func mayMatch(_ node: Any?) throws -> Bool {
484
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:274)
485
+ return try self.match(node)
486
+ }
487
+ #sourceLocation()
488
+ public final func mayMatch__SimpleSelector(_ node: Any?) throws -> Bool {
489
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:274)
490
+ return try self.match(node)
491
+ }
492
+ #sourceLocation()
493
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
494
+
495
+ }
496
+ public final func trackChanges__SimpleSelector(_ node: Any?, _ map: Any?) throws {
497
+
498
+ }
499
+ open override var jsClassName: String? { "SimpleSelector" }
500
+ open override subscript(jsKey key: String) -> Any? {
501
+ get {
502
+ switch key.utf8.count {
503
+ case 8:
504
+ switch key {
505
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
506
+ default: break
507
+ }
508
+ case 12:
509
+ switch key {
510
+ case "trackChanges":
511
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
512
+ default: break
513
+ }
514
+ case 17:
515
+ switch key {
516
+ case "accumulateChanges":
517
+ return FunctionCell_AnyOpt_AnyOpt_to_Bool.script("accumulateChanges", 2, self.accumulateChanges)
518
+ default: break
519
+ }
520
+ default: break
521
+ }
522
+ return super[jsKey: key]
523
+ }
524
+ set {
525
+ super[jsKey: key] = newValue
526
+ }
527
+ }
528
+ open override class var jsName: String { "SimpleSelector" }
529
+ }
530
+
531
+ open class InvalidSelector: SimpleSelector, JSStringConvertible {
532
+ nonisolated deinit {}
533
+ open var e: JSError?
534
+ public init(_ e: JSError?) throws {
535
+ try super.init()
536
+ jsMadeLevel(&jsMade, ["e"])
537
+ self.e = e
538
+ }
539
+ open func toString() -> String {
540
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:292)
541
+ return "<\(jsToString(self.e))>"
542
+ }
543
+ #sourceLocation()
544
+ open override func match(_ node: Any?) -> Bool {
545
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:295)
546
+ return false
547
+ }
548
+ #sourceLocation()
549
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
550
+
551
+ }
552
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["e"] }
553
+ open override var jsClassName: String? { "InvalidSelector" }
554
+ open override subscript(jsKey key: String) -> Any? {
555
+ get {
556
+ switch key.utf8.count {
557
+ case 1:
558
+ switch key {
559
+ case "e": return self.e
560
+ default: break
561
+ }
562
+ case 5:
563
+ switch key {
564
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
565
+ default: break
566
+ }
567
+ case 8:
568
+ switch key {
569
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
570
+ default: break
571
+ }
572
+ case 10:
573
+ switch key {
574
+ case "lookupSort":
575
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
576
+ default: break
577
+ }
578
+ default: break
579
+ }
580
+ return super[jsKey: key]
581
+ }
582
+ set {
583
+ switch key.utf8.count {
584
+ case 1:
585
+ switch key {
586
+ case "e":
587
+ self.e = (newValue as? JSError)
588
+ return
589
+ default: break
590
+ }
591
+ default: break
592
+ }
593
+ super[jsKey: key] = newValue
594
+ }
595
+ }
596
+ open override class var jsName: String { "InvalidSelector" }
597
+ }
598
+
599
+ open class UniversalSelector: SimpleSelector, JSStringConvertible {
600
+ nonisolated deinit {}
601
+ public override init() throws {
602
+ try super.init()
603
+ }
604
+ open func toString() -> String {
605
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:307)
606
+ return "*\(Core_ui_styling_css_selector.wrap(self.combinator))"
607
+ }
608
+ #sourceLocation()
609
+ open override func match(_ node: Any?) -> Bool {
610
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:310)
611
+ return true
612
+ }
613
+ #sourceLocation()
614
+ open override var jsClassName: String? { "UniversalSelector" }
615
+ open override subscript(jsKey key: String) -> Any? {
616
+ get {
617
+ switch key.utf8.count {
618
+ case 5:
619
+ switch key {
620
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
621
+ default: break
622
+ }
623
+ case 8:
624
+ switch key {
625
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
626
+ default: break
627
+ }
628
+ default: break
629
+ }
630
+ return super[jsKey: key]
631
+ }
632
+ set {
633
+ super[jsKey: key] = newValue
634
+ }
635
+ }
636
+ open override class var jsName: String { "UniversalSelector" }
637
+ }
638
+
639
+ open class IdSelector: SimpleSelector, JSStringConvertible {
640
+ nonisolated deinit {}
641
+ open var id: String = ""
642
+ public init(_ id: String) throws {
643
+ try super.init()
644
+ jsMadeLevel(&jsMade, ["id"])
645
+ self.id = id
646
+ }
647
+ open func toString() -> String {
648
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:320)
649
+ return "#\(self.id)\(Core_ui_styling_css_selector.wrap(self.combinator))"
650
+ }
651
+ #sourceLocation()
652
+ open override func match(_ node: Any?) throws -> Bool {
653
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:323)
654
+ return try jsStrictEquals(jsGet(node, "id"), self.id)
655
+ }
656
+ #sourceLocation()
657
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
658
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:326)
659
+ _ = try jsCallMethod(
660
+ sorter, "sortById", self.id,
661
+ ({ () -> Any? in
662
+ let __v_3 = base
663
+ return jsTruthy(__v_3) ? __v_3 : self
664
+ }()))
665
+ }
666
+ #sourceLocation()
667
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["id"] }
668
+ open override var jsClassName: String? { "IdSelector" }
669
+ open override subscript(jsKey key: String) -> Any? {
670
+ get {
671
+ switch key.utf8.count {
672
+ case 2:
673
+ switch key {
674
+ case "id": return jsExpandoGet(self, "id")
675
+ default: break
676
+ }
677
+ case 5:
678
+ switch key {
679
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
680
+ default: break
681
+ }
682
+ case 8:
683
+ switch key {
684
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
685
+ default: break
686
+ }
687
+ case 10:
688
+ switch key {
689
+ case "lookupSort":
690
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
691
+ default: break
692
+ }
693
+ default: break
694
+ }
695
+ return super[jsKey: key]
696
+ }
697
+ set {
698
+ switch key.utf8.count {
699
+ case 2:
700
+ switch key {
701
+ case "id":
702
+ jsExpandoSet(self, "id", newValue)
703
+ return
704
+ default: break
705
+ }
706
+ default: break
707
+ }
708
+ super[jsKey: key] = newValue
709
+ }
710
+ }
711
+ open override class var jsName: String { "IdSelector" }
712
+ }
713
+
714
+ open class TypeSelector: SimpleSelector, JSStringConvertible {
715
+ nonisolated deinit {}
716
+ open var cssType: String = ""
717
+ public init(_ cssType: String) throws {
718
+ try super.init()
719
+ jsMadeLevel(&jsMade, ["cssType"])
720
+ self.cssType = cssType
721
+ }
722
+ open func toString() -> String {
723
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:336)
724
+ return "\(self.cssType)\(Core_ui_styling_css_selector.wrap(self.combinator))"
725
+ }
726
+ #sourceLocation()
727
+ open override func match(_ node: Any?) throws -> Bool {
728
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:339)
729
+ return try jsStrictEquals(jsGet(node, "cssType"), self.cssType)
730
+ }
731
+ #sourceLocation()
732
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
733
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:342)
734
+ _ = try jsCallMethod(
735
+ sorter, "sortByType", self.cssType,
736
+ ({ () -> Any? in
737
+ let __v_4 = base
738
+ return jsTruthy(__v_4) ? __v_4 : self
739
+ }()))
740
+ }
741
+ #sourceLocation()
742
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["cssType"] }
743
+ open override var jsClassName: String? { "TypeSelector" }
744
+ open override subscript(jsKey key: String) -> Any? {
745
+ get {
746
+ switch key.utf8.count {
747
+ case 5:
748
+ switch key {
749
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
750
+ default: break
751
+ }
752
+ case 7:
753
+ switch key {
754
+ case "cssType": return self.cssType
755
+ default: break
756
+ }
757
+ case 8:
758
+ switch key {
759
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
760
+ default: break
761
+ }
762
+ case 10:
763
+ switch key {
764
+ case "lookupSort":
765
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
766
+ default: break
767
+ }
768
+ default: break
769
+ }
770
+ return super[jsKey: key]
771
+ }
772
+ set {
773
+ switch key.utf8.count {
774
+ case 7:
775
+ switch key {
776
+ case "cssType":
777
+ jsStoring { self.cssType = (try jsConvertedString(newValue)) }
778
+ return
779
+ default: break
780
+ }
781
+ default: break
782
+ }
783
+ super[jsKey: key] = newValue
784
+ }
785
+ }
786
+ open override class var jsName: String { "TypeSelector" }
787
+ }
788
+
789
+ open class ClassSelector: SimpleSelector, JSStringConvertible {
790
+ nonisolated deinit {}
791
+ open var cssClass: String = ""
792
+ public init(_ cssClass: String) throws {
793
+ try super.init()
794
+ jsMadeLevel(&jsMade, ["cssClass"])
795
+ self.cssClass = cssClass
796
+ }
797
+ open func toString() -> String {
798
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:352)
799
+ return ".\(self.cssClass)\(Core_ui_styling_css_selector.wrap(self.combinator))"
800
+ }
801
+ #sourceLocation()
802
+ open override func match(_ node: Any?) throws -> Bool {
803
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:355)
804
+ return try
805
+ ({ () throws -> Bool in
806
+ let __v_5 = try (jsGet(node, "cssClasses") as? JSSet<String>)
807
+ return jsTruthy(__v_5)
808
+ ? try jsUnwrap(jsGet(node, "cssClasses") as? JSSet<String>, "has").has(self.cssClass)
809
+ : jsTruthy(__v_5)
810
+ }())
811
+ }
812
+ #sourceLocation()
813
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
814
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:358)
815
+ _ = try jsCallMethod(
816
+ sorter, "sortByClass", self.cssClass,
817
+ ({ () -> Any? in
818
+ let __v_6 = base
819
+ return jsTruthy(__v_6) ? __v_6 : self
820
+ }()))
821
+ }
822
+ #sourceLocation()
823
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["cssClass"] }
824
+ open override var jsClassName: String? { "ClassSelector" }
825
+ open override subscript(jsKey key: String) -> Any? {
826
+ get {
827
+ switch key.utf8.count {
828
+ case 5:
829
+ switch key {
830
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
831
+ default: break
832
+ }
833
+ case 8:
834
+ switch key {
835
+ case "cssClass": return self.cssClass
836
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
837
+ default: break
838
+ }
839
+ case 10:
840
+ switch key {
841
+ case "lookupSort":
842
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
843
+ default: break
844
+ }
845
+ default: break
846
+ }
847
+ return super[jsKey: key]
848
+ }
849
+ set {
850
+ switch key.utf8.count {
851
+ case 8:
852
+ switch key {
853
+ case "cssClass":
854
+ jsStoring { self.cssClass = (try jsConvertedString(newValue)) }
855
+ return
856
+ default: break
857
+ }
858
+ default: break
859
+ }
860
+ super[jsKey: key] = newValue
861
+ }
862
+ }
863
+ open override class var jsName: String { "ClassSelector" }
864
+ }
865
+
866
+ open class AttributeSelector: SimpleSelector, JSStringConvertible {
867
+ nonisolated deinit {}
868
+ open var attribute: String = ""
869
+ open var test: String = ""
870
+ open var value: String = ""
871
+ open var ignoreCase: Bool = false
872
+ public init(_ attribute: String, _ test: String, _ value: String, _ ignoreCase: Bool) throws {
873
+ try super.init()
874
+ jsMadeLevel(&jsMade, ["attribute", "test", "value", "ignoreCase"])
875
+ self.attribute = attribute
876
+ self.test = test
877
+ self.value = value
878
+ self.ignoreCase = ignoreCase
879
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:373)
880
+ if ignoreCase && jsTruthy(value) {
881
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:374)
882
+ self.value = value.lowercased()
883
+ }
884
+ }
885
+ #sourceLocation()
886
+ open func toString() -> String {
887
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:378)
888
+ return [
889
+ "[", (self.attribute), "",
890
+ (Core_ui_styling_css_selector.wrap(
891
+ (jsLenientString(AttributeSelectorOperator.jsEnumObject[jsKey: self.test]) ?? self.test))), "",
892
+ (({ () -> String in
893
+ let __v_7 = self.value
894
+ return jsTruthy(__v_7) ? jsPresent(__v_7) : ""
895
+ }())), "]", (Core_ui_styling_css_selector.wrap(self.combinator)), "",
896
+ ].joined()
897
+ }
898
+ #sourceLocation()
899
+ open override func match(_ node: Any?) throws -> Bool {
900
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:381)
901
+ var attr: Any? = try jsGet(node, self.attribute)
902
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:383)
903
+ if jsStringEquals(self.test, "exists") {
904
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:384)
905
+ return !Core_utils_types.isNullOrUndefined(attr)
906
+ }
907
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:387)
908
+ if !jsTruthy(self.value) {
909
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:388)
910
+ return false
911
+ }
912
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:392)
913
+ attr = try jsAddThrowing(attr, "")
914
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:394)
915
+ if self.ignoreCase {
916
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:395)
917
+ attr = try jsCallMethod(attr, "toLowerCase")
918
+ }
919
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:399)
920
+ if jsStringEquals(self.test, "equals") {
921
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:400)
922
+ return jsStrictEquals(attr, self.value)
923
+ }
924
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:404)
925
+ if jsStringEquals(self.test, "start") {
926
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:405)
927
+ return try jsConvertedBool(jsCallMethod(attr, "startsWith", self.value))
928
+ }
929
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:409)
930
+ if jsStringEquals(self.test, "end") {
931
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:410)
932
+ return try jsConvertedBool(jsCallMethod(attr, "endsWith", self.value))
933
+ }
934
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:414)
935
+ if jsStringEquals(self.test, "any") {
936
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:415)
937
+ return try !jsStrictEquals(jsCallMethod(attr, "indexOf", self.value), Double(-1))
938
+ }
939
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:419)
940
+ if jsStringEquals(self.test, "element") {
941
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:420)
942
+ let words: Any? = try jsCallMethod(attr, "split", " ")
943
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:421)
944
+ return try
945
+ ({ () throws -> Bool in
946
+ let __v_8 = words
947
+ return jsTruthy(__v_8)
948
+ ? try !jsStrictEquals(jsCallMethod(words, "indexOf", self.value), Double(-1))
949
+ : jsLenientBool(__v_8)
950
+ }())
951
+ }
952
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:425)
953
+ if jsStringEquals(self.test, "hyphen") {
954
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:426)
955
+ return try jsConvertedBool(
956
+ ({ () throws -> Any? in
957
+ let __v_9 = jsStrictEquals(attr, self.value)
958
+ return jsTruthy(__v_9) ? __v_9 : try jsCallMethod(attr, "startsWith", self.value + "-")
959
+ }()))
960
+ }
961
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:428)
962
+ return false
963
+ }
964
+ #sourceLocation()
965
+ open override func mayMatch(_ node: Any?) throws -> Bool {
966
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:435)
967
+ return true
968
+ }
969
+ #sourceLocation()
970
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
971
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:438)
972
+ if try Core_ui_styling_css_selector.attributeNotifiesChanges(node, self.attribute) {
973
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:439)
974
+ try jsCallMethod(map, "addAttribute", node, self.attribute)
975
+ }
976
+ }
977
+ #sourceLocation()
978
+ open override var jsDeclaredKeys: [String] {
979
+ super.jsDeclaredKeys + ["attribute"] + ["test"] + ["value"] + ["ignoreCase"]
980
+ }
981
+ open override var jsClassName: String? { "AttributeSelector" }
982
+ open override subscript(jsKey key: String) -> Any? {
983
+ get {
984
+ switch key.utf8.count {
985
+ case 4:
986
+ switch key {
987
+ case "test": return self.test
988
+ default: break
989
+ }
990
+ case 5:
991
+ switch key {
992
+ case "value": return jsExpandoGet(self, "value")
993
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
994
+ default: break
995
+ }
996
+ case 8:
997
+ switch key {
998
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
999
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
1000
+ default: break
1001
+ }
1002
+ case 9:
1003
+ switch key {
1004
+ case "attribute": return self.attribute
1005
+ default: break
1006
+ }
1007
+ case 10:
1008
+ switch key {
1009
+ case "ignoreCase": return self.ignoreCase
1010
+ default: break
1011
+ }
1012
+ case 12:
1013
+ switch key {
1014
+ case "trackChanges":
1015
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
1016
+ default: break
1017
+ }
1018
+ default: break
1019
+ }
1020
+ return super[jsKey: key]
1021
+ }
1022
+ set {
1023
+ switch key.utf8.count {
1024
+ case 4:
1025
+ switch key {
1026
+ case "test":
1027
+ jsStoring { self.test = (try jsConvertedString(newValue)) }
1028
+ return
1029
+ default: break
1030
+ }
1031
+ case 5:
1032
+ switch key {
1033
+ case "value":
1034
+ jsExpandoSet(self, "value", newValue)
1035
+ return
1036
+ default: break
1037
+ }
1038
+ case 9:
1039
+ switch key {
1040
+ case "attribute":
1041
+ jsStoring { self.attribute = (try jsConvertedString(newValue)) }
1042
+ return
1043
+ default: break
1044
+ }
1045
+ case 10:
1046
+ switch key {
1047
+ case "ignoreCase":
1048
+ jsStoring { self.ignoreCase = (try jsConvertedBool(newValue)) }
1049
+ return
1050
+ default: break
1051
+ }
1052
+ default: break
1053
+ }
1054
+ super[jsKey: key] = newValue
1055
+ }
1056
+ }
1057
+ open override class var jsName: String { "AttributeSelector" }
1058
+ }
1059
+
1060
+ open class PseudoClassSelector: SimpleSelector, JSStringConvertible {
1061
+ nonisolated deinit {}
1062
+ open var cssPseudoClass: String = ""
1063
+ public init(_ cssPseudoClass: String) throws {
1064
+ try super.init()
1065
+ jsMadeLevel(&jsMade, ["cssPseudoClass"])
1066
+ self.cssPseudoClass = cssPseudoClass
1067
+ }
1068
+ open func toString() throws -> String {
1069
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:450)
1070
+ return ":\(self.cssPseudoClass)\(Core_ui_styling_css_selector.wrap(self.combinator))"
1071
+ }
1072
+ #sourceLocation()
1073
+ public final func toString__PseudoClassSelector() throws -> String {
1074
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:450)
1075
+ return ":\(self.cssPseudoClass)\(Core_ui_styling_css_selector.wrap(self.combinator))"
1076
+ }
1077
+ #sourceLocation()
1078
+ open override func match(_ node: Any?) throws -> Bool {
1079
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:453)
1080
+ return try
1081
+ ({ () throws -> Bool in
1082
+ let __v_10 = try (jsGet(node, "cssPseudoClasses") as? JSSet<String>)
1083
+ return jsTruthy(__v_10)
1084
+ ? try jsUnwrap(jsGet(node, "cssPseudoClasses") as? JSSet<String>, "has").has(self.cssPseudoClass)
1085
+ : jsTruthy(__v_10)
1086
+ }())
1087
+ }
1088
+ #sourceLocation()
1089
+ public final func match__PseudoClassSelector(_ node: Any?) throws -> Bool {
1090
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:453)
1091
+ return try
1092
+ ({ () throws -> Bool in
1093
+ let __v_11 = try (jsGet(node, "cssPseudoClasses") as? JSSet<String>)
1094
+ return jsTruthy(__v_11)
1095
+ ? try jsUnwrap(jsGet(node, "cssPseudoClasses") as? JSSet<String>, "has").has(self.cssPseudoClass)
1096
+ : jsTruthy(__v_11)
1097
+ }())
1098
+ }
1099
+ #sourceLocation()
1100
+ open override func mayMatch(_ node: Any?) throws -> Bool {
1101
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:456)
1102
+ return true
1103
+ }
1104
+ #sourceLocation()
1105
+ public final func mayMatch__PseudoClassSelector(_ node: Any?) throws -> Bool {
1106
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:456)
1107
+ return true
1108
+ }
1109
+ #sourceLocation()
1110
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
1111
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:459)
1112
+ try jsCallMethod(map, "addPseudoClass", node, self.cssPseudoClass)
1113
+ }
1114
+ #sourceLocation()
1115
+ public final func trackChanges__PseudoClassSelector(_ node: Any?, _ map: Any?) throws {
1116
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:459)
1117
+ try jsCallMethod(map, "addPseudoClass", node, self.cssPseudoClass)
1118
+ }
1119
+ #sourceLocation()
1120
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["cssPseudoClass"] }
1121
+ open override var jsClassName: String? { "PseudoClassSelector" }
1122
+ open override subscript(jsKey key: String) -> Any? {
1123
+ get {
1124
+ switch key.utf8.count {
1125
+ case 5:
1126
+ switch key {
1127
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1128
+ default: break
1129
+ }
1130
+ case 8:
1131
+ switch key {
1132
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
1133
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
1134
+ default: break
1135
+ }
1136
+ case 12:
1137
+ switch key {
1138
+ case "trackChanges":
1139
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
1140
+ default: break
1141
+ }
1142
+ case 14:
1143
+ switch key {
1144
+ case "cssPseudoClass": return self.cssPseudoClass
1145
+ default: break
1146
+ }
1147
+ default: break
1148
+ }
1149
+ return super[jsKey: key]
1150
+ }
1151
+ set {
1152
+ switch key.utf8.count {
1153
+ case 14:
1154
+ switch key {
1155
+ case "cssPseudoClass":
1156
+ jsStoring { self.cssPseudoClass = (try jsConvertedString(newValue)) }
1157
+ return
1158
+ default: break
1159
+ }
1160
+ default: break
1161
+ }
1162
+ super[jsKey: key] = newValue
1163
+ }
1164
+ }
1165
+ open override class var jsName: String { "PseudoClassSelector" }
1166
+ }
1167
+
1168
+ open class FunctionalPseudoClassSelector: PseudoClassSelector {
1169
+ nonisolated deinit {}
1170
+ open var selectors: JSArray<Any?>? = JSArray<Any?>() {
1171
+ didSet { if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "selectors") } }
1172
+ }
1173
+ open var selectorListType: Double = .nan {
1174
+ didSet { if jsMadeBits0 & (1 << 10) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 10, "selectorListType") } }
1175
+ }
1176
+ public init(_ cssPseudoClass: String, _ dataType: Any?) throws {
1177
+ try super.init(cssPseudoClass)
1178
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:470)
1179
+ let selectors: JSArray<Any?> = JSArray<Any?>()
1180
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:471)
1181
+ let needsHighestSpecificity: Bool = jsLenientNumberEquals(self.specificity, Specificity.SelectorListHighest)
1182
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:473)
1183
+ var specificity: Double = 0
1184
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:475)
1185
+ if JSArray<Any?>.isArray(dataType) {
1186
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:476)
1187
+ for asts in try jsIterated(
1188
+ try jsArrayOrNil(
1189
+ dataType, as: JSArray<JSArray<Any?>>.self,
1190
+ { try jsObjectRequired(jsArrayOrNil($0, as: JSArray<Any?>.self, { $0 })) }),
1191
+ "dataType is not iterable")
1192
+ {
1193
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:477)
1194
+ let selector: Any? = try Core_ui_styling_css_selector.createSelectorFromAst(asts)
1195
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:479)
1196
+ if selector is InvalidSelector {
1197
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:481)
1198
+ if !jsLenientNumberEquals(self.selectorListType, PseudoClassSelectorList.Forgiving) {
1199
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:482)
1200
+ _ = selectors.splice(0)
1201
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:483)
1202
+ specificity = 0
1203
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:484)
1204
+ break
1205
+ }
1206
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:487)
1207
+ continue
1208
+ }
1209
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:491)
1210
+ if try needsHighestSpecificity && jsConvertedNumber(jsGet(selector, "specificity")) > specificity {
1211
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:492)
1212
+ specificity = try jsConvertedNumber(jsGet(selector, "specificity"))
1213
+ }
1214
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:495)
1215
+ _ = selectors.push(selector)
1216
+ }
1217
+ }
1218
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:499)
1219
+ self.selectors = selectors
1220
+ if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "selectors") }
1221
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:500)
1222
+ self.specificity = specificity
1223
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:502)
1224
+ self.dynamic = try jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1225
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:502)
1226
+ return try jsConvertedBool(jsGet(sel, "dynamic"))
1227
+ })
1228
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:503)
1229
+ self.hasAdjacentCombinator = try jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1230
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:503)
1231
+ return try jsConvertedBool(jsGet(sel, "hasAdjacentCombinator"))
1232
+ })
1233
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:504)
1234
+ self.hasSiblingCombinator = try jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1235
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:504)
1236
+ return try jsConvertedBool(jsGet(sel, "hasSiblingCombinator"))
1237
+ })
1238
+ }
1239
+ #sourceLocation()
1240
+ open override func toString() throws -> String {
1241
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:507)
1242
+ return try
1243
+ ":\(self.cssPseudoClass)(\(jsUnwrap(self.selectors, "join").join(", ")))\(Core_ui_styling_css_selector.wrap(self.combinator))"
1244
+ }
1245
+ #sourceLocation()
1246
+ open override func match(_ node: Any?) throws -> Bool {
1247
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:510)
1248
+ return false
1249
+ }
1250
+ #sourceLocation()
1251
+ public final func match__FunctionalPseudoClassSelector(_ node: Any?) throws -> Bool {
1252
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:510)
1253
+ return false
1254
+ }
1255
+ #sourceLocation()
1256
+ open override func mayMatch(_ node: Any?) throws -> Bool {
1257
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:513)
1258
+ return true
1259
+ }
1260
+ #sourceLocation()
1261
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
1262
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:516)
1263
+ try jsUnwrap(self.selectors, "forEach").forEach({ (sel: Any?) throws -> Void in
1264
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:516)
1265
+ try jsCallMethod(sel, "trackChanges", node, map)
1266
+ })
1267
+ }
1268
+ #sourceLocation()
1269
+ open override var jsDeclaredKeys: [String] {
1270
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 9) != 0 ? ["selectors"] : [])
1271
+ + (jsMadeBits0 & (1 << 10) != 0 ? ["selectorListType"] : [])
1272
+ }
1273
+ open override var jsClassName: String? { "FunctionalPseudoClassSelector" }
1274
+ open override subscript(jsKey key: String) -> Any? {
1275
+ get {
1276
+ switch key.utf8.count {
1277
+ case 5:
1278
+ switch key {
1279
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1280
+ default: break
1281
+ }
1282
+ case 8:
1283
+ switch key {
1284
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
1285
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
1286
+ default: break
1287
+ }
1288
+ case 9:
1289
+ switch key {
1290
+ case "selectors":
1291
+ if !(jsMadeBits0 & (1 << 9) != 0) { return nil }
1292
+ return self.selectors
1293
+ default: break
1294
+ }
1295
+ case 12:
1296
+ switch key {
1297
+ case "trackChanges":
1298
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
1299
+ default: break
1300
+ }
1301
+ case 16:
1302
+ switch key {
1303
+ case "selectorListType":
1304
+ if !(jsMadeBits0 & (1 << 10) != 0) { return nil }
1305
+ return self.selectorListType
1306
+ default: break
1307
+ }
1308
+ default: break
1309
+ }
1310
+ return super[jsKey: key]
1311
+ }
1312
+ set {
1313
+ switch key.utf8.count {
1314
+ case 9:
1315
+ switch key {
1316
+ case "selectors":
1317
+ self.selectors = jsArrayOrNil(newValue, as: JSArray<Any?>.self, { $0 })
1318
+ return
1319
+ default: break
1320
+ }
1321
+ case 16:
1322
+ switch key {
1323
+ case "selectorListType":
1324
+ jsStoring { self.selectorListType = (try jsConvertedNumber(newValue)) }
1325
+ return
1326
+ default: break
1327
+ }
1328
+ default: break
1329
+ }
1330
+ super[jsKey: key] = newValue
1331
+ }
1332
+ }
1333
+ open override class var jsName: String { "FunctionalPseudoClassSelector" }
1334
+ }
1335
+
1336
+ open class NotFunctionalPseudoClassSelector: FunctionalPseudoClassSelector {
1337
+ nonisolated deinit {}
1338
+ public override init(_ cssPseudoClass: String, _ dataType: Any?) throws {
1339
+ try super.init(cssPseudoClass, dataType)
1340
+ }
1341
+ open override func match(_ node: Any?) throws -> Bool {
1342
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:523)
1343
+ return try
1344
+ !(jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1345
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:523)
1346
+ return try jsLenientBool(jsCallMethod(sel, "match", node))
1347
+ }))
1348
+ }
1349
+ #sourceLocation()
1350
+ open override var jsClassName: String? { "NotFunctionalPseudoClassSelector" }
1351
+ open override subscript(jsKey key: String) -> Any? {
1352
+ get {
1353
+ switch key.utf8.count {
1354
+ case 5:
1355
+ switch key {
1356
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1357
+ default: break
1358
+ }
1359
+ default: break
1360
+ }
1361
+ return super[jsKey: key]
1362
+ }
1363
+ set {
1364
+ super[jsKey: key] = newValue
1365
+ }
1366
+ }
1367
+ open override class var jsName: String { "NotFunctionalPseudoClassSelector" }
1368
+ }
1369
+
1370
+ open class IsFunctionalPseudoClassSelector: FunctionalPseudoClassSelector {
1371
+ nonisolated deinit {}
1372
+ public override init(_ cssPseudoClass: String, _ dataType: Any?) throws {
1373
+ try super.init(cssPseudoClass, dataType)
1374
+ }
1375
+ open override func match(_ node: Any?) throws -> Bool {
1376
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:530)
1377
+ return try jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1378
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:530)
1379
+ return try jsLenientBool(jsCallMethod(sel, "match", node))
1380
+ })
1381
+ }
1382
+ #sourceLocation()
1383
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
1384
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:535)
1385
+ if try jsUnwrap(self.selectors, "length").length == 1 {
1386
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:536)
1387
+ try jsCallMethod(
1388
+ (jsUnwrap(self.selectors, "0").element(0) ?? nil), "lookupSort", sorter,
1389
+ ({ () -> Any? in
1390
+ let __v_12 = base
1391
+ return jsTruthy(__v_12) ? __v_12 : self
1392
+ }()))
1393
+ } else {
1394
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:538)
1395
+ try super.lookupSort(
1396
+ sorter,
1397
+ (try jsCast(
1398
+ ({ () -> Any? in
1399
+ let __v_13 = base
1400
+ return jsTruthy(__v_13) ? __v_13 : self
1401
+ }()), SelectorCore.self)))
1402
+ }
1403
+ }
1404
+ #sourceLocation()
1405
+ open override var jsClassName: String? { "IsFunctionalPseudoClassSelector" }
1406
+ open override subscript(jsKey key: String) -> Any? {
1407
+ get {
1408
+ switch key.utf8.count {
1409
+ case 5:
1410
+ switch key {
1411
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1412
+ default: break
1413
+ }
1414
+ case 10:
1415
+ switch key {
1416
+ case "lookupSort":
1417
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
1418
+ default: break
1419
+ }
1420
+ default: break
1421
+ }
1422
+ return super[jsKey: key]
1423
+ }
1424
+ set {
1425
+ super[jsKey: key] = newValue
1426
+ }
1427
+ }
1428
+ open override class var jsName: String { "IsFunctionalPseudoClassSelector" }
1429
+ }
1430
+
1431
+ open class WhereFunctionalPseudoClassSelector: FunctionalPseudoClassSelector {
1432
+ nonisolated deinit {}
1433
+ public override init(_ cssPseudoClass: String, _ dataType: Any?) throws {
1434
+ try super.init(cssPseudoClass, dataType)
1435
+ }
1436
+ open override func match(_ node: Any?) throws -> Bool {
1437
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:546)
1438
+ return try jsUnwrap(self.selectors, "some").some({ (sel: Any?) throws -> Bool in
1439
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:546)
1440
+ return try jsLenientBool(jsCallMethod(sel, "match", node))
1441
+ })
1442
+ }
1443
+ #sourceLocation()
1444
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
1445
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:551)
1446
+ if try jsUnwrap(self.selectors, "length").length == 1 {
1447
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:552)
1448
+ try jsCallMethod(
1449
+ (jsUnwrap(self.selectors, "0").element(0) ?? nil), "lookupSort", sorter,
1450
+ ({ () -> Any? in
1451
+ let __v_14 = base
1452
+ return jsTruthy(__v_14) ? __v_14 : self
1453
+ }()))
1454
+ } else {
1455
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:554)
1456
+ try super.lookupSort(
1457
+ sorter,
1458
+ (try jsCast(
1459
+ ({ () -> Any? in
1460
+ let __v_15 = base
1461
+ return jsTruthy(__v_15) ? __v_15 : self
1462
+ }()), SelectorCore.self)))
1463
+ }
1464
+ }
1465
+ #sourceLocation()
1466
+ open override var jsClassName: String? { "WhereFunctionalPseudoClassSelector" }
1467
+ open override subscript(jsKey key: String) -> Any? {
1468
+ get {
1469
+ switch key.utf8.count {
1470
+ case 5:
1471
+ switch key {
1472
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1473
+ default: break
1474
+ }
1475
+ case 10:
1476
+ switch key {
1477
+ case "lookupSort":
1478
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
1479
+ default: break
1480
+ }
1481
+ default: break
1482
+ }
1483
+ return super[jsKey: key]
1484
+ }
1485
+ set {
1486
+ super[jsKey: key] = newValue
1487
+ }
1488
+ }
1489
+ open override class var jsName: String { "WhereFunctionalPseudoClassSelector" }
1490
+ }
1491
+
1492
+ open class SimpleSelectorSequence: SimpleSelector, JSStringConvertible {
1493
+ nonisolated deinit {}
1494
+ open var selectors: JSArray<SimpleSelector>? = JSArray<SimpleSelector>()
1495
+ open var head: SimpleSelector? {
1496
+ didSet { if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "head") } }
1497
+ }
1498
+ public init(_ selectors: JSArray<SimpleSelector>?) throws {
1499
+ try super.init()
1500
+ jsMadeLevel(&jsMade, ["selectors"])
1501
+ self.selectors = selectors
1502
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:564)
1503
+ self.specificity = try jsUnwrap(selectors, "reduce").reduce(
1504
+ { (sum: Double, sel: SimpleSelector?) throws -> Double in
1505
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:564)
1506
+ return try jsUnwrap(sel, "specificity").specificity + sum
1507
+ }, 0)
1508
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:565)
1509
+ self.head = try jsUnwrap(selectors, "reduce").reduce(
1510
+ { (prev: SimpleSelector?, curr: SimpleSelector?) throws -> SimpleSelector in
1511
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:565)
1512
+ return try jsObjectRequired(
1513
+ (jsObjectRequired(
1514
+ (!jsTruthy(prev) || jsUnwrap(curr, "rarity").rarity > jsUnwrap(prev, "rarity").rarity
1515
+ ? jsObjectRequired(curr) : jsObjectRequired(prev)))))
1516
+ }, nil)
1517
+ if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "head") }
1518
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:566)
1519
+ self.dynamic = try jsUnwrap(selectors, "some").some({ (sel: SimpleSelector?) throws -> Bool in
1520
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:566)
1521
+ return try jsUnwrap(sel, "dynamic").dynamic
1522
+ })
1523
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:567)
1524
+ self.hasAdjacentCombinator = try jsUnwrap(selectors, "some").some({ (sel: SimpleSelector?) throws -> Bool in
1525
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:567)
1526
+ return try jsUnwrap(sel, "hasAdjacentCombinator").hasAdjacentCombinator
1527
+ })
1528
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:568)
1529
+ self.hasSiblingCombinator = try jsUnwrap(selectors, "some").some({ (sel: SimpleSelector?) throws -> Bool in
1530
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:568)
1531
+ return try jsUnwrap(sel, "hasSiblingCombinator").hasSiblingCombinator
1532
+ })
1533
+ }
1534
+ #sourceLocation()
1535
+ open func toString() throws -> String {
1536
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:571)
1537
+ return try "\(jsUnwrap(self.selectors, "join").join(""))\(Core_ui_styling_css_selector.wrap(self.combinator))"
1538
+ }
1539
+ #sourceLocation()
1540
+ open override func match(_ node: Any?) throws -> Bool {
1541
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:574)
1542
+ let selectors: JSArray<SimpleSelector>? = self.selectors
1543
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:575)
1544
+ var i: Double = 0
1545
+ let length: Double = try jsUnwrap(selectors, "length").length
1546
+ while i < length {
1547
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:576)
1548
+ if try !(jsUnwrap(jsUnwrap(selectors, "i").element(i), "match").match(node)) {
1549
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:577)
1550
+ return false
1551
+ }
1552
+ i += 1
1553
+ }
1554
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:581)
1555
+ return true
1556
+ }
1557
+ #sourceLocation()
1558
+ open override func mayMatch(_ node: Any?) throws -> Bool {
1559
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:584)
1560
+ let selectors: JSArray<SimpleSelector>? = self.selectors
1561
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:585)
1562
+ var i: Double = 0
1563
+ let length: Double = try jsUnwrap(selectors, "length").length
1564
+ while i < length {
1565
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:586)
1566
+ if try !(jsUnwrap(jsUnwrap(selectors, "i").element(i), "mayMatch").mayMatch(node)) {
1567
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:587)
1568
+ return false
1569
+ }
1570
+ i += 1
1571
+ }
1572
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:591)
1573
+ return true
1574
+ }
1575
+ #sourceLocation()
1576
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
1577
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:594)
1578
+ let selectors: JSArray<SimpleSelector>? = self.selectors
1579
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:595)
1580
+ var i: Double = 0
1581
+ let length: Double = try jsUnwrap(selectors, "length").length
1582
+ while i < length {
1583
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:596)
1584
+ try jsUnwrap(jsUnwrap(selectors, "i").element(i), "trackChanges").trackChanges(node, map)
1585
+ i += 1
1586
+ }
1587
+ }
1588
+ #sourceLocation()
1589
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
1590
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:600)
1591
+ try jsUnwrap(self.head, "lookupSort").lookupSort(
1592
+ sorter,
1593
+ (try jsCast(
1594
+ ({ () -> Any? in
1595
+ let __v_16 = base
1596
+ return jsTruthy(__v_16) ? __v_16 : self
1597
+ }()), SelectorCore.self)))
1598
+ }
1599
+ #sourceLocation()
1600
+ open override var jsDeclaredKeys: [String] {
1601
+ super.jsDeclaredKeys + ["selectors"] + (jsMadeBits0 & (1 << 9) != 0 ? ["head"] : [])
1602
+ }
1603
+ open override var jsClassName: String? { "SimpleSelectorSequence" }
1604
+ open override subscript(jsKey key: String) -> Any? {
1605
+ get {
1606
+ switch key.utf8.count {
1607
+ case 4:
1608
+ switch key {
1609
+ case "head":
1610
+ if !(jsMadeBits0 & (1 << 9) != 0) { return nil }
1611
+ return self.head
1612
+ default: break
1613
+ }
1614
+ case 5:
1615
+ switch key {
1616
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1617
+ default: break
1618
+ }
1619
+ case 8:
1620
+ switch key {
1621
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
1622
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
1623
+ default: break
1624
+ }
1625
+ case 9:
1626
+ switch key {
1627
+ case "selectors": return self.selectors
1628
+ default: break
1629
+ }
1630
+ case 10:
1631
+ switch key {
1632
+ case "lookupSort":
1633
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
1634
+ default: break
1635
+ }
1636
+ case 12:
1637
+ switch key {
1638
+ case "trackChanges":
1639
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
1640
+ default: break
1641
+ }
1642
+ default: break
1643
+ }
1644
+ return super[jsKey: key]
1645
+ }
1646
+ set {
1647
+ switch key.utf8.count {
1648
+ case 4:
1649
+ switch key {
1650
+ case "head":
1651
+ jsStoring { self.head = (try jsCast(newValue, SimpleSelector.self)) }
1652
+ return
1653
+ default: break
1654
+ }
1655
+ case 9:
1656
+ switch key {
1657
+ case "selectors":
1658
+ jsStoring {
1659
+ self.selectors = try jsArrayOrNil(
1660
+ newValue, as: JSArray<SimpleSelector>.self, { try (jsCastPresent($0) as SimpleSelector) })
1661
+ }
1662
+ return
1663
+ default: break
1664
+ }
1665
+ default: break
1666
+ }
1667
+ super[jsKey: key] = newValue
1668
+ }
1669
+ }
1670
+ open override class var jsName: String { "SimpleSelectorSequence" }
1671
+ }
1672
+
1673
+ open class ComplexSelector: SelectorCore, JSStringConvertible {
1674
+ nonisolated deinit {}
1675
+ open var selectors: JSArray<SimpleSelector>? = JSArray<SimpleSelector>()
1676
+ open var groups: JSArray<NativeScriptKit.Selector.ChildGroup>? = JSArray<NativeScriptKit.Selector.ChildGroup>() {
1677
+ didSet { if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "groups") } }
1678
+ }
1679
+ open var last: SelectorCore? {
1680
+ didSet { if jsMadeBits0 & (1 << 10) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 10, "last") } }
1681
+ }
1682
+ public init(_ selectors: JSArray<SimpleSelector>?) throws {
1683
+ try super.init()
1684
+ jsMadeLevel(&jsMade, ["selectors"])
1685
+ self.selectors = selectors
1686
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:612)
1687
+ var siblingsToGroup: JSArray<SimpleSelector>? = nil
1688
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:613)
1689
+ var currentGroup: JSArray<JSArray<SimpleSelector>>? = nil
1690
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:614)
1691
+ let groups: JSArray<JSArray<JSArray<SimpleSelector>>> = JSArray<JSArray<JSArray<SimpleSelector>>>()
1692
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:616)
1693
+ self.specificity = 0
1694
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:617)
1695
+ self.dynamic = false
1696
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:618)
1697
+ self.hasAdjacentCombinator = false
1698
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:619)
1699
+ self.hasSiblingCombinator = false
1700
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:621)
1701
+ var i: Double = try jsUnwrap(selectors, "length").length - 1
1702
+ while i >= 0 {
1703
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:622)
1704
+ let sel: SimpleSelector? = try jsUnwrap(selectors, "i").element(i)
1705
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:624)
1706
+ let __switch1: String = try jsUnwrap(sel, "combinator").combinator
1707
+ switch __switch1 {
1708
+ case _ where jsStringEquals(__switch1, "") || jsStringEquals(__switch1, Combinator.descendant):
1709
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:627)
1710
+ siblingsToGroup = JSArray<SimpleSelector>()
1711
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:628)
1712
+ currentGroup = try JSArray<JSArray<SimpleSelector>>([jsObjectRequired(siblingsToGroup)])
1713
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:630)
1714
+ _ = try groups.push(jsObjectRequired(currentGroup))
1715
+ case _ where jsStringEquals(__switch1, Combinator.child):
1716
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:633)
1717
+ siblingsToGroup = JSArray<SimpleSelector>()
1718
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:635)
1719
+ _ = try jsUnwrap(currentGroup, "push").push(jsObjectRequired(siblingsToGroup))
1720
+ case _ where jsStringEquals(__switch1, Combinator.adjacent):
1721
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:638)
1722
+ self.hasAdjacentCombinator = true
1723
+ case _ where jsStringEquals(__switch1, Combinator.sibling):
1724
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:641)
1725
+ self.hasSiblingCombinator = true
1726
+ default:
1727
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:644)
1728
+ throw try JSException(
1729
+ value: JSError(
1730
+ "Unsupported combinator \"\(jsUnwrap(sel, "combinator").combinator)\" for selector \(jsToStringThrowing((sel as Any?)))."
1731
+ ))
1732
+ }
1733
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:647)
1734
+ try self.specificity += jsUnwrap(sel, "specificity").specificity
1735
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:649)
1736
+ if try jsUnwrap(sel, "dynamic").dynamic {
1737
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:650)
1738
+ self.dynamic = true
1739
+ }
1740
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:653)
1741
+ if try jsUnwrap(sel, "hasAdjacentCombinator").hasAdjacentCombinator {
1742
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:654)
1743
+ self.hasAdjacentCombinator = true
1744
+ }
1745
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:657)
1746
+ if try jsUnwrap(sel, "hasSiblingCombinator").hasSiblingCombinator {
1747
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:658)
1748
+ self.hasSiblingCombinator = true
1749
+ }
1750
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:661)
1751
+ _ = try jsUnwrap(siblingsToGroup, "push").push(jsObjectRequired(sel))
1752
+ i -= 1
1753
+ }
1754
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:664)
1755
+ self.groups = try (groups as JSArray<JSArray<JSArray<SimpleSelector>>>).map({
1756
+ (g: JSArray<JSArray<SimpleSelector>>?) throws -> NativeScriptKit.Selector.ChildGroup in
1757
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:664)
1758
+ return try NativeScriptKit.Selector.ChildGroup(
1759
+ try jsArrayFrom(
1760
+ (jsUnwrap(g, "map") as JSArray<JSArray<SimpleSelector>>).map({
1761
+ (selectors: JSArray<SimpleSelector>?) throws -> Any? in
1762
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:664)
1763
+ return try
1764
+ ((jsUnwrap(selectors, "length").length > 1
1765
+ ? (NativeScriptKit.Selector.SiblingGroup(selectors) as Any?)
1766
+ : ((jsUnwrap(selectors, "0").element(0) as Any?) as Any?)))
1767
+ })
1768
+ ) { try (jsCastPresent($0) as SelectorBase) })
1769
+ })
1770
+ if jsMadeBits0 & (1 << 9) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 9, "groups") }
1771
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:665)
1772
+ self.last = try jsImplicit(
1773
+ jsUnwrap(selectors, "selectors.length - 1").element(jsUnwrap(selectors, "length").length - 1))
1774
+ if jsMadeBits0 & (1 << 10) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 10, "last") }
1775
+ }
1776
+ #sourceLocation()
1777
+ open func toString() throws -> String {
1778
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:669)
1779
+ return try jsUnwrap(self.selectors, "join").join("")
1780
+ }
1781
+ #sourceLocation()
1782
+ open override func match(_ node: Any?) throws -> Bool {
1783
+ var node = node
1784
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:673)
1785
+ let groups: JSArray<NativeScriptKit.Selector.ChildGroup>? = self.groups
1786
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:674)
1787
+ var i: Double = 0
1788
+ let length: Double = try jsUnwrap(groups, "length").length
1789
+ while i < length {
1790
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:675)
1791
+ let group: NativeScriptKit.Selector.ChildGroup? = try jsUnwrap(groups, "i").element(i)
1792
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:676)
1793
+ if i == 0 {
1794
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:677)
1795
+ node = try jsUnwrap(group, "getMatchingNode").getMatchingNode(node, true)
1796
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:678)
1797
+ if !jsTruthy(node) {
1798
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:679)
1799
+ return false
1800
+ }
1801
+ } else {
1802
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:682)
1803
+ var ancestor: Any? = node
1804
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:683)
1805
+ var matched: Bool = false
1806
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:684)
1807
+ while try jsTruthy(
1808
+ ({ () throws -> Any? in
1809
+ try ancestor = jsNullishCoalesce(jsGet(ancestor, "parent"), jsGet(ancestor, "_modalParent"))
1810
+ return ancestor
1811
+ }()))
1812
+ {
1813
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:685)
1814
+ if try jsTruthy(
1815
+ ({ () throws -> Any? in
1816
+ try node = jsUnwrap(group, "getMatchingNode").getMatchingNode(ancestor, true)
1817
+ return node
1818
+ }()))
1819
+ {
1820
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:686)
1821
+ matched = true
1822
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:687)
1823
+ break
1824
+ }
1825
+ }
1826
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:691)
1827
+ if !matched {
1828
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:692)
1829
+ return false
1830
+ }
1831
+ }
1832
+ i += 1
1833
+ }
1834
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:697)
1835
+ return true
1836
+ }
1837
+ #sourceLocation()
1838
+ open override func mayMatch(_ node: Any?) -> Bool {
1839
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:701)
1840
+ return false
1841
+ }
1842
+ #sourceLocation()
1843
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
1844
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:705)
1845
+ let selectors: JSArray<SimpleSelector>? = self.selectors
1846
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:706)
1847
+ var i: Double = 0
1848
+ let length: Double = try jsUnwrap(selectors, "length").length
1849
+ while i < length {
1850
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:707)
1851
+ try jsUnwrap(jsUnwrap(selectors, "i").element(i), "trackChanges").trackChanges(node, map)
1852
+ i += 1
1853
+ }
1854
+ }
1855
+ #sourceLocation()
1856
+ open override func lookupSort(_ sorter: Any?, _ base: SelectorCore? = nil) throws {
1857
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:712)
1858
+ try jsUnwrap(self.last, "lookupSort").lookupSort(
1859
+ sorter,
1860
+ (try jsCast(
1861
+ ({ () -> Any? in
1862
+ let __v_17 = base
1863
+ return jsTruthy(__v_17) ? __v_17 : self
1864
+ }()), SelectorCore.self)))
1865
+ }
1866
+ #sourceLocation()
1867
+ open override func accumulateChanges(_ node: Any?, _ map: Any? = nil) throws -> Bool {
1868
+ var node = node
1869
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:716)
1870
+ if !self.dynamic {
1871
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:717)
1872
+ return try self.match(node)
1873
+ }
1874
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:720)
1875
+ let bounds: JSArray<Any?> = JSArray<Any?>()
1876
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:721)
1877
+ let mayMatch: Bool = try jsUnwrap(self.groups, "every").every({
1878
+ (group: NativeScriptKit.Selector.ChildGroup?, i: Double) throws -> Bool in
1879
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:722)
1880
+ if i == 0 {
1881
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:723)
1882
+ let nextNode: Any? = try jsUnwrap(group, "getMatchingNode").getMatchingNode(node, false)
1883
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:724)
1884
+ _ = bounds.push(JSObject([("left", node), ("right", node)]))
1885
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:725)
1886
+ node = nextNode
1887
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:727)
1888
+ return jsTruthy(node)
1889
+ } else {
1890
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:729)
1891
+ var ancestor: Any? = node
1892
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:730)
1893
+ while try jsTruthy(
1894
+ ({ () throws -> Any? in
1895
+ try ancestor = jsGet(ancestor, "parent")
1896
+ return ancestor
1897
+ }()))
1898
+ {
1899
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:731)
1900
+ let nextNode: Any? = try jsUnwrap(group, "getMatchingNode").getMatchingNode(ancestor, false)
1901
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:732)
1902
+ if jsTruthy(nextNode) {
1903
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:733)
1904
+ _ = bounds.push(JSObject([("left", ancestor), ("right", jsNull)]))
1905
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:734)
1906
+ node = nextNode
1907
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:736)
1908
+ return true
1909
+ }
1910
+ }
1911
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:740)
1912
+ return false
1913
+ }
1914
+ })
1915
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:745)
1916
+ if !mayMatch {
1917
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:746)
1918
+ return false
1919
+ }
1920
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:749)
1921
+ if !jsTruthy(map) {
1922
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:750)
1923
+ return mayMatch
1924
+ }
1925
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:753)
1926
+ var i: Double = 0
1927
+ var __first1 = true
1928
+ while true {
1929
+ if !__first1 { i += 1 }
1930
+ __first1 = false
1931
+ if !(try i < jsUnwrap(self.groups, "length").length) { break }
1932
+ do {
1933
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:754)
1934
+ let group: NativeScriptKit.Selector.ChildGroup? = try jsUnwrap(self.groups, "i").element(i)
1935
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:755)
1936
+ if try !(jsUnwrap(group, "dynamic").dynamic) {
1937
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:756)
1938
+ continue
1939
+ }
1940
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:758)
1941
+ let bound: Any? = ((bounds.element(i) ?? nil) as Any?)
1942
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:759)
1943
+ var node: Any? = try jsGet(bound, "left")
1944
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:760)
1945
+ repeat {
1946
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:761)
1947
+ if try jsUnwrap(group, "mayMatch").mayMatch(node) {
1948
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:762)
1949
+ try jsUnwrap(group, "trackChanges").trackChanges(node, map)
1950
+ }
1951
+ } while try
1952
+ (!jsStrictEquals(node, jsGet(bound, "right"))
1953
+ && jsTruthy(
1954
+ ({ () throws -> Any? in
1955
+ try node = jsGet(node, "parent")
1956
+ return node
1957
+ }())))
1958
+ }
1959
+ }
1960
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:767)
1961
+ return mayMatch
1962
+ }
1963
+ #sourceLocation()
1964
+ open override var jsDeclaredKeys: [String] {
1965
+ super.jsDeclaredKeys + ["selectors"] + (jsMadeBits0 & (1 << 9) != 0 ? ["groups"] : [])
1966
+ + (jsMadeBits0 & (1 << 10) != 0 ? ["last"] : [])
1967
+ }
1968
+ open override var jsClassName: String? { "ComplexSelector" }
1969
+ open override subscript(jsKey key: String) -> Any? {
1970
+ get {
1971
+ switch key.utf8.count {
1972
+ case 4:
1973
+ switch key {
1974
+ case "last":
1975
+ if !(jsMadeBits0 & (1 << 10) != 0) { return nil }
1976
+ return self.last
1977
+ default: break
1978
+ }
1979
+ case 5:
1980
+ switch key {
1981
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
1982
+ default: break
1983
+ }
1984
+ case 6:
1985
+ switch key {
1986
+ case "groups":
1987
+ if !(jsMadeBits0 & (1 << 9) != 0) { return nil }
1988
+ return self.groups
1989
+ default: break
1990
+ }
1991
+ case 8:
1992
+ switch key {
1993
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
1994
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
1995
+ default: break
1996
+ }
1997
+ case 9:
1998
+ switch key {
1999
+ case "selectors": return self.selectors
2000
+ default: break
2001
+ }
2002
+ case 10:
2003
+ switch key {
2004
+ case "lookupSort":
2005
+ return FunctionCell_AnyOpt_SelectorCoreOpt_to_Void.script("lookupSort", 2, self.lookupSort)
2006
+ default: break
2007
+ }
2008
+ case 12:
2009
+ switch key {
2010
+ case "trackChanges":
2011
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
2012
+ default: break
2013
+ }
2014
+ case 17:
2015
+ switch key {
2016
+ case "accumulateChanges":
2017
+ return FunctionCell_AnyOpt_AnyOpt_to_Bool.script("accumulateChanges", 2, self.accumulateChanges)
2018
+ default: break
2019
+ }
2020
+ default: break
2021
+ }
2022
+ return super[jsKey: key]
2023
+ }
2024
+ set {
2025
+ switch key.utf8.count {
2026
+ case 4:
2027
+ switch key {
2028
+ case "last":
2029
+ jsStoring { self.last = (try jsCast(newValue, SelectorCore.self)) }
2030
+ return
2031
+ default: break
2032
+ }
2033
+ case 6:
2034
+ switch key {
2035
+ case "groups":
2036
+ jsStoring {
2037
+ self.groups = try jsArrayOrNil(
2038
+ newValue, as: JSArray<NativeScriptKit.Selector.ChildGroup>.self,
2039
+ { try (jsCastPresent($0) as NativeScriptKit.Selector.ChildGroup) })
2040
+ }
2041
+ return
2042
+ default: break
2043
+ }
2044
+ case 9:
2045
+ switch key {
2046
+ case "selectors":
2047
+ jsStoring {
2048
+ self.selectors = try jsArrayOrNil(
2049
+ newValue, as: JSArray<SimpleSelector>.self, { try (jsCastPresent($0) as SimpleSelector) })
2050
+ }
2051
+ return
2052
+ default: break
2053
+ }
2054
+ default: break
2055
+ }
2056
+ super[jsKey: key] = newValue
2057
+ }
2058
+ }
2059
+ open override class var jsName: String { "ComplexSelector" }
2060
+ }
2061
+
2062
+ public enum Selector {
2063
+ open class ChildGroup: SelectorBase {
2064
+ nonisolated deinit {}
2065
+ open var selectors: JSArray<SelectorBase>? = JSArray<SelectorBase>()
2066
+ public init(_ selectors: JSArray<SelectorBase>?) throws {
2067
+ try super.init()
2068
+ jsMadeLevel(&jsMade, ["selectors"])
2069
+ self.selectors = selectors
2070
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:776)
2071
+ self.dynamic = try jsUnwrap(selectors, "some").some({ (sel: SelectorBase?) throws -> Bool in
2072
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:776)
2073
+ return try jsUnwrap(sel, "dynamic").dynamic
2074
+ })
2075
+ }
2076
+ #sourceLocation()
2077
+ open func getMatchingNode(_ node: Any?, _ strict: Bool) throws -> Any? {
2078
+ var node = node
2079
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:780)
2080
+ let selectors: JSArray<SelectorBase>? = self.selectors
2081
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:781)
2082
+ var i: Double = 0
2083
+ let length: Double = try jsUnwrap(selectors, "length").length
2084
+ while i < length {
2085
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:782)
2086
+ if i != 0 {
2087
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:783)
2088
+ node = try jsGet(node, "parent")
2089
+ }
2090
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:786)
2091
+ if !jsTruthy(node) {
2092
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:787)
2093
+ return jsNull
2094
+ }
2095
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:790)
2096
+ let sel: SelectorBase? = try jsUnwrap(selectors, "i").element(i)
2097
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:791)
2098
+ if try !(((strict ? jsUnwrap(sel, "match").match(node) : jsUnwrap(sel, "mayMatch").mayMatch(node)))) {
2099
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:792)
2100
+ return jsNull
2101
+ }
2102
+ i += 1
2103
+ }
2104
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:796)
2105
+ return node
2106
+ }
2107
+ #sourceLocation()
2108
+ open override func match(_ node: Any?) throws -> Bool {
2109
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:800)
2110
+ return try !jsIsNullish(self.getMatchingNode(node, true))
2111
+ }
2112
+ #sourceLocation()
2113
+ open override func mayMatch(_ node: Any?) throws -> Bool {
2114
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:804)
2115
+ return try !jsIsNullish(self.getMatchingNode(node, false))
2116
+ }
2117
+ #sourceLocation()
2118
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
2119
+ var node = node
2120
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:808)
2121
+ try jsUnwrap(self.selectors, "forEach").forEach({ (sel: SelectorBase?, i: Double) throws -> Void in
2122
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:809)
2123
+ if i == 0 {
2124
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:810)
2125
+ if jsTruthy(node) { try jsUnwrap(sel, "trackChanges").trackChanges(node, map) }
2126
+ } else {
2127
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:812)
2128
+ node = try jsGet(node, "parent")
2129
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:814)
2130
+ if try (jsTruthy(node) && jsUnwrap(sel, "mayMatch").mayMatch(node)) {
2131
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:815)
2132
+ try jsUnwrap(sel, "trackChanges").trackChanges(node, map)
2133
+ }
2134
+ }
2135
+ })
2136
+ }
2137
+ #sourceLocation()
2138
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["selectors"] }
2139
+ open override var jsClassName: String? { "ChildGroup" }
2140
+ open override subscript(jsKey key: String) -> Any? {
2141
+ get {
2142
+ switch key.utf8.count {
2143
+ case 5:
2144
+ switch key {
2145
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
2146
+ default: break
2147
+ }
2148
+ case 8:
2149
+ switch key {
2150
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
2151
+ default: break
2152
+ }
2153
+ case 9:
2154
+ switch key {
2155
+ case "selectors": return self.selectors
2156
+ default: break
2157
+ }
2158
+ case 12:
2159
+ switch key {
2160
+ case "trackChanges":
2161
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
2162
+ default: break
2163
+ }
2164
+ case 15:
2165
+ switch key {
2166
+ case "getMatchingNode":
2167
+ return FunctionCell_AnyOpt_Bool_to_AnyOpt.script("getMatchingNode", 2, self.getMatchingNode)
2168
+ default: break
2169
+ }
2170
+ default: break
2171
+ }
2172
+ return super[jsKey: key]
2173
+ }
2174
+ set {
2175
+ switch key.utf8.count {
2176
+ case 9:
2177
+ switch key {
2178
+ case "selectors":
2179
+ jsStoring {
2180
+ self.selectors = try jsArrayOrNil(
2181
+ newValue, as: JSArray<SelectorBase>.self, { try (jsCastPresent($0) as SelectorBase) })
2182
+ }
2183
+ return
2184
+ default: break
2185
+ }
2186
+ default: break
2187
+ }
2188
+ super[jsKey: key] = newValue
2189
+ }
2190
+ }
2191
+ open override class var jsName: String { "ChildGroup" }
2192
+ }
2193
+ open class SiblingGroup: SelectorBase {
2194
+ nonisolated deinit {}
2195
+ open var selectors: JSArray<SimpleSelector>? = JSArray<SimpleSelector>()
2196
+ public init(_ selectors: JSArray<SimpleSelector>?) throws {
2197
+ try super.init()
2198
+ jsMadeLevel(&jsMade, ["selectors"])
2199
+ self.selectors = selectors
2200
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:826)
2201
+ self.dynamic = try jsUnwrap(selectors, "some").some({ (sel: SimpleSelector?) throws -> Bool in
2202
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:826)
2203
+ return try jsUnwrap(sel, "dynamic").dynamic
2204
+ })
2205
+ }
2206
+ #sourceLocation()
2207
+ open override func match(_ node: Any?) throws -> Bool {
2208
+ var node = node
2209
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:830)
2210
+ return try jsUnwrap(self.selectors, "every").every({ (sel: SimpleSelector?, i: Double) throws -> Bool in
2211
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:831)
2212
+ if i == 0 {
2213
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:832)
2214
+ return try
2215
+ ({ () throws -> Bool in
2216
+ let __v_18 = node
2217
+ return jsTruthy(__v_18) ? try jsUnwrap(sel, "match").match(node) : jsLenientBool(__v_18)
2218
+ }())
2219
+ }
2220
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:835)
2221
+ if try jsStringEquals(jsUnwrap(sel, "combinator").combinator, Combinator.adjacent) {
2222
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:836)
2223
+ node = try Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
2224
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:837)
2225
+ return try
2226
+ ({ () throws -> Bool in
2227
+ let __v_19 = node
2228
+ return jsTruthy(__v_19) ? try jsUnwrap(sel, "match").match(node) : jsLenientBool(__v_19)
2229
+ }())
2230
+ }
2231
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:841)
2232
+ var isMatching: Bool = false
2233
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:843)
2234
+ try Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
2235
+ node,
2236
+ { (sibling: Any?) throws -> Bool in
2237
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:844)
2238
+ isMatching = try jsUnwrap(sel, "match").match(sibling)
2239
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:845)
2240
+ return !isMatching
2241
+ })
2242
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:848)
2243
+ return isMatching
2244
+ })
2245
+ }
2246
+ #sourceLocation()
2247
+ open override func mayMatch(_ node: Any?) throws -> Bool {
2248
+ var node = node
2249
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:853)
2250
+ return try jsUnwrap(self.selectors, "every").every({ (sel: SimpleSelector?, i: Double) throws -> Bool in
2251
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:854)
2252
+ if i == 0 {
2253
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:855)
2254
+ return try
2255
+ ({ () throws -> Bool in
2256
+ let __v_20 = node
2257
+ return jsTruthy(__v_20)
2258
+ ? try jsUnwrap(sel, "mayMatch").mayMatch(node) : jsLenientBool(__v_20)
2259
+ }())
2260
+ }
2261
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:858)
2262
+ if try jsStringEquals(jsUnwrap(sel, "combinator").combinator, Combinator.adjacent) {
2263
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:859)
2264
+ node = try Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
2265
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:860)
2266
+ return try
2267
+ ({ () throws -> Bool in
2268
+ let __v_21 = node
2269
+ return jsTruthy(__v_21)
2270
+ ? try jsUnwrap(sel, "mayMatch").mayMatch(node) : jsLenientBool(__v_21)
2271
+ }())
2272
+ }
2273
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:864)
2274
+ var isMatching: Bool = false
2275
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:866)
2276
+ try Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
2277
+ node,
2278
+ { (sibling: Any?) throws -> Bool in
2279
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:867)
2280
+ isMatching = try jsUnwrap(sel, "mayMatch").mayMatch(sibling)
2281
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:868)
2282
+ return !isMatching
2283
+ })
2284
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:871)
2285
+ return isMatching
2286
+ })
2287
+ }
2288
+ #sourceLocation()
2289
+ open override func trackChanges(_ node: Any?, _ map: Any?) throws {
2290
+ var node = node
2291
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:876)
2292
+ try jsUnwrap(self.selectors, "forEach").forEach({ (sel: SimpleSelector?, i: Double) throws -> Void in
2293
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:877)
2294
+ if i == 0 {
2295
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:878)
2296
+ if jsTruthy(node) {
2297
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:879)
2298
+ try jsUnwrap(sel, "trackChanges").trackChanges(node, map)
2299
+ }
2300
+ } else {
2301
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:882)
2302
+ if try jsStringEquals(jsUnwrap(sel, "combinator").combinator, Combinator.adjacent) {
2303
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:883)
2304
+ node = try Core_ui_styling_css_selector.getNodePreviousDirectSibling(node)
2305
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:884)
2306
+ if try (jsTruthy(node) && jsUnwrap(sel, "mayMatch").mayMatch(node)) {
2307
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:885)
2308
+ try jsUnwrap(sel, "trackChanges").trackChanges(node, map)
2309
+ }
2310
+ } else {
2311
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:889)
2312
+ var matchingSibling: Any? = nil
2313
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:891)
2314
+ try Core_ui_styling_css_selector.eachNodePreviousGeneralSibling(
2315
+ node,
2316
+ { (sibling: Any?) throws -> Bool in
2317
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:892)
2318
+ let isMatching: Bool = try jsUnwrap(sel, "mayMatch").mayMatch(sibling)
2319
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:893)
2320
+ if isMatching {
2321
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:894)
2322
+ matchingSibling = sibling
2323
+ }
2324
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:897)
2325
+ return !isMatching
2326
+ })
2327
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:900)
2328
+ if jsTruthy(matchingSibling) {
2329
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:901)
2330
+ try jsUnwrap(sel, "trackChanges").trackChanges(matchingSibling, map)
2331
+ }
2332
+ }
2333
+ }
2334
+ })
2335
+ }
2336
+ #sourceLocation()
2337
+ open override var jsDeclaredKeys: [String] { super.jsDeclaredKeys + ["selectors"] }
2338
+ open override var jsClassName: String? { "SiblingGroup" }
2339
+ open override subscript(jsKey key: String) -> Any? {
2340
+ get {
2341
+ switch key.utf8.count {
2342
+ case 5:
2343
+ switch key {
2344
+ case "match": return FunctionCell_AnyOpt_to_Bool.script("match", 1, self.match)
2345
+ default: break
2346
+ }
2347
+ case 8:
2348
+ switch key {
2349
+ case "mayMatch": return FunctionCell_AnyOpt_to_Bool.script("mayMatch", 1, self.mayMatch)
2350
+ default: break
2351
+ }
2352
+ case 9:
2353
+ switch key {
2354
+ case "selectors": return self.selectors
2355
+ default: break
2356
+ }
2357
+ case 12:
2358
+ switch key {
2359
+ case "trackChanges":
2360
+ return FunctionCell_AnyOpt_AnyOpt_to_Void.script("trackChanges", 2, self.trackChanges)
2361
+ default: break
2362
+ }
2363
+ default: break
2364
+ }
2365
+ return super[jsKey: key]
2366
+ }
2367
+ set {
2368
+ switch key.utf8.count {
2369
+ case 9:
2370
+ switch key {
2371
+ case "selectors":
2372
+ jsStoring {
2373
+ self.selectors = try jsArrayOrNil(
2374
+ newValue, as: JSArray<SimpleSelector>.self,
2375
+ { try (jsCastPresent($0) as SimpleSelector) })
2376
+ }
2377
+ return
2378
+ default: break
2379
+ }
2380
+ default: break
2381
+ }
2382
+ super[jsKey: key] = newValue
2383
+ }
2384
+ }
2385
+ open override class var jsName: String { "SiblingGroup" }
2386
+ }
2387
+ }
2388
+
2389
+ open class RuleSet: JSDynamic, JSStringConvertible, JSExpando, JSKeysMade, JSStaticKeyed {
2390
+ nonisolated deinit {}
2391
+ open var selectors: JSArray<SelectorCore>? = JSArray<SelectorCore>()
2392
+ open var declarations: JSArray<Any?>? = JSArray<Any?>()
2393
+ open var mediaQueryString: Any? = nil {
2394
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "mediaQueryString") } }
2395
+ }
2396
+ open var tag: Any? = nil {
2397
+ didSet { if jsMadeBits0 & (1 << 1) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 1, "tag") } }
2398
+ }
2399
+ open var scopedTag: String = "" {
2400
+ didSet { if jsMadeBits0 & (1 << 2) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 2, "scopedTag") } }
2401
+ }
2402
+ open var shorthandsVersion: Double = .nan
2403
+ public init(_ selectors: JSArray<SelectorCore>?, _ declarations: JSArray<Any?>?) throws {
2404
+ self.shorthandsVersion = Core_ui_core_properties_index._getCssShorthandsVersion()
2405
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:925)
2406
+ self.selectors = selectors
2407
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:926)
2408
+ self.declarations = declarations
2409
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:927)
2410
+ try jsUnwrap(self.selectors, "forEach").forEach({ (sel: SelectorCore?) throws -> Void in
2411
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:927)
2412
+ try _ =
2413
+ (({ () throws -> RuleSet in
2414
+ let __assigned1: RuleSet = self
2415
+ try jsUnwrap(sel, setting: "ruleset").ruleset = __assigned1
2416
+ return __assigned1
2417
+ }()))
2418
+ })
2419
+ }
2420
+ #sourceLocation()
2421
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
2422
+ return nil
2423
+ }
2424
+ open class var jsSymbolPlain: Bool { true }
2425
+ open class var jsSymbolFieldsPlain: Bool { true }
2426
+ open var jsExpando: JSObject?
2427
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
2428
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
2429
+ /// Expands, once, shorthands registered after this rule was parsed (e.g. by a plugin).
2430
+ open func expandLateShorthands() throws {
2431
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:932)
2432
+ let version: Double = Core_ui_core_properties_index._getCssShorthandsVersion()
2433
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:933)
2434
+ if jsLenientNumberEquals(self.shorthandsVersion, version) {
2435
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:934)
2436
+ return
2437
+ }
2438
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:936)
2439
+ self.shorthandsVersion = version
2440
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:938)
2441
+ let declarations: JSArray<Any?>? = self.declarations
2442
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:939)
2443
+ var expanded: JSArray<Any?>? = nil
2444
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:940)
2445
+ var i: Double = 0
2446
+ let length: Double = try jsUnwrap(declarations, "length").length
2447
+ var __first2 = true
2448
+ while true {
2449
+ if !__first2 { i += 1 }
2450
+ __first2 = false
2451
+ if !(i < length) { break }
2452
+ do {
2453
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:941)
2454
+ let declaration: Any? = try ((jsUnwrap(declarations, "i").element(i) ?? nil) as Any?)
2455
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:942)
2456
+ if try !jsTruthy(expanded as Any?) && jsStringEquals(jsTypeof(jsGet(declaration, "value")), "string")
2457
+ && Core_ui_core_properties_index._isCssShorthand(jsConvertedString(jsGet(declaration, "property")))
2458
+ {
2459
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:943)
2460
+ expanded = try jsUnwrap(declarations, "slice").slice(0, i)
2461
+ }
2462
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:945)
2463
+ if !jsTruthy(expanded as Any?) {
2464
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:946)
2465
+ continue
2466
+ }
2467
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:948)
2468
+ if try jsStringEquals(jsTypeof(jsGet(declaration, "value")), "string") {
2469
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:949)
2470
+ try Core_ui_styling_css_selector.pushDeclaration(
2471
+ jsImplicit(expanded), jsConvertedString(jsGet(declaration, "property")),
2472
+ jsConvertedString(jsGet(declaration, "value")))
2473
+ } else {
2474
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:951)
2475
+ _ = try jsUnwrap(expanded, "push").push(declaration)
2476
+ }
2477
+ }
2478
+ }
2479
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:954)
2480
+ if jsTruthy(expanded as Any?) {
2481
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:955)
2482
+ self.declarations = jsImplicit(expanded)
2483
+ }
2484
+ }
2485
+ #sourceLocation()
2486
+ open func toString() throws -> String {
2487
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:959)
2488
+ var desc: String = try [
2489
+ "", (jsUnwrap(self.selectors, "join").join(", ")), " {",
2490
+ (jsUnwrap(
2491
+ (jsUnwrap(self.declarations, "map") as JSArray<Any?>).map({ (d: Any?, i: Double) throws -> String in
2492
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:959)
2493
+ return try
2494
+ "\((i == 0 ? " " : ""))\(jsConvertedString(jsGet(d, "property"))): \(jsToStringThrowing(jsGet(d, "value")))"
2495
+ }), "join"
2496
+ ).join("; ")), " }",
2497
+ ].joined()
2498
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:960)
2499
+ if jsTruthy(self.mediaQueryString) {
2500
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:961)
2501
+ desc = try "@media \(jsToStringThrowing(self.mediaQueryString)) { \(desc) }"
2502
+ }
2503
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:963)
2504
+ return desc
2505
+ }
2506
+ #sourceLocation()
2507
+ open func lookupSort(_ sorter: Any?) throws {
2508
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:966)
2509
+ try jsUnwrap(self.selectors, "forEach").forEach({ (sel: SelectorCore?) throws -> Void in
2510
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:966)
2511
+ try jsUnwrap(sel, "lookupSort").lookupSort(sorter)
2512
+ })
2513
+ }
2514
+ #sourceLocation()
2515
+ public final var jsMadeBits0: UInt64 = 0
2516
+ public final var jsMade: [String]?
2517
+ open var jsDeclaredKeys: [String] {
2518
+ ["shorthandsVersion"] + ["selectors"] + ["declarations"]
2519
+ + (jsMadeBits0 & (1 << 0) != 0 ? ["mediaQueryString"] : []) + (jsMadeBits0 & (1 << 1) != 0 ? ["tag"] : [])
2520
+ + (jsMadeBits0 & (1 << 2) != 0 ? ["scopedTag"] : [])
2521
+ }
2522
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
2523
+ open var jsClassName: String? { "RuleSet" }
2524
+ open subscript(jsKey key: String) -> Any? {
2525
+ get {
2526
+ switch key.utf8.count {
2527
+ case 3:
2528
+ switch key {
2529
+ case "tag":
2530
+ if !(jsMadeBits0 & (1 << 1) != 0) { return nil }
2531
+ return self.tag
2532
+ default: break
2533
+ }
2534
+ case 8:
2535
+ switch key {
2536
+ case "toString": return FunctionCell_none_to_String.script("toString", 0, self.toString)
2537
+ default: break
2538
+ }
2539
+ case 9:
2540
+ switch key {
2541
+ case "selectors": return self.selectors
2542
+ case "scopedTag":
2543
+ if !(jsMadeBits0 & (1 << 2) != 0) { return nil }
2544
+ return self.scopedTag
2545
+ default: break
2546
+ }
2547
+ case 10:
2548
+ switch key {
2549
+ case "lookupSort": return FunctionCell_AnyOpt_to_Void.script("lookupSort", 1, self.lookupSort)
2550
+ default: break
2551
+ }
2552
+ case 12:
2553
+ switch key {
2554
+ case "declarations": return self.declarations
2555
+ default: break
2556
+ }
2557
+ case 16:
2558
+ switch key {
2559
+ case "mediaQueryString":
2560
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
2561
+ return self.mediaQueryString
2562
+ default: break
2563
+ }
2564
+ case 17:
2565
+ switch key {
2566
+ case "shorthandsVersion": return self.shorthandsVersion
2567
+ default: break
2568
+ }
2569
+ case 20:
2570
+ switch key {
2571
+ case "expandLateShorthands":
2572
+ return FunctionCell_none_to_Void.script("expandLateShorthands", 0, self.expandLateShorthands)
2573
+ default: break
2574
+ }
2575
+ default: break
2576
+ }
2577
+ return jsExpandoGet(self, key)
2578
+ }
2579
+ set {
2580
+ switch key.utf8.count {
2581
+ case 3:
2582
+ switch key {
2583
+ case "tag":
2584
+ self.tag = newValue
2585
+ return
2586
+ default: break
2587
+ }
2588
+ case 9:
2589
+ switch key {
2590
+ case "selectors":
2591
+ jsStoring {
2592
+ self.selectors = try jsArrayOrNil(
2593
+ newValue, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) })
2594
+ }
2595
+ return
2596
+ case "scopedTag":
2597
+ jsStoring { self.scopedTag = (try jsConvertedString(newValue)) }
2598
+ return
2599
+ default: break
2600
+ }
2601
+ case 12:
2602
+ switch key {
2603
+ case "declarations":
2604
+ self.declarations = jsArrayOrNil(newValue, as: JSArray<Any?>.self, { $0 })
2605
+ return
2606
+ default: break
2607
+ }
2608
+ case 16:
2609
+ switch key {
2610
+ case "mediaQueryString":
2611
+ self.mediaQueryString = newValue
2612
+ return
2613
+ default: break
2614
+ }
2615
+ case 17:
2616
+ switch key {
2617
+ case "shorthandsVersion":
2618
+ jsStoring { self.shorthandsVersion = (try jsConvertedNumber(newValue)) }
2619
+ return
2620
+ default: break
2621
+ }
2622
+ default: break
2623
+ }
2624
+ jsExpandoSet(self, key, newValue)
2625
+ }
2626
+ }
2627
+ open class var jsName: String { "RuleSet" }
2628
+ open class var jsStaticKeys: [String] { [] }
2629
+ }
2630
+
2631
+ open class SelectorScope: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
2632
+ nonisolated deinit {}
2633
+ private static let jsSite_SelectorScope_id = JSReadSite("id")
2634
+ open var id: JSRecord<JSArray<SelectorCore>>? {
2635
+ get {
2636
+ (jsReported {
2637
+ try jsRecordOrNil(
2638
+ jsExpandoGet(self, SelectorScope.jsSite_SelectorScope_id), as: JSRecord<JSArray<SelectorCore>>.self,
2639
+ {
2640
+ try jsObjectRequired(
2641
+ jsArrayOrNil(
2642
+ $0, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) }))
2643
+ })
2644
+ } ?? nil)
2645
+ }
2646
+ set { jsExpandoSet(self, "id", newValue) }
2647
+ }
2648
+ open var `class`: JSRecord<JSArray<SelectorCore>>? = JSRecord<JSArray<SelectorCore>>()
2649
+ open var type: JSRecord<JSArray<SelectorCore>>? = JSRecord<JSArray<SelectorCore>>()
2650
+ open var universal: JSArray<SelectorCore>? = JSArray<SelectorCore>()
2651
+ open var position: Double = 0
2652
+ open var tier: Double = SelectorTier.Application
2653
+ /// True when any selector in the scope contains an adjacent sibling ('+') combinator.
2654
+ open var hasAdjacentCombinatorSelectors: Bool = false
2655
+ /// True when any selector in the scope contains a general sibling ('~') combinator.
2656
+ open var hasSiblingCombinatorSelectors: Bool = false
2657
+ public init() throws {
2658
+ self.id = JSRecord<JSArray<SelectorCore>>()
2659
+ }
2660
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
2661
+ return nil
2662
+ }
2663
+ open class var jsSymbolPlain: Bool { true }
2664
+ open class var jsSymbolFieldsPlain: Bool { true }
2665
+ open var jsExpando: JSObject?
2666
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
2667
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
2668
+ open func getSelectorCandidates(_ node: Any?, _ candidates: JSArray<SelectorCore>? = nil) throws -> JSArray<
2669
+ SelectorCore
2670
+ >? {
2671
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1220)
2672
+ let candidates: JSArray<SelectorCore> = candidates ?? JSArray<SelectorCore>()
2673
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1221)
2674
+ let __d_1: Any? = node
2675
+ let cssClasses: JSSet<String>? = (try jsGet(__d_1, "cssClasses")) as? JSSet<String>
2676
+ let id: String = (try jsConvertedString((try jsGet(__d_1, "id"))))
2677
+ let cssType: String = (try jsConvertedString((try jsGet(__d_1, "cssType"))))
2678
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1223)
2679
+ try Core_ui_styling_css_selector.appendSelectorCandidates(candidates, self.universal)
2680
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1225)
2681
+ if jsTruthy(id) {
2682
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1226)
2683
+ try Core_ui_styling_css_selector.appendSelectorCandidates(
2684
+ candidates, jsImplicit(jsUnwrap(self.id, "id")[id]))
2685
+ }
2686
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1229)
2687
+ if jsTruthy(cssType) {
2688
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1230)
2689
+ try Core_ui_styling_css_selector.appendSelectorCandidates(
2690
+ candidates, jsImplicit(jsUnwrap(self.type, "cssType")[cssType]))
2691
+ }
2692
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1233)
2693
+ if try (jsTruthy(cssClasses) && jsTruthy(jsUnwrap(cssClasses, "size").size)) {
2694
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1234)
2695
+ let classSelectors: JSRecord<JSArray<SelectorCore>>? = self.`class`
2696
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1235)
2697
+ for cssClass in try jsIterated(cssClasses, "cssClasses is not iterable") {
2698
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1236)
2699
+ try Core_ui_styling_css_selector.appendSelectorCandidates(
2700
+ candidates, jsImplicit(jsUnwrap(classSelectors, "cssClass")[cssClass]))
2701
+ }
2702
+ }
2703
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1240)
2704
+ return candidates
2705
+ }
2706
+ #sourceLocation()
2707
+ open func sortById(_ id: String, _ sel: SelectorCore?) throws {
2708
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1244)
2709
+ try self.addToMap(self.id, id, sel)
2710
+ }
2711
+ #sourceLocation()
2712
+ open func sortByClass(_ cssClass: String, _ sel: SelectorCore?) throws {
2713
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1247)
2714
+ try self.addToMap(self.`class`, cssClass, sel)
2715
+ }
2716
+ #sourceLocation()
2717
+ open func sortByType(_ cssType: String, _ sel: SelectorCore?) throws {
2718
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1250)
2719
+ try self.addToMap(self.type, cssType, sel)
2720
+ }
2721
+ #sourceLocation()
2722
+ open func sortAsUniversal(_ sel: SelectorCore?) throws {
2723
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1253)
2724
+ _ = try jsUnwrap(self.universal, "push").push(jsObjectRequired(self.makeDocSelector(sel)))
2725
+ }
2726
+ #sourceLocation()
2727
+ open func addToMap(_ map: JSRecord<JSArray<SelectorCore>>?, _ head: String, _ sel: SelectorCore?) throws {
2728
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1257)
2729
+ if try !(jsTruthy(jsUnwrap(map, "head")[head] as Any?)) {
2730
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1258)
2731
+ try jsUnwrap(map, setting: "head")[head] = JSArray<SelectorCore>()
2732
+ }
2733
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1261)
2734
+ _ = try jsUnwrap(jsUnwrap(map, "head")[head], "push").push(jsObjectRequired(self.makeDocSelector(sel)))
2735
+ }
2736
+ #sourceLocation()
2737
+ open func makeDocSelector(_ sel: SelectorCore?) throws -> SelectorCore? {
2738
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1265)
2739
+ if try jsUnwrap(sel, "hasAdjacentCombinator").hasAdjacentCombinator {
2740
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1266)
2741
+ self.hasAdjacentCombinatorSelectors = true
2742
+ }
2743
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1269)
2744
+ if try jsUnwrap(sel, "hasSiblingCombinator").hasSiblingCombinator {
2745
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1270)
2746
+ self.hasSiblingCombinatorSelectors = true
2747
+ }
2748
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1273)
2749
+ try jsUnwrap(sel, setting: "pos").pos = jsPostIncrement(&self.position)
2750
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1274)
2751
+ try jsUnwrap(sel, setting: "tier").tier = self.tier
2752
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1276)
2753
+ return sel
2754
+ }
2755
+ #sourceLocation()
2756
+ public final var jsMadeBits0: UInt64 = 0
2757
+ public final var jsMade: [String]?
2758
+ open var jsDeclaredKeys: [String] {
2759
+ ["class"] + ["type"] + ["universal"] + ["position"] + ["tier"] + ["hasAdjacentCombinatorSelectors"] + [
2760
+ "hasSiblingCombinatorSelectors"
2761
+ ]
2762
+ }
2763
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
2764
+ open var jsClassName: String? { "SelectorScope" }
2765
+ open subscript(jsKey key: String) -> Any? {
2766
+ get {
2767
+ switch key.utf8.count {
2768
+ case 4:
2769
+ switch key {
2770
+ case "type": return self.type
2771
+ case "tier": return self.tier
2772
+ default: break
2773
+ }
2774
+ case 5:
2775
+ switch key {
2776
+ case "class": return self.`class`
2777
+ default: break
2778
+ }
2779
+ case 8:
2780
+ switch key {
2781
+ case "position": return self.position
2782
+ case "sortById": return FunctionCell_String_SelectorCoreOpt_to_Void.script("sortById", 2, self.sortById)
2783
+ case "addToMap":
2784
+ return FunctionCell_JSRecord_JSArray_SelectorCore_Opt_String_SelectorCoreOpt_to_Void.script(
2785
+ "addToMap", 3, self.addToMap)
2786
+ default: break
2787
+ }
2788
+ case 9:
2789
+ switch key {
2790
+ case "universal": return self.universal
2791
+ default: break
2792
+ }
2793
+ case 10:
2794
+ switch key {
2795
+ case "sortByType":
2796
+ return FunctionCell_String_SelectorCoreOpt_to_Void.script("sortByType", 2, self.sortByType)
2797
+ default: break
2798
+ }
2799
+ case 11:
2800
+ switch key {
2801
+ case "sortByClass":
2802
+ return FunctionCell_String_SelectorCoreOpt_to_Void.script("sortByClass", 2, self.sortByClass)
2803
+ default: break
2804
+ }
2805
+ case 15:
2806
+ switch key {
2807
+ case "sortAsUniversal":
2808
+ return FunctionCell_SelectorCoreOpt_to_Void.script("sortAsUniversal", 1, self.sortAsUniversal)
2809
+ case "makeDocSelector":
2810
+ return FunctionCell_SelectorCoreOpt_to_SelectorCoreOpt.script(
2811
+ "makeDocSelector", 1, self.makeDocSelector)
2812
+ default: break
2813
+ }
2814
+ case 21:
2815
+ switch key {
2816
+ case "getSelectorCandidates":
2817
+ return FunctionCell_AnyOpt_JSArray_SelectorCore_Opt_to_JSArray_SelectorCore_Opt.script(
2818
+ "getSelectorCandidates", 1, self.getSelectorCandidates)
2819
+ default: break
2820
+ }
2821
+ case 29:
2822
+ switch key {
2823
+ case "hasSiblingCombinatorSelectors": return self.hasSiblingCombinatorSelectors
2824
+ default: break
2825
+ }
2826
+ case 30:
2827
+ switch key {
2828
+ case "hasAdjacentCombinatorSelectors": return self.hasAdjacentCombinatorSelectors
2829
+ default: break
2830
+ }
2831
+ default: break
2832
+ }
2833
+ return jsExpandoGet(self, key)
2834
+ }
2835
+ set {
2836
+ switch key.utf8.count {
2837
+ case 4:
2838
+ switch key {
2839
+ case "type":
2840
+ jsStoring {
2841
+ self.type = try jsRecordOrNil(
2842
+ newValue, as: JSRecord<JSArray<SelectorCore>>.self,
2843
+ {
2844
+ try jsObjectRequired(
2845
+ jsArrayOrNil(
2846
+ $0, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) })
2847
+ )
2848
+ })
2849
+ }
2850
+ return
2851
+ case "tier":
2852
+ jsStoring { self.tier = (try jsConvertedNumber(newValue)) }
2853
+ return
2854
+ default: break
2855
+ }
2856
+ case 5:
2857
+ switch key {
2858
+ case "class":
2859
+ jsStoring {
2860
+ self.`class` = try jsRecordOrNil(
2861
+ newValue, as: JSRecord<JSArray<SelectorCore>>.self,
2862
+ {
2863
+ try jsObjectRequired(
2864
+ jsArrayOrNil(
2865
+ $0, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) })
2866
+ )
2867
+ })
2868
+ }
2869
+ return
2870
+ default: break
2871
+ }
2872
+ case 8:
2873
+ switch key {
2874
+ case "position":
2875
+ jsStoring { self.position = (try jsConvertedNumber(newValue)) }
2876
+ return
2877
+ default: break
2878
+ }
2879
+ case 9:
2880
+ switch key {
2881
+ case "universal":
2882
+ jsStoring {
2883
+ self.universal = try jsArrayOrNil(
2884
+ newValue, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) })
2885
+ }
2886
+ return
2887
+ default: break
2888
+ }
2889
+ case 29:
2890
+ switch key {
2891
+ case "hasSiblingCombinatorSelectors":
2892
+ jsStoring { self.hasSiblingCombinatorSelectors = (try jsConvertedBool(newValue)) }
2893
+ return
2894
+ default: break
2895
+ }
2896
+ case 30:
2897
+ switch key {
2898
+ case "hasAdjacentCombinatorSelectors":
2899
+ jsStoring { self.hasAdjacentCombinatorSelectors = (try jsConvertedBool(newValue)) }
2900
+ return
2901
+ default: break
2902
+ }
2903
+ default: break
2904
+ }
2905
+ jsExpandoSet(self, key, newValue)
2906
+ }
2907
+ }
2908
+ open class var jsName: String { "SelectorScope" }
2909
+ open class var jsStaticKeys: [String] { [] }
2910
+ }
2911
+
2912
+ open class MediaQuerySelectorScope: SelectorScope {
2913
+ nonisolated deinit {}
2914
+ open var _mediaQueryString: Any? = nil
2915
+ public init(_ mediaQueryString: Any?, _ tier: Double) throws {
2916
+ try super.init()
2917
+ jsMadeLevel(&jsMade, ["_mediaQueryString"])
2918
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1286)
2919
+ self._mediaQueryString = mediaQueryString
2920
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1287)
2921
+ self.tier = tier
2922
+ }
2923
+ #sourceLocation()
2924
+ open var mediaQueryString: Any? {
2925
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1291)
2926
+ return self._mediaQueryString
2927
+ }
2928
+ #sourceLocation()
2929
+ open override var jsDeclaredKeys: [String] {
2930
+ super.jsDeclaredKeys + (self._mediaQueryString == nil ? [] : ["_mediaQueryString"])
2931
+ }
2932
+ open override var jsClassName: String? { "MediaQuerySelectorScope" }
2933
+ open override subscript(jsKey key: String) -> Any? {
2934
+ get {
2935
+ switch key.utf8.count {
2936
+ case 17:
2937
+ switch key {
2938
+ case "_mediaQueryString": return self._mediaQueryString
2939
+ default: break
2940
+ }
2941
+ default: break
2942
+ }
2943
+ return super[jsKey: key]
2944
+ }
2945
+ set {
2946
+ switch key.utf8.count {
2947
+ case 17:
2948
+ switch key {
2949
+ case "_mediaQueryString":
2950
+ self._mediaQueryString = newValue
2951
+ return
2952
+ default: break
2953
+ }
2954
+ default: break
2955
+ }
2956
+ super[jsKey: key] = newValue
2957
+ }
2958
+ }
2959
+ open override class var jsName: String { "MediaQuerySelectorScope" }
2960
+ }
2961
+
2962
+ open class StyleSheetSelectorScope: SelectorScope {
2963
+ nonisolated deinit {}
2964
+ open var mediaQuerySelectorScopes: JSArray<MediaQuerySelectorScope>? = JSArray<MediaQuerySelectorScope>() {
2965
+ didSet {
2966
+ if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "mediaQuerySelectorScopes") }
2967
+ }
2968
+ }
2969
+ public init(_ rulesets: JSArray<RuleSet>?, _ tier: Double? = nil) throws {
2970
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1298)
2971
+ let tier: Double = tier ?? SelectorTier.Application
2972
+ try super.init()
2973
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1301)
2974
+ self.tier = tier
2975
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1302)
2976
+ try self.lookupRulesets(rulesets)
2977
+ }
2978
+ #sourceLocation()
2979
+ /// Index rulesets added after this scope was built; the rules already indexed
2980
+ /// keep their positions.
2981
+ open func appendRulesets(_ rulesets: JSArray<RuleSet>?, _ from: Double) throws {
2982
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1310)
2983
+ try self.lookupRulesets(rulesets, from)
2984
+ }
2985
+ #sourceLocation()
2986
+ open func createMediaQuerySelectorScope(_ mediaQueryString: Any?) throws -> MediaQuerySelectorScope? {
2987
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1314)
2988
+ let selectorScope: MediaQuerySelectorScope = try MediaQuerySelectorScope(mediaQueryString, self.tier)
2989
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1315)
2990
+ selectorScope.position = self.position
2991
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1317)
2992
+ if jsTruthy(self.mediaQuerySelectorScopes) {
2993
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1318)
2994
+ _ = try jsUnwrap(self.mediaQuerySelectorScopes, "push").push(selectorScope)
2995
+ } else {
2996
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1320)
2997
+ self.mediaQuerySelectorScopes = JSArray<MediaQuerySelectorScope>([selectorScope])
2998
+ }
2999
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1323)
3000
+ return selectorScope
3001
+ }
3002
+ #sourceLocation()
3003
+ open func lookupRulesets(_ rulesets: JSArray<RuleSet>?, _ from: Double = 0) throws {
3004
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1327)
3005
+ var lastMediaSelectorScope: MediaQuerySelectorScope?
3006
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1329)
3007
+ var i: Double = from
3008
+ let length: Double = try jsUnwrap(rulesets, "length").length
3009
+ while i < length {
3010
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1330)
3011
+ let ruleset: RuleSet? = try jsUnwrap(rulesets, "i").element(i)
3012
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1332)
3013
+ if try
3014
+ (jsTruthy(lastMediaSelectorScope)
3015
+ && !jsStrictEquals(
3016
+ jsUnwrap(lastMediaSelectorScope, "mediaQueryString").mediaQueryString,
3017
+ jsUnwrap(ruleset, "mediaQueryString").mediaQueryString))
3018
+ {
3019
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1334)
3020
+ self.position = try jsUnwrap(lastMediaSelectorScope, "position").position
3021
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1335)
3022
+ lastMediaSelectorScope = nil
3023
+ }
3024
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1338)
3025
+ if try jsTruthy(jsUnwrap(ruleset, "mediaQueryString").mediaQueryString) {
3026
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1340)
3027
+ if !jsTruthy(lastMediaSelectorScope) {
3028
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1341)
3029
+ lastMediaSelectorScope = try self.createMediaQuerySelectorScope(
3030
+ jsUnwrap(ruleset, "mediaQueryString").mediaQueryString)
3031
+ }
3032
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1344)
3033
+ try jsUnwrap(ruleset, "lookupSort").lookupSort(lastMediaSelectorScope)
3034
+ } else {
3035
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1346)
3036
+ try jsUnwrap(ruleset, "lookupSort").lookupSort(self)
3037
+ }
3038
+ i += 1
3039
+ }
3040
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1351)
3041
+ if jsTruthy(lastMediaSelectorScope) {
3042
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1352)
3043
+ self.position = try jsUnwrap(lastMediaSelectorScope, "position").position
3044
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1353)
3045
+ lastMediaSelectorScope = nil
3046
+ }
3047
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1357)
3048
+ if jsTruthy(self.mediaQuerySelectorScopes) {
3049
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1358)
3050
+ for selectorScope in try jsIterated(
3051
+ self.mediaQuerySelectorScopes, "this.mediaQuerySelectorScopes is not iterable")
3052
+ {
3053
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1359)
3054
+ if try jsUnwrap(selectorScope, "hasAdjacentCombinatorSelectors").hasAdjacentCombinatorSelectors {
3055
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1360)
3056
+ self.hasAdjacentCombinatorSelectors = true
3057
+ }
3058
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1363)
3059
+ if try jsUnwrap(selectorScope, "hasSiblingCombinatorSelectors").hasSiblingCombinatorSelectors {
3060
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1364)
3061
+ self.hasSiblingCombinatorSelectors = true
3062
+ }
3063
+ }
3064
+ }
3065
+ }
3066
+ #sourceLocation()
3067
+ /// Append every selector that could match the node, matching media query scopes
3068
+ /// included, for `matchSelectorCandidates` to resolve.
3069
+ open func collectCandidates(_ node: Any?, _ candidates: JSArray<SelectorCore>? = nil) throws -> JSArray<
3070
+ SelectorCore
3071
+ >? {
3072
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1374)
3073
+ let candidates: JSArray<SelectorCore> = candidates ?? JSArray<SelectorCore>()
3074
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1375)
3075
+ _ = try self.getSelectorCandidates(node, candidates)
3076
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1378)
3077
+ if jsTruthy(self.mediaQuerySelectorScopes) {
3078
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1380)
3079
+ let validatedMediaQueries: JSArray<String> = JSArray<String>()
3080
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1382)
3081
+ var i: Double = 0
3082
+ let length: Double = try jsUnwrap(self.mediaQuerySelectorScopes, "length").length
3083
+ while i < length {
3084
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1383)
3085
+ let selectorScope: MediaQuerySelectorScope? = try jsUnwrap(self.mediaQuerySelectorScopes, "i").element(
3086
+ i)
3087
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1384)
3088
+ let isMatchingAllQueries: Bool = try Core_ui_styling_css_selector.matchMediaQueryString(
3089
+ jsUnwrap(selectorScope, "mediaQueryString").mediaQueryString, validatedMediaQueries)
3090
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1386)
3091
+ if isMatchingAllQueries {
3092
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1387)
3093
+ _ = try jsUnwrap(selectorScope, "getSelectorCandidates").getSelectorCandidates(node, candidates)
3094
+ }
3095
+ i += 1
3096
+ }
3097
+ }
3098
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1392)
3099
+ return candidates
3100
+ }
3101
+ #sourceLocation()
3102
+ open func query(_ node: Any?) throws -> SelectorsMatch? {
3103
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1396)
3104
+ return try Core_ui_styling_css_selector.matchSelectorCandidates(node, self.collectCandidates(node))
3105
+ }
3106
+ #sourceLocation()
3107
+ open override var jsDeclaredKeys: [String] {
3108
+ super.jsDeclaredKeys + (jsMadeBits0 & (1 << 0) != 0 ? ["mediaQuerySelectorScopes"] : [])
3109
+ }
3110
+ open override var jsClassName: String? { "StyleSheetSelectorScope" }
3111
+ open override subscript(jsKey key: String) -> Any? {
3112
+ get {
3113
+ switch key.utf8.count {
3114
+ case 5:
3115
+ switch key {
3116
+ case "query": return FunctionCell_AnyOpt_to_SelectorsMatchOpt.script("query", 1, self.query)
3117
+ default: break
3118
+ }
3119
+ case 14:
3120
+ switch key {
3121
+ case "appendRulesets":
3122
+ return FunctionCell_JSArray_RuleSet_Opt_Double_to_Void.script(
3123
+ "appendRulesets", 2, self.appendRulesets)
3124
+ case "lookupRulesets":
3125
+ return FunctionCell_JSArray_RuleSet_Opt_Double_to_Void.script(
3126
+ "lookupRulesets", 1, self.lookupRulesets)
3127
+ default: break
3128
+ }
3129
+ case 17:
3130
+ switch key {
3131
+ case "collectCandidates":
3132
+ return FunctionCell_AnyOpt_JSArray_SelectorCore_Opt_to_JSArray_SelectorCore_Opt.script(
3133
+ "collectCandidates", 1, self.collectCandidates)
3134
+ default: break
3135
+ }
3136
+ case 24:
3137
+ switch key {
3138
+ case "mediaQuerySelectorScopes":
3139
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
3140
+ return self.mediaQuerySelectorScopes
3141
+ default: break
3142
+ }
3143
+ case 29:
3144
+ switch key {
3145
+ case "createMediaQuerySelectorScope":
3146
+ return FunctionCell_AnyOpt_to_MediaQuerySelectorScopeOpt.script(
3147
+ "createMediaQuerySelectorScope", 1, self.createMediaQuerySelectorScope)
3148
+ default: break
3149
+ }
3150
+ default: break
3151
+ }
3152
+ return super[jsKey: key]
3153
+ }
3154
+ set {
3155
+ switch key.utf8.count {
3156
+ case 24:
3157
+ switch key {
3158
+ case "mediaQuerySelectorScopes":
3159
+ jsStoring {
3160
+ self.mediaQuerySelectorScopes = try jsArrayOrNil(
3161
+ newValue, as: JSArray<MediaQuerySelectorScope>.self,
3162
+ { try (jsCastPresent($0) as MediaQuerySelectorScope) })
3163
+ }
3164
+ return
3165
+ default: break
3166
+ }
3167
+ default: break
3168
+ }
3169
+ super[jsKey: key] = newValue
3170
+ }
3171
+ }
3172
+ open override class var jsName: String { "StyleSheetSelectorScope" }
3173
+ }
3174
+
3175
+ open class SelectorsMatch: ChangeAccumulator, JSExpando, JSKeysMade, JSStaticKeyed {
3176
+ nonisolated deinit {}
3177
+ open var changeMap: Any? = Core_ui_styling_css_selector.emptyChangeMap
3178
+ open var selectors: JSArray<SelectorCore>? = JSArray<SelectorCore>() {
3179
+ didSet { if jsMadeBits0 & (1 << 0) == 0 { jsMadeNote(&jsMadeBits0, &jsMade, 1 << 0, "selectors") } }
3180
+ }
3181
+ public init(jsLiteral: Void) {
3182
+ self.changeMap = nil
3183
+ }
3184
+ public init() {}
3185
+ open func jsSymbolMethod(_ key: String) -> JSMethod? {
3186
+ return nil
3187
+ }
3188
+ open class var jsSymbolPlain: Bool { true }
3189
+ open class var jsSymbolFieldsPlain: Bool { true }
3190
+ open var jsExpando: JSObject?
3191
+ open var jsSymbolKeys: [String] { jsExpando?.jsSymbolKeys ?? [] }
3192
+ open func jsDeleteOwn(_ key: String) -> Bool { jsExpando?.delete(key) ?? true }
3193
+ open func addAttribute(_ node: Any?, _ attribute: String) throws {
3194
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1448)
3195
+ let deps: Any? = try
3196
+ ({ () throws -> Any? in
3197
+ if let __own1 = jsOwnProperty(self, "properties") {
3198
+ return try jsCallValue(__own1, this: self, optional: false, [node])
3199
+ }
3200
+ return try self.properties(node)
3201
+ }())
3202
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1449)
3203
+ if try !(jsTruthy(jsGet(deps, "attributes"))) {
3204
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1450)
3205
+ try jsSet(deps, "attributes", JSSet<String>())
3206
+ }
3207
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1452)
3208
+ _ = try jsUnwrap(jsGet(deps, "attributes") as? JSSet<String>, "add").add(attribute)
3209
+ }
3210
+ #sourceLocation()
3211
+ open func addPseudoClass(_ node: Any?, _ pseudoClass: String) throws {
3212
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1456)
3213
+ let deps: Any? = try
3214
+ ({ () throws -> Any? in
3215
+ if let __own2 = jsOwnProperty(self, "properties") {
3216
+ return try jsCallValue(__own2, this: self, optional: false, [node])
3217
+ }
3218
+ return try self.properties(node)
3219
+ }())
3220
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1457)
3221
+ if try !(jsTruthy(jsGet(deps, "pseudoClasses"))) {
3222
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1458)
3223
+ try jsSet(deps, "pseudoClasses", JSSet<String>())
3224
+ }
3225
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1460)
3226
+ _ = try jsUnwrap(jsGet(deps, "pseudoClasses") as? JSSet<String>, "add").add(pseudoClass)
3227
+ }
3228
+ #sourceLocation()
3229
+ open func properties(_ node: Any?) throws -> Any? {
3230
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1464)
3231
+ var changeMap: Any? = self.changeMap
3232
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1465)
3233
+ if jsStrictEquals(changeMap, Core_ui_styling_css_selector.emptyChangeMap) {
3234
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1466)
3235
+ do {
3236
+ changeMap = JSMap<Any?, Any?>()
3237
+ self.changeMap = changeMap
3238
+ }
3239
+ }
3240
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1469)
3241
+ var set: Any? = try jsCallMethod(changeMap, "get", node)
3242
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1470)
3243
+ if !jsTruthy(set) {
3244
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1471)
3245
+ _ = try jsCallMethod(
3246
+ changeMap, "set", node,
3247
+ ({ () -> JSObject in
3248
+ set = JSObject([])
3249
+ return (set as? JSObject)
3250
+ }()))
3251
+ }
3252
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1474)
3253
+ return set
3254
+ }
3255
+ #sourceLocation()
3256
+ public final var jsMadeBits0: UInt64 = 0
3257
+ public final var jsMade: [String]?
3258
+ open var jsDeclaredKeys: [String] {
3259
+ (self.changeMap == nil ? [] : ["changeMap"]) + (jsMadeBits0 & (1 << 0) != 0 ? ["selectors"] : [])
3260
+ }
3261
+ open var jsKeys: [String] { jsMadeKeys(jsMade, jsDeclaredKeys + (jsExpando?.jsKeys ?? [])) }
3262
+ open var jsClassName: String? { "SelectorsMatch" }
3263
+ open subscript(jsKey key: String) -> Any? {
3264
+ get {
3265
+ switch key.utf8.count {
3266
+ case 9:
3267
+ switch key {
3268
+ case "changeMap": return self.changeMap
3269
+ case "selectors":
3270
+ if !(jsMadeBits0 & (1 << 0) != 0) { return nil }
3271
+ return self.selectors
3272
+ default: break
3273
+ }
3274
+ case 10:
3275
+ switch key {
3276
+ case "properties": return FunctionCell_AnyOpt_to_AnyOpt.script("properties", 1, self.properties)
3277
+ default: break
3278
+ }
3279
+ case 12:
3280
+ switch key {
3281
+ case "addAttribute":
3282
+ return FunctionCell_AnyOpt_String_to_Void.script("addAttribute", 2, self.addAttribute)
3283
+ default: break
3284
+ }
3285
+ case 14:
3286
+ switch key {
3287
+ case "addPseudoClass":
3288
+ return FunctionCell_AnyOpt_String_to_Void.script("addPseudoClass", 2, self.addPseudoClass)
3289
+ default: break
3290
+ }
3291
+ default: break
3292
+ }
3293
+ return jsExpandoGet(self, key)
3294
+ }
3295
+ set {
3296
+ switch key.utf8.count {
3297
+ case 9:
3298
+ switch key {
3299
+ case "changeMap":
3300
+ self.changeMap = newValue
3301
+ return
3302
+ case "selectors":
3303
+ jsStoring {
3304
+ self.selectors = try jsArrayOrNil(
3305
+ newValue, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) })
3306
+ }
3307
+ return
3308
+ default: break
3309
+ }
3310
+ default: break
3311
+ }
3312
+ jsExpandoSet(self, key, newValue)
3313
+ }
3314
+ }
3315
+ open class var jsName: String { "SelectorsMatch" }
3316
+ open class var jsStaticKeys: [String] { [] }
3317
+ }
3318
+
3319
+ public enum Core_ui_styling_css_selector {
3320
+ public static func eachNodePreviousGeneralSibling(_ node: Any?, _ callback: @escaping (Any?) throws -> Bool) throws
3321
+ {
3322
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:128)
3323
+ if try !(jsTruthy(jsGet(node, "parent"))) || !(jsTruthy(jsGet(jsGet(node, "parent"), "getChildIndex")))
3324
+ || !(jsTruthy(jsGet(jsGet(node, "parent"), "getChildAt")))
3325
+ || !(jsTruthy(jsGet(jsGet(node, "parent"), "getChildrenCount")))
3326
+ {
3327
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:129)
3328
+ return
3329
+ }
3330
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:132)
3331
+ let nodeIndex: Double = try jsLenientNumber(jsCallMethod(jsGet(node, "parent"), "getChildIndex", node))
3332
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:133)
3333
+ if nodeIndex == 0 {
3334
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:134)
3335
+ return
3336
+ }
3337
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:137)
3338
+ _ = try jsLenientNumber(jsCallMethod(jsGet(node, "parent"), "getChildrenCount"))
3339
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:138)
3340
+ var retVal: Bool = true
3341
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:140)
3342
+ var i: Double = nodeIndex - 1
3343
+ while i >= 0 && retVal {
3344
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:141)
3345
+ let sibling: Any? = try jsCallMethod(jsGet(node, "parent"), "getChildAt", i)
3346
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:142)
3347
+ retVal = try jsCallable(callback, "callback")(sibling)
3348
+ i -= 1
3349
+ }
3350
+ }
3351
+ #sourceLocation()
3352
+ public static func getNodePreviousDirectSibling(_ node: Any?) throws -> Any? {
3353
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:147)
3354
+ if try !(jsTruthy(jsGet(node, "parent"))) || !(jsTruthy(jsGet(jsGet(node, "parent"), "getChildIndex")))
3355
+ || !(jsTruthy(jsGet(jsGet(node, "parent"), "getChildAt")))
3356
+ {
3357
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:148)
3358
+ return jsNull
3359
+ }
3360
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:150)
3361
+ let nodeIndex: Double = try jsLenientNumber(jsCallMethod(jsGet(node, "parent"), "getChildIndex", node))
3362
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:151)
3363
+ if nodeIndex == 0 {
3364
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:152)
3365
+ return jsNull
3366
+ }
3367
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:155)
3368
+ return try jsCallMethod(jsGet(node, "parent"), "getChildAt", nodeIndex - 1)
3369
+ }
3370
+ #sourceLocation()
3371
+ public static var notifyingAttributes: JSWeakMap<Any?, JSMap<String, Bool>>?
3372
+ public static func attributeNotifiesChanges(_ node: Any?, _ attribute: String) throws -> Bool {
3373
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:166)
3374
+ let prototype: Any? = try jsGetPrototypeOf(node)
3375
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:167)
3376
+ if !jsTruthy(prototype) {
3377
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:168)
3378
+ return false
3379
+ }
3380
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:171)
3381
+ var cache: JSMap<String, Bool>? = try jsUnwrap(Core_ui_styling_css_selector.notifyingAttributes, "get").get(
3382
+ prototype)
3383
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:172)
3384
+ if jsTruthy(cache as Any?) {
3385
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:173)
3386
+ let cached: Bool? = try jsUnwrap(cache, "get").get(attribute)
3387
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:174)
3388
+ if cached != nil {
3389
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:175)
3390
+ return (cached ?? false)
3391
+ }
3392
+ } else {
3393
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:178)
3394
+ cache = JSMap<String, Bool>()
3395
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:179)
3396
+ _ = try jsUnwrap(Core_ui_styling_css_selector.notifyingAttributes, "set").set(
3397
+ prototype, jsObjectRequired(cache))
3398
+ }
3399
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:182)
3400
+ var notifies: Bool = false
3401
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:183)
3402
+ var current: Any? = prototype
3403
+ while jsTruthy(current) {
3404
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:184)
3405
+ let descriptor: Any? = jsOwnPropertyDescriptor(current, attribute)
3406
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:185)
3407
+ if jsTruthy(descriptor) {
3408
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:186)
3409
+ notifies = try !(!(jsTruthy(jsGet(descriptor, "set"))))
3410
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:187)
3411
+ break
3412
+ }
3413
+ try current = jsGetPrototypeOf(current)
3414
+ }
3415
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:191)
3416
+ _ = try jsUnwrap(cache, "set").set(attribute, notifies)
3417
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:193)
3418
+ return notifies
3419
+ }
3420
+ #sourceLocation()
3421
+ public static func SelectorProperties(_ specificity: Double, _ rarity: Double, _ dynamic: Bool = false) -> (
3422
+ (Any?) throws -> Any?
3423
+ )? {
3424
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:197)
3425
+ return { (cls: Any?) throws -> Any? in
3426
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:198)
3427
+ try jsSet(jsGet(cls, "prototype"), "specificity", specificity)
3428
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:199)
3429
+ try jsSet(jsGet(cls, "prototype"), "rarity", rarity)
3430
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:200)
3431
+ try jsSet(jsGet(cls, "prototype"), "combinator", nil)
3432
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:201)
3433
+ try jsSet(jsGet(cls, "prototype"), "dynamic", dynamic)
3434
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:202)
3435
+ try jsSet(jsGet(cls, "prototype"), "hasAdjacentCombinator", false)
3436
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:203)
3437
+ try jsSet(jsGet(cls, "prototype"), "hasSiblingCombinator", false)
3438
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:204)
3439
+ try jsSet(jsGet(cls, "prototype"), "tier", SelectorTier.Application)
3440
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:206)
3441
+ return cls
3442
+ }
3443
+ }
3444
+ #sourceLocation()
3445
+ public static func FunctionalPseudoClassProperties(
3446
+ _ specificity: Double, _ rarity: Double, _ pseudoSelectorListType: Double
3447
+ ) -> ((Any?) throws -> Any?)? {
3448
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:211)
3449
+ return { (cls: Any?) throws -> Any? in
3450
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:212)
3451
+ try jsSet(jsGet(cls, "prototype"), "specificity", specificity)
3452
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:213)
3453
+ try jsSet(jsGet(cls, "prototype"), "rarity", rarity)
3454
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:214)
3455
+ try jsSet(jsGet(cls, "prototype"), "combinator", nil)
3456
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:215)
3457
+ try jsSet(jsGet(cls, "prototype"), "dynamic", false)
3458
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:216)
3459
+ try jsSet(jsGet(cls, "prototype"), "hasAdjacentCombinator", false)
3460
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:217)
3461
+ try jsSet(jsGet(cls, "prototype"), "hasSiblingCombinator", false)
3462
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:218)
3463
+ try jsSet(jsGet(cls, "prototype"), "pseudoSelectorListType", pseudoSelectorListType)
3464
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:220)
3465
+ return cls
3466
+ }
3467
+ }
3468
+ #sourceLocation()
3469
+ public static func wrap(_ text: String) -> String {
3470
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:283)
3471
+ return (jsTruthy(text) ? " \(text) " : "")
3472
+ }
3473
+ #sourceLocation()
3474
+ public static func fromAstNode(_ astRule: Any?) throws -> RuleSet? {
3475
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:971)
3476
+ let declarations: JSArray<Any?> = JSArray<Any?>()
3477
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:972)
3478
+ let nodes: Any? = try jsGet(astRule, "declarations")
3479
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:974)
3480
+ var i: Double = 0
3481
+ let length: Any? = try jsGet(nodes, "length")
3482
+ while try jsLessThrowing(i, length) {
3483
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:975)
3484
+ let node: Any? = try jsGet(nodes, js(i))
3485
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:976)
3486
+ if try Core_ui_styling_css_selector.isDeclaration(node) {
3487
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:977)
3488
+ try Core_ui_styling_css_selector.appendDeclaration(declarations, node)
3489
+ }
3490
+ i += 1
3491
+ }
3492
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:981)
3493
+ let selectors: Any? = try jsCallMethod(
3494
+ jsGet(astRule, "selectors"), "map",
3495
+ FunctionCell_String_to_AnyOpt.script(
3496
+ "createSelector", 1,
3497
+ FunctionCell_String_to_AnyOpt.declared(
3498
+ "Core_ui_styling_css_selector.createSelector",
3499
+ { try Core_ui_styling_css_selector.createSelector($0) })))
3500
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:983)
3501
+ return try RuleSet(
3502
+ try jsArrayOrNil(selectors, as: JSArray<SelectorCore>.self, { try (jsCastPresent($0) as SelectorCore) }),
3503
+ declarations)
3504
+ }
3505
+ #sourceLocation()
3506
+ public static func appendDeclaration(_ declarations: JSArray<Any?>?, _ decl: Any?) throws {
3507
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:987)
3508
+ let property: Any? =
3509
+ try
3510
+ (Core_ui_core_properties_index.isCssVariable(jsConvertedString(jsGet(decl, "property")))
3511
+ ? jsGet(decl, "property") : jsCallMethod(jsGet(decl, "property"), "toLowerCase"))
3512
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:988)
3513
+ try Core_ui_styling_css_selector.pushDeclaration(
3514
+ declarations, try jsConvertedString(property),
3515
+ Core_ui_styling_css_utils.cleanupImportantFlags(
3516
+ jsGet(decl, "value"), jsConvertedString(jsGet(decl, "property"))))
3517
+ }
3518
+ #sourceLocation()
3519
+ public static func pushDeclaration(_ declarations: JSArray<Any?>?, _ property: String, _ value: String) throws {
3520
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:994)
3521
+ let expanded: JSArray<(String, Any?)>? = try Core_ui_core_properties_index._expandCssShorthand(property, value)
3522
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:995)
3523
+ if jsTruthy(expanded) {
3524
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:996)
3525
+ var i: Double = 0
3526
+ let length: Double = try jsUnwrap(expanded, "length").length
3527
+ while i < length {
3528
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:997)
3529
+ _ = try jsUnwrap(declarations, "push").push(
3530
+ JSObject([
3531
+ ("property", jsUnwrap(jsUnwrap(expanded, "i").element(i), "0").0),
3532
+ ("value", jsUnwrap(jsUnwrap(expanded, "i").element(i), "1").1),
3533
+ ]))
3534
+ i += 1
3535
+ }
3536
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1000)
3537
+ return
3538
+ }
3539
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1005)
3540
+ let pending: JSArray<(String, CssPendingSubstitution?)>? =
3541
+ try Core_ui_core_properties_index._pendingCssShorthandSubstitution(property, value)
3542
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1006)
3543
+ if jsTruthy(pending) {
3544
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1007)
3545
+ var i: Double = 0
3546
+ let length: Double = try jsUnwrap(pending, "length").length
3547
+ while i < length {
3548
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1008)
3549
+ _ = try jsUnwrap(declarations, "push").push(
3550
+ JSObject([
3551
+ ("property", jsUnwrap(jsUnwrap(pending, "i").element(i), "0").0),
3552
+ ("value", jsImplicit(jsUnwrap(jsUnwrap(pending, "i").element(i), "1").1)),
3553
+ ]))
3554
+ i += 1
3555
+ }
3556
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1011)
3557
+ return
3558
+ }
3559
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1014)
3560
+ _ = try jsUnwrap(declarations, "push").push(
3561
+ JSObject([("property", property as Any?), ("value", value as Any?)]))
3562
+ }
3563
+ #sourceLocation()
3564
+ public static func createSimpleSelectorFromAst(_ ast: Any?) throws -> SimpleSelector? {
3565
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1018)
3566
+ if try jsStrictEquals(jsGet(ast, "type"), "attribute") {
3567
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1019)
3568
+ if try jsStrictEquals(jsGet(ast, "name"), "class") {
3569
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1020)
3570
+ return try ClassSelector(jsConvertedString(jsGet(ast, "value")))
3571
+ }
3572
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1023)
3573
+ if try jsStrictEquals(jsGet(ast, "name"), "id") {
3574
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1024)
3575
+ return try IdSelector(jsConvertedString(jsGet(ast, "value")))
3576
+ }
3577
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1027)
3578
+ return try AttributeSelector(
3579
+ jsConvertedString(jsGet(ast, "name")), jsConvertedString(jsGet(ast, "action")),
3580
+ jsConvertedString(jsGet(ast, "value")), !(!(jsTruthy(jsGet(ast, "ignoreCase")))))
3581
+ }
3582
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1030)
3583
+ if try jsStrictEquals(jsGet(ast, "type"), "tag") {
3584
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1031)
3585
+ return try TypeSelector(jsReplace(jsConvertedString(jsGet(ast, "name")), "-", "").lowercased())
3586
+ }
3587
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1034)
3588
+ if try jsStrictEquals(jsGet(ast, "type"), "pseudo") {
3589
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1035)
3590
+ if try jsStrictEquals(jsGet(ast, "name"), "is") {
3591
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1036)
3592
+ return try IsFunctionalPseudoClassSelector(jsConvertedString(jsGet(ast, "name")), jsGet(ast, "data"))
3593
+ }
3594
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1039)
3595
+ if try jsStrictEquals(jsGet(ast, "name"), "where") {
3596
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1040)
3597
+ return try WhereFunctionalPseudoClassSelector(jsConvertedString(jsGet(ast, "name")), jsGet(ast, "data"))
3598
+ }
3599
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1043)
3600
+ if try jsStrictEquals(jsGet(ast, "name"), "not") {
3601
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1044)
3602
+ return try NotFunctionalPseudoClassSelector(jsConvertedString(jsGet(ast, "name")), jsGet(ast, "data"))
3603
+ }
3604
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1047)
3605
+ return try PseudoClassSelector(jsConvertedString(jsGet(ast, "name")))
3606
+ }
3607
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1050)
3608
+ if try jsStrictEquals(jsGet(ast, "type"), "universal") {
3609
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1051)
3610
+ return try UniversalSelector()
3611
+ }
3612
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1054)
3613
+ return try InvalidSelector(JSError(jsConvertedString(jsGet(ast, "type"))))
3614
+ }
3615
+ #sourceLocation()
3616
+ public static func createSimpleSelectorSequenceFromAst(_ asts: JSArray<Any?>?) throws -> Any? {
3617
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1058)
3618
+ if try jsUnwrap(asts, "length").length == 0 {
3619
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1059)
3620
+ return try InvalidSelector(JSError("Empty simple selector sequence."))
3621
+ }
3622
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1062)
3623
+ if try jsUnwrap(asts, "length").length == 1 {
3624
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1063)
3625
+ return try Core_ui_styling_css_selector.createSimpleSelectorFromAst(
3626
+ ((jsUnwrap(asts, "0").element(0) ?? nil) as Any?))
3627
+ }
3628
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1066)
3629
+ let sequenceSelectors: JSArray<SimpleSelector> = JSArray<SimpleSelector>()
3630
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1068)
3631
+ for ast in try jsIterated(asts, "asts is not iterable") {
3632
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1069)
3633
+ let selector: SimpleSelector? = try Core_ui_styling_css_selector.createSimpleSelectorFromAst(ast)
3634
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1070)
3635
+ if selector is InvalidSelector {
3636
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1071)
3637
+ return (selector as? InvalidSelector)
3638
+ }
3639
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1074)
3640
+ _ = try sequenceSelectors.push(jsObjectRequired(selector))
3641
+ }
3642
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1077)
3643
+ return try SimpleSelectorSequence(sequenceSelectors)
3644
+ }
3645
+ #sourceLocation()
3646
+ public static func createSelectorFromAst(_ asts: JSArray<Any?>?) throws -> Any? {
3647
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1081)
3648
+ var result: Any? = nil
3649
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1083)
3650
+ if try jsUnwrap(asts, "length").length == 0 {
3651
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1084)
3652
+ return try InvalidSelector(JSError("Empty selector."))
3653
+ }
3654
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1087)
3655
+ if try jsUnwrap(asts, "length").length == 1 {
3656
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1088)
3657
+ return try Core_ui_styling_css_selector.createSimpleSelectorFromAst(
3658
+ ((jsUnwrap(asts, "0").element(0) ?? nil) as Any?))
3659
+ }
3660
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1091)
3661
+ let simpleSelectorSequences: JSArray<Any?> = JSArray<Any?>()
3662
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1093)
3663
+ var sequenceAsts: JSArray<Any?>? = JSArray<Any?>()
3664
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1094)
3665
+ var combinatorCount: Double = 0
3666
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1096)
3667
+ for ast in try jsIterated(asts, "asts is not iterable") {
3668
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1097)
3669
+ let combinator: Any? = try Combinator.jsEnumObject[jsKey: jsConvertedString(jsGet(ast, "type"))]
3670
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1100)
3671
+ if !jsIsNullish(combinator) {
3672
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1101)
3673
+ let selector: Any? = try Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(sequenceAsts)
3674
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1103)
3675
+ if selector is InvalidSelector {
3676
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1104)
3677
+ return (selector as? InvalidSelector)
3678
+ }
3679
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1107)
3680
+ try jsSet(selector, "combinator", combinator)
3681
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1108)
3682
+ _ = simpleSelectorSequences.push(selector)
3683
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1110)
3684
+ combinatorCount += 1
3685
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1112)
3686
+ sequenceAsts = JSArray<Any?>()
3687
+ } else {
3688
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1114)
3689
+ _ = try jsUnwrap(sequenceAsts, "push").push(ast)
3690
+ }
3691
+ }
3692
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1118)
3693
+ if combinatorCount > 0 {
3694
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1120)
3695
+ if try jsTruthy(jsUnwrap(sequenceAsts, "length").length) {
3696
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1121)
3697
+ let selector: Any? = try Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(sequenceAsts)
3698
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1123)
3699
+ if selector is InvalidSelector {
3700
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1124)
3701
+ return (selector as? InvalidSelector)
3702
+ }
3703
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1127)
3704
+ _ = simpleSelectorSequences.push(selector)
3705
+ }
3706
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1129)
3707
+ return try ComplexSelector(
3708
+ try jsArrayFrom(simpleSelectorSequences) { try (jsCastPresent($0) as SimpleSelector) })
3709
+ }
3710
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1132)
3711
+ return try Core_ui_styling_css_selector.createSimpleSelectorSequenceFromAst(sequenceAsts)
3712
+ }
3713
+ #sourceLocation()
3714
+ public static func createSelector(_ sel: String) throws -> Any? {
3715
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1136)
3716
+ do {
3717
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1137)
3718
+ let result: JSArray<JSArray<Any?>>? = try Package_css_what_src_parse.parse(sel)
3719
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1138)
3720
+ if !jsTruthy((((result as JSArray<JSArray<Any?>>?)?.length) ?? .nan)) {
3721
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1139)
3722
+ return try InvalidSelector(JSError("Empty selector"))
3723
+ }
3724
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1142)
3725
+ return try Core_ui_styling_css_selector.createSelectorFromAst(jsImplicit(jsUnwrap(result, "0").element(0)))
3726
+ } catch {
3727
+ let e: Any? = jsCaught(error)
3728
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1144)
3729
+ return try InvalidSelector((e as? JSError))
3730
+ }
3731
+ }
3732
+ #sourceLocation()
3733
+ public static func isDeclaration(_ node: Any?) throws -> Bool {
3734
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1149)
3735
+ return try jsStrictEquals(jsGet(node, "type"), "declaration")
3736
+ }
3737
+ #sourceLocation()
3738
+ public static func matchMediaQueryString(_ mediaQueryString: Any?, _ cachedQueries: JSArray<String>?) throws -> Bool
3739
+ {
3740
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1153)
3741
+ if !jsTruthy(mediaQueryString) {
3742
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1154)
3743
+ return false
3744
+ }
3745
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1157)
3746
+ if jsStringEquals(jsTypeof(mediaQueryString), "string") {
3747
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1159)
3748
+ if try jsUnwrap(cachedQueries, "includes").includes(jsLenientString(mediaQueryString)) {
3749
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1160)
3750
+ return true
3751
+ }
3752
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1163)
3753
+ let result: Bool? = try Core_media_query_list_index.checkIfMediaQueryMatches(
3754
+ jsLenientString(mediaQueryString))
3755
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1164)
3756
+ if jsTruthy(result as Any?) {
3757
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1165)
3758
+ _ = try jsUnwrap(cachedQueries, "push").push(jsLenientString(mediaQueryString))
3759
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1166)
3760
+ return (result ?? false)
3761
+ }
3762
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1169)
3763
+ return false
3764
+ }
3765
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1172)
3766
+ var i: Double = 0
3767
+ let length: Double = try jsUnwrap(jsArrayOrNil(mediaQueryString, { jsLenientString($0) }), "length").length
3768
+ var __first3 = true
3769
+ while true {
3770
+ if !__first3 { i += 1 }
3771
+ __first3 = false
3772
+ if !(i < length) { break }
3773
+ do {
3774
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1173)
3775
+ let mq: String? = try jsUnwrap(jsArrayOrNil(mediaQueryString, { jsLenientString($0) }), "i").element(i)
3776
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1176)
3777
+ if try jsUnwrap(cachedQueries, "includes").includes((mq ?? "undefined")) {
3778
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1177)
3779
+ continue
3780
+ }
3781
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1180)
3782
+ if try !(jsTruthy(Core_media_query_list_index.checkIfMediaQueryMatches((mq ?? "undefined")) as Any?)) {
3783
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1181)
3784
+ return false
3785
+ }
3786
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1184)
3787
+ _ = try jsUnwrap(cachedQueries, "push").push((mq ?? "undefined"))
3788
+ }
3789
+ }
3790
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1187)
3791
+ return true
3792
+ }
3793
+ #sourceLocation()
3794
+ public static func appendSelectorCandidates(
3795
+ _ candidates: JSArray<SelectorCore>?, _ selectors: JSArray<SelectorCore>?
3796
+ ) throws {
3797
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1195)
3798
+ if jsTruthy(selectors) {
3799
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1196)
3800
+ var i: Double = 0
3801
+ let length: Double = try jsUnwrap(selectors, "length").length
3802
+ while i < length {
3803
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1197)
3804
+ _ = try jsUnwrap(candidates, "push").push(jsObjectRequired(jsUnwrap(selectors, "i").element(i)))
3805
+ i += 1
3806
+ }
3807
+ }
3808
+ }
3809
+ #sourceLocation()
3810
+ /// Cascade order: specificity, then source order - (tier, position) across stylesheets.
3811
+ public static func compareSelectors(_ a: SelectorCore?, _ b: SelectorCore?) throws -> Double {
3812
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1402)
3813
+ return try
3814
+ ({ () throws -> Double in
3815
+ let __v_22 = try
3816
+ ({ () throws -> Double in
3817
+ let __v_23 = try jsUnwrap(a, "specificity").specificity - jsUnwrap(b, "specificity").specificity
3818
+ return jsTruthy(__v_23)
3819
+ ? jsPresent(__v_23) : try jsUnwrap(a, "tier").tier - jsUnwrap(b, "tier").tier
3820
+ }())
3821
+ return jsTruthy(__v_22) ? jsPresent(__v_22) : try jsUnwrap(a, "pos").pos - jsUnwrap(b, "pos").pos
3822
+ }())
3823
+ }
3824
+ #sourceLocation()
3825
+ /// Resolve collected candidates against a node, compacting the array in place.
3826
+ /// `scopedTags` filters out rules registered on behalf of a stylesheet this scope
3827
+ /// never loaded; pass it only when such rules exist - it costs a lookup per candidate.
3828
+ public static func matchSelectorCandidates(
3829
+ _ node: Any?, _ candidates: JSArray<SelectorCore>?, _ scopedTags: JSSet<String>? = nil
3830
+ ) throws -> SelectorsMatch? {
3831
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1411)
3832
+ let selectorsMatch: SelectorsMatch = SelectorsMatch()
3833
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1413)
3834
+ var matched: Double = 0
3835
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1414)
3836
+ var i: Double = 0
3837
+ let length: Double = try jsUnwrap(candidates, "length").length
3838
+ var __first4 = true
3839
+ while true {
3840
+ if !__first4 { i += 1 }
3841
+ __first4 = false
3842
+ if !(i < length) { break }
3843
+ do {
3844
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1415)
3845
+ let selector: SelectorCore? = try jsUnwrap(candidates, "i").element(i)
3846
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1417)
3847
+ if jsTruthy(scopedTags as Any?) {
3848
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1418)
3849
+ let scopedTag: String? = try (jsUnwrap(selector, "ruleset").ruleset as RuleSet?)?.scopedTag
3850
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1419)
3851
+ if try
3852
+ (jsTruthy(scopedTag as Any?) && !(jsUnwrap(scopedTags, "has").has((scopedTag ?? "undefined"))))
3853
+ {
3854
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1420)
3855
+ continue
3856
+ }
3857
+ }
3858
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1424)
3859
+ if try jsUnwrap(selector, "accumulateChanges").accumulateChanges(node, selectorsMatch) {
3860
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1425)
3861
+ try jsUnwrap(candidates, setting: "matched++")[(jsPostIncrement(&matched) as Double)] =
3862
+ jsObjectRequired(selector)
3863
+ }
3864
+ }
3865
+ }
3866
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1428)
3867
+ try jsUnwrap(candidates, setting: "length").jsSetLength(checked: matched)
3868
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1430)
3869
+ selectorsMatch.selectors = try jsUnwrap(candidates, "sort").sort(Core_ui_styling_css_selector.compareSelectors)
3870
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1432)
3871
+ return selectorsMatch
3872
+ }
3873
+ #sourceLocation()
3874
+ public static let emptyChangeMap: Any? = JSMap<Any?, Any?>()
3875
+ public static let CSSHelper:
3876
+ Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044 =
3877
+ {
3878
+ @MainActor ()
3879
+ -> Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044
3880
+ in
3881
+ Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044(
3882
+ createSelector: Core_ui_styling_css_selector.createSelector, SelectorCore: SelectorCore.self,
3883
+ SimpleSelector: SimpleSelector.self, InvalidSelector: InvalidSelector.self,
3884
+ UniversalSelector: UniversalSelector.self, TypeSelector: TypeSelector.self,
3885
+ ClassSelector: ClassSelector.self, AttributeSelector: AttributeSelector.self,
3886
+ PseudoClassSelector: PseudoClassSelector.self, SimpleSelectorSequence: SimpleSelectorSequence.self,
3887
+ Selector: Selector.self, RuleSet: RuleSet.self, SelectorScope: SelectorScope.self,
3888
+ MediaQuerySelectorScope: MediaQuerySelectorScope.self,
3889
+ StyleSheetSelectorScope: StyleSheetSelectorScope.self,
3890
+ fromAstNode: FunctionCell_AnyOpt_to_RuleSet.adapting(Core_ui_styling_css_selector.fromAstNode),
3891
+ SelectorsMatch: SelectorsMatch.self,
3892
+ matchSelectorCandidates:
3893
+ FunctionCell_AnyOpt_JSArray_SelectorCore_Opt_JSSet_String_Opt_to_SelectorsMatch.adapting(
3894
+ Core_ui_styling_css_selector.matchSelectorCandidates))
3895
+ }()
3896
+ }
3897
+
3898
+ public func __init_Core_ui_styling_css_selector() {
3899
+ jsReport {
3900
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:163)
3901
+ Core_ui_styling_css_selector.notifyingAttributes = JSWeakMap<Any?, JSMap<String, Bool>>()
3902
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:242)
3903
+ try jsDecorate(
3904
+ SelectorCore.self,
3905
+ [
3906
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3907
+ "", 1,
3908
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3909
+ Core_ui_styling_css_selector.SelectorProperties(
3910
+ Specificity.Universal, Rarity.Universal, NativeScriptKit.Match.Static)))
3911
+ ])
3912
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:286)
3913
+ try jsDecorate(
3914
+ InvalidSelector.self,
3915
+ [
3916
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3917
+ "", 1,
3918
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3919
+ Core_ui_styling_css_selector.SelectorProperties(
3920
+ Specificity.Invalid, Rarity.Invalid, NativeScriptKit.Match.Static)))
3921
+ ])
3922
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:304)
3923
+ try jsDecorate(
3924
+ UniversalSelector.self,
3925
+ [
3926
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3927
+ "", 1,
3928
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3929
+ Core_ui_styling_css_selector.SelectorProperties(
3930
+ Specificity.Universal, Rarity.Universal, NativeScriptKit.Match.Static)))
3931
+ ])
3932
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:314)
3933
+ try jsDecorate(
3934
+ IdSelector.self,
3935
+ [
3936
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3937
+ "", 1,
3938
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3939
+ Core_ui_styling_css_selector.SelectorProperties(
3940
+ Specificity.Id, Rarity.Id, NativeScriptKit.Match.Static)))
3941
+ ])
3942
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:330)
3943
+ try jsDecorate(
3944
+ TypeSelector.self,
3945
+ [
3946
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3947
+ "", 1,
3948
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3949
+ Core_ui_styling_css_selector.SelectorProperties(
3950
+ Double(1), Double(1), NativeScriptKit.Match.Static)))
3951
+ ])
3952
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:346)
3953
+ try jsDecorate(
3954
+ ClassSelector.self,
3955
+ [
3956
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3957
+ "", 1,
3958
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3959
+ Core_ui_styling_css_selector.SelectorProperties(
3960
+ Specificity.Class, Rarity.Class, NativeScriptKit.Match.Static)))
3961
+ ])
3962
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:362)
3963
+ try jsDecorate(
3964
+ AttributeSelector.self,
3965
+ [
3966
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3967
+ "", 1,
3968
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3969
+ Core_ui_styling_css_selector.SelectorProperties(
3970
+ Specificity.Attribute, Rarity.Attribute, NativeScriptKit.Match.Dynamic)))
3971
+ ])
3972
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:444)
3973
+ try jsDecorate(
3974
+ PseudoClassSelector.self,
3975
+ [
3976
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3977
+ "", 1,
3978
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3979
+ Core_ui_styling_css_selector.SelectorProperties(
3980
+ Specificity.PseudoClass, Rarity.PseudoClass, NativeScriptKit.Match.Dynamic)))
3981
+ ])
3982
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:520)
3983
+ try jsDecorate(
3984
+ NotFunctionalPseudoClassSelector.self,
3985
+ [
3986
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3987
+ "", 1,
3988
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3989
+ Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
3990
+ Specificity.SelectorListHighest, Rarity.PseudoClass, PseudoClassSelectorList.Regular)))
3991
+ ])
3992
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:527)
3993
+ try jsDecorate(
3994
+ IsFunctionalPseudoClassSelector.self,
3995
+ [
3996
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
3997
+ "", 1,
3998
+ FunctionCell_AnyOpt_to_AnyOpt.present(
3999
+ Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
4000
+ Specificity.SelectorListHighest, Rarity.PseudoClass, PseudoClassSelectorList.Forgiving)))
4001
+ ])
4002
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:543)
4003
+ try jsDecorate(
4004
+ WhereFunctionalPseudoClassSelector.self,
4005
+ [
4006
+ FunctionCell_AnyOpt_to_AnyOpt.scriptOrNil(
4007
+ "", 1,
4008
+ FunctionCell_AnyOpt_to_AnyOpt.present(
4009
+ Core_ui_styling_css_selector.FunctionalPseudoClassProperties(
4010
+ Specificity.Zero, Rarity.PseudoClass, PseudoClassSelectorList.Forgiving)))
4011
+ ])
4012
+ #sourceLocation(file:"@nativescript/core/ui.styling.css-selector.ts",line:1280)
4013
+
4014
+ }
4015
+ }
4016
+ #sourceLocation()