@kaeawc/auto-mobile 0.0.91 → 0.0.92

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 (267) hide show
  1. package/dist/build-info.json +12 -12
  2. package/dist/schemas/README.md +16 -0
  3. package/dist/schemas/prototype-icon-names.json +302 -0
  4. package/dist/src/chunk-09442h7v.js +4 -0
  5. package/dist/src/chunk-0dfnyfkh.js +5 -0
  6. package/dist/src/chunk-0e4gm1kj.js +5 -0
  7. package/dist/src/chunk-0eb8576f.js +4 -0
  8. package/dist/src/chunk-0rjm4nx7.js +5 -0
  9. package/dist/src/chunk-0w1spptt.js +6 -0
  10. package/dist/src/chunk-1zmh2eak.js +4 -0
  11. package/dist/src/chunk-28k63ha3.js +5 -0
  12. package/dist/src/chunk-2d4wmp8b.js +4 -0
  13. package/dist/src/chunk-2e6s75qv.js +78 -0
  14. package/dist/src/chunk-2v7tw1nj.js +5 -0
  15. package/dist/src/chunk-32jpxz2y.js +323 -0
  16. package/dist/src/chunk-34zxqcmq.js +5 -0
  17. package/dist/src/chunk-3jmvqygr.js +238 -0
  18. package/dist/src/chunk-3swvfhqt.js +5 -0
  19. package/dist/src/chunk-44bt78m9.js +5 -0
  20. package/dist/src/chunk-488vt2bp.js +4 -0
  21. package/dist/src/chunk-4fgdhcwx.js +5 -0
  22. package/dist/src/chunk-4jp2se4w.js +4 -0
  23. package/dist/src/chunk-4pfftt07.js +5 -0
  24. package/dist/src/chunk-4vhr9e4t.js +4 -0
  25. package/dist/src/chunk-4xd6zs3y.js +15 -0
  26. package/dist/src/chunk-51567pg8.js +4 -0
  27. package/dist/src/chunk-5agqsfev.js +4 -0
  28. package/dist/src/chunk-5d706gmr.js +4 -0
  29. package/dist/src/chunk-5kd4rqk7.js +5 -0
  30. package/dist/src/chunk-5s645vr4.js +4 -0
  31. package/dist/src/chunk-61t538bm.js +4 -0
  32. package/dist/src/chunk-6d3mmqxt.js +54 -0
  33. package/dist/src/chunk-6hyt398x.js +5 -0
  34. package/dist/src/chunk-6mnr8kpm.js +4 -0
  35. package/dist/src/chunk-6pg7bqck.js +4 -0
  36. package/dist/src/chunk-79q5xsdc.js +42 -0
  37. package/dist/src/chunk-7bdgand3.js +4 -0
  38. package/dist/src/chunk-84cp9dw5.js +4 -0
  39. package/dist/src/chunk-86f2h5ww.js +5 -0
  40. package/dist/src/chunk-8cghfzb2.js +19 -0
  41. package/dist/src/chunk-8en08r7q.js +5 -0
  42. package/dist/src/chunk-950qcq1e.js +10 -0
  43. package/dist/src/chunk-9rkfyt6q.js +5 -0
  44. package/dist/src/chunk-9tf2p9y9.js +5 -0
  45. package/dist/src/chunk-9y5bcy28.js +6 -0
  46. package/dist/src/chunk-a2sc4jm0.js +5 -0
  47. package/dist/src/chunk-a4k9rt7z.js +5 -0
  48. package/dist/src/chunk-aa5ng3d1.js +4 -0
  49. package/dist/src/chunk-ajsrz473.js +5 -0
  50. package/dist/src/chunk-b3h0a6ca.js +4 -0
  51. package/dist/src/chunk-b4cxdzwy.js +20 -0
  52. package/dist/src/chunk-b6a737qt.js +4 -0
  53. package/dist/src/chunk-bn64x5z5.js +5 -0
  54. package/dist/src/chunk-bvh649za.js +12 -0
  55. package/dist/src/chunk-c9nk1r78.js +5 -0
  56. package/dist/src/chunk-c9tyfg4j.js +26 -0
  57. package/dist/src/chunk-cfsdfqnm.js +4 -0
  58. package/dist/src/chunk-cxyf04jc.js +7 -0
  59. package/dist/src/chunk-d57432wq.js +4 -0
  60. package/dist/src/chunk-da08tx5v.js +4 -0
  61. package/dist/src/chunk-eka89q3k.js +4 -0
  62. package/dist/src/chunk-f2tc08m2.js +4 -0
  63. package/dist/src/chunk-f8tnk179.js +5 -0
  64. package/dist/src/chunk-f9s1kkhx.js +5 -0
  65. package/dist/src/chunk-fbp8a4rx.js +4 -0
  66. package/dist/src/chunk-fd2z0sze.js +4 -0
  67. package/dist/src/chunk-fk927f4q.js +54 -0
  68. package/dist/src/chunk-fxmr3a0f.js +4 -0
  69. package/dist/src/chunk-gaqwhd44.js +4 -0
  70. package/dist/src/chunk-ggtd5x5a.js +5 -0
  71. package/dist/src/chunk-gndcfrm7.js +4 -0
  72. package/dist/src/chunk-h3n4adc6.js +310 -0
  73. package/dist/src/chunk-h5pjbb83.js +4 -0
  74. package/dist/src/chunk-hgnnh302.js +4 -0
  75. package/dist/src/chunk-hmke8nhx.js +5 -0
  76. package/dist/src/chunk-j2bx12hn.js +4 -0
  77. package/dist/src/chunk-j70y1a2g.js +4 -0
  78. package/dist/src/chunk-jdqvcq0a.js +5 -0
  79. package/dist/src/chunk-jhnbfj19.js +55 -0
  80. package/dist/src/chunk-js1jpyxp.js +6 -0
  81. package/dist/src/chunk-kbjq0qvb.js +4 -0
  82. package/dist/src/chunk-kfwx57xd.js +4 -0
  83. package/dist/src/chunk-km0dy5vc.js +71 -0
  84. package/dist/src/chunk-kzwctna2.js +4 -0
  85. package/dist/src/chunk-m9ehyehy.js +4 -0
  86. package/dist/src/chunk-mct91p1f.js +4 -0
  87. package/dist/src/chunk-mf9spd4g.js +5 -0
  88. package/dist/src/chunk-mgrcansb.js +4 -0
  89. package/dist/src/chunk-mqc1d0eb.js +6 -0
  90. package/dist/src/chunk-n1zmpk0z.js +4 -0
  91. package/dist/src/chunk-ncyjf63g.js +4 -0
  92. package/dist/src/chunk-nr64d21q.js +973 -0
  93. package/dist/src/chunk-nwm2pq5v.js +168 -0
  94. package/dist/src/chunk-pm06b05d.js +9 -0
  95. package/dist/src/chunk-q50s00ry.js +4 -0
  96. package/dist/src/chunk-qv2918jt.js +4 -0
  97. package/dist/src/chunk-qwye1958.js +14 -0
  98. package/dist/src/chunk-r0f1q783.js +5 -0
  99. package/dist/src/chunk-r14wwk37.js +18 -0
  100. package/dist/src/chunk-r20pe1nv.js +5 -0
  101. package/dist/src/chunk-r8z9pfve.js +5 -0
  102. package/dist/src/chunk-rdpgkjf6.js +4 -0
  103. package/dist/src/chunk-rkr0dks9.js +5 -0
  104. package/dist/src/chunk-rn84t3sf.js +11 -0
  105. package/dist/src/chunk-s123kn7n.js +4 -0
  106. package/dist/src/chunk-s1zq65ny.js +4 -0
  107. package/dist/src/chunk-s73qn3fx.js +4 -0
  108. package/dist/src/chunk-sjn0nj4p.js +5 -0
  109. package/dist/src/chunk-sns0c35v.js +7 -0
  110. package/dist/src/chunk-stfzjr9y.js +8 -0
  111. package/dist/src/chunk-sz1a7p43.js +4 -0
  112. package/dist/src/chunk-t4dr5c8v.js +8 -0
  113. package/dist/src/chunk-tc8k9c1j.js +4 -0
  114. package/dist/src/chunk-teznhase.js +4 -0
  115. package/dist/src/chunk-ty9xgmz4.js +4 -0
  116. package/dist/src/chunk-tyazf3sk.js +145 -0
  117. package/dist/src/chunk-v6npjrjm.js +5 -0
  118. package/dist/src/chunk-v90es00d.js +4 -0
  119. package/dist/src/chunk-vbvtzkwz.js +5 -0
  120. package/dist/src/chunk-vefd8qee.js +8 -0
  121. package/dist/src/chunk-vs9r72ta.js +17 -0
  122. package/dist/src/chunk-w2mwa0jk.js +4 -0
  123. package/dist/src/chunk-w7zsh13a.js +9 -0
  124. package/dist/src/chunk-w88k0bgr.js +4 -0
  125. package/dist/src/chunk-wry6skrm.js +4 -0
  126. package/dist/src/chunk-wzdt0enk.js +4 -0
  127. package/dist/src/chunk-xhhv854c.js +4 -0
  128. package/dist/src/chunk-y58270hd.js +4 -0
  129. package/dist/src/chunk-yk0hmbex.js +4 -0
  130. package/dist/src/chunk-ympy4fdz.js +28 -0
  131. package/dist/src/chunk-yw436axy.js +4 -0
  132. package/dist/src/chunk-z04jrpjy.js +5 -0
  133. package/dist/src/chunk-z2xznczw.js +4 -0
  134. package/dist/src/chunk-z4xnrgps.js +4 -0
  135. package/dist/src/chunk-z7csyszv.js +4 -0
  136. package/dist/src/chunk-z8t0v07j.js +11 -0
  137. package/dist/src/chunk-z916af47.js +228 -0
  138. package/dist/src/chunk-zcr8he8q.js +5 -0
  139. package/dist/src/chunk-zd9vmkzn.js +9 -0
  140. package/dist/src/chunk-zg67wjkh.js +5 -0
  141. package/dist/src/chunk-zj939v0h.js +5 -0
  142. package/dist/src/chunk-zkdjwtc1.js +4 -0
  143. package/dist/src/chunk-zkv5kzt6.js +4 -0
  144. package/dist/src/daemon/processEntry.js +4 -0
  145. package/dist/src/index.js +4 -2843
  146. package/dist/src/runtime/bunRuntimeGuard.js +4 -0
  147. package/dist/src/utils/workers/iosBundleExtractWorker.js +2 -3
  148. package/package.json +5 -5
  149. package/schemas/README.md +16 -0
  150. package/schemas/prototype-icon-names.json +302 -0
  151. package/node_modules/@borewit/text-codec/README.md +0 -87
  152. package/node_modules/@jimp/diff/node_modules/pixelmatch/README.md +0 -110
  153. package/node_modules/@jimp/diff/node_modules/pixelmatch/node_modules/pngjs/README.md +0 -433
  154. package/node_modules/@jimp/file-ops/dist/browser/index.js +0 -8
  155. package/node_modules/@jimp/js-png/README.md +0 -35
  156. package/node_modules/@jimp/js-png/src/__image_snapshots__/index-node-test-ts-png-should-use-png-options-1-snap.png +0 -0
  157. package/node_modules/@jimp/js-png/src/output.png +0 -0
  158. package/node_modules/@jimp/js-png/vitest.config.browser.mjs +0 -3
  159. package/node_modules/@jimp/plugin-resize/README.md +0 -12
  160. package/node_modules/@jimp/plugin-resize/vitest.config.browser.mjs +0 -3
  161. package/node_modules/@tokenizer/inflate/README.md +0 -114
  162. package/node_modules/@tokenizer/token/README.md +0 -19
  163. package/node_modules/await-to-js/README.md +0 -82
  164. package/node_modules/debug/README.md +0 -481
  165. package/node_modules/exif-parser/README.md +0 -83
  166. package/node_modules/file-type/readme.md +0 -667
  167. package/node_modules/ieee754/README.md +0 -51
  168. package/node_modules/mime/README.md +0 -178
  169. package/node_modules/ms/readme.md +0 -59
  170. package/node_modules/parse-bmfont-xml/README.md +0 -74
  171. package/node_modules/parse-bmfont-xml/lib/browser.js +0 -85
  172. package/node_modules/parse-bmfont-xml/node_modules/xml2js/README.md +0 -507
  173. package/node_modules/pngjs/README.md +0 -287
  174. package/node_modules/sax/README.md +0 -228
  175. package/node_modules/strtok3/README.md +0 -795
  176. package/node_modules/tinycolor2/README.md +0 -492
  177. package/node_modules/tinycolor2/cjs/test.js +0 -2191
  178. package/node_modules/tinycolor2/cjs/test_template.js +0 -26
  179. package/node_modules/tinycolor2/deno_asserts@0.168.0.mjs +0 -807
  180. package/node_modules/tinycolor2/esm/test.js +0 -2189
  181. package/node_modules/tinycolor2/esm/test_template.js +0 -24
  182. package/node_modules/tinycolor2/tinycolor.js +0 -1191
  183. package/node_modules/token-types/README.md +0 -160
  184. package/node_modules/uint8array-extras/readme.md +0 -318
  185. package/node_modules/xml-parse-from-string/README.md +0 -35
  186. package/node_modules/xmlbuilder/README.md +0 -86
  187. package/node_modules/zod/README.md +0 -208
  188. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  189. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  190. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  191. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  192. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  193. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  194. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  195. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  196. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  197. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  198. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  199. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  200. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  201. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  202. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  203. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  204. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  205. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  206. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  207. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  208. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  209. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  210. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  211. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  212. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  213. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  214. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  215. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  216. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  217. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  218. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  219. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  220. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  221. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  222. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  223. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  224. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  225. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  226. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  227. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  228. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  229. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  230. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  231. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  232. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  233. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  234. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  235. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  236. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  237. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  238. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  239. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  240. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  241. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  242. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  243. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  244. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  245. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  246. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  247. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  248. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  249. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  250. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  251. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  252. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  253. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  254. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  255. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  256. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  257. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  258. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  259. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  260. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  261. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  262. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  263. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  264. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  265. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  266. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  267. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
@@ -0,0 +1,42 @@
1
+ // @bun
2
+ import{e}from"./chunk-z8t0v07j.js";import{g,E}from"./chunk-mf9spd4g.js";import{r,t}from"./chunk-9rkfyt6q.js";import{de}from"./chunk-2v7tw1nj.js";var Jz={};de(Jz,{ZodISODate:()=>cu,ZodISODateTime:()=>du,ZodISODuration:()=>mu,ZodISOTime:()=>pu,date:()=>jo,datetime:()=>Mo,duration:()=>Lo,time:()=>No});var J;(function(o){o.assertEqual=(d)=>{};function i(d){}o.assertIs=i;function l(d){throw Error()}o.assertNever=l,o.arrayToEnum=(d)=>{let m={};for(let k of d)m[k]=k;return m},o.getValidEnumValues=(d)=>{let m=o.objectKeys(d).filter((_)=>typeof d[d[_]]!=="number"),k={};for(let _ of m)k[_]=d[_];return o.objectValues(k)},o.objectValues=(d)=>o.objectKeys(d).map(function(m){return d[m]}),o.objectKeys=typeof Object.keys==="function"?(d)=>Object.keys(d):(d)=>{let m=[];for(let k in d)if(Object.prototype.hasOwnProperty.call(d,k))m.push(k);return m},o.find=(d,m)=>{for(let k of d)if(m(k))return k;return},o.isInteger=typeof Number.isInteger==="function"?(d)=>Number.isInteger(d):(d)=>typeof d==="number"&&Number.isFinite(d)&&Math.floor(d)===d;function u(d,m=" | "){return d.map((k)=>typeof k==="string"?`'${k}'`:k).join(m)}o.joinValues=u,o.jsonStringifyReplacer=(d,m)=>{if(typeof m==="bigint")return m.toString();return m}})(J||(J={}));var ra;(function(o){o.mergeShapes=(i,l)=>({...i,...l})})(ra||(ra={}));var M=J.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ot=(o)=>{switch(typeof o){case"undefined":return M.undefined;case"string":return M.string;case"number":return Number.isNaN(o)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":if(Array.isArray(o))return M.array;if(o===null)return M.null;if(o.then&&typeof o.then==="function"&&o.catch&&typeof o.catch==="function")return M.promise;if(typeof Map<"u"&&o instanceof Map)return M.map;if(typeof Set<"u"&&o instanceof Set)return M.set;if(typeof Date<"u"&&o instanceof Date)return M.date;return M.object;default:return M.unknown}};var se=J.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Le extends Error{get errors(){return this.issues}constructor(o){super();this.issues=[],this.addIssue=(l)=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};let i=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,i);else this.__proto__=i;this.name="ZodError",this.issues=o}format(o){let i=o||function(d){return d.message},l={_errors:[]},u=(d)=>{for(let m of d.issues)if(m.code==="invalid_union")m.unionErrors.map(u);else if(m.code==="invalid_return_type")u(m.returnTypeError);else if(m.code==="invalid_arguments")u(m.argumentsError);else if(m.path.length===0)l._errors.push(i(m));else{let k=l,_=0;while(_<m.path.length){let x=m.path[_];if(_!==m.path.length-1)k[x]=k[x]||{_errors:[]};else k[x]=k[x]||{_errors:[]},k[x]._errors.push(i(m));k=k[x],_++}}};return u(this),l}static assert(o){if(!(o instanceof Le))throw Error(`Not a ZodError: ${o}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,J.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(o=(i)=>i.message){let i={},l=[];for(let u of this.issues)if(u.path.length>0){let d=u.path[0];i[d]=i[d]||[],i[d].push(o(u))}else l.push(o(u));return{formErrors:l,fieldErrors:i}}get formErrors(){return this.flatten()}}Le.create=(o)=>new Le(o);var Yf=(o,i)=>{let l;switch(o.code){case se.invalid_type:if(o.received===M.undefined)l="Required";else l=`Expected ${o.expected}, received ${o.received}`;break;case se.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(o.expected,J.jsonStringifyReplacer)}`;break;case se.unrecognized_keys:l=`Unrecognized key(s) in object: ${J.joinValues(o.keys,", ")}`;break;case se.invalid_union:l="Invalid input";break;case se.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${J.joinValues(o.options)}`;break;case se.invalid_enum_value:l=`Invalid enum value. Expected ${J.joinValues(o.options)}, received '${o.received}'`;break;case se.invalid_arguments:l="Invalid function arguments";break;case se.invalid_return_type:l="Invalid function return type";break;case se.invalid_date:l="Invalid date";break;case se.invalid_string:if(typeof o.validation==="object")if("includes"in o.validation){if(l=`Invalid input: must include "${o.validation.includes}"`,typeof o.validation.position==="number")l=`${l} at one or more positions greater than or equal to ${o.validation.position}`}else if("startsWith"in o.validation)l=`Invalid input: must start with "${o.validation.startsWith}"`;else if("endsWith"in o.validation)l=`Invalid input: must end with "${o.validation.endsWith}"`;else J.assertNever(o.validation);else if(o.validation!=="regex")l=`Invalid ${o.validation}`;else l="Invalid";break;case se.too_small:if(o.type==="array")l=`Array must contain ${o.exact?"exactly":o.inclusive?"at least":"more than"} ${o.minimum} element(s)`;else if(o.type==="string")l=`String must contain ${o.exact?"exactly":o.inclusive?"at least":"over"} ${o.minimum} character(s)`;else if(o.type==="number")l=`Number must be ${o.exact?"exactly equal to ":o.inclusive?"greater than or equal to ":"greater than "}${o.minimum}`;else if(o.type==="bigint")l=`Number must be ${o.exact?"exactly equal to ":o.inclusive?"greater than or equal to ":"greater than "}${o.minimum}`;else if(o.type==="date")l=`Date must be ${o.exact?"exactly equal to ":o.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(o.minimum))}`;else l="Invalid input";break;case se.too_big:if(o.type==="array")l=`Array must contain ${o.exact?"exactly":o.inclusive?"at most":"less than"} ${o.maximum} element(s)`;else if(o.type==="string")l=`String must contain ${o.exact?"exactly":o.inclusive?"at most":"under"} ${o.maximum} character(s)`;else if(o.type==="number")l=`Number must be ${o.exact?"exactly":o.inclusive?"less than or equal to":"less than"} ${o.maximum}`;else if(o.type==="bigint")l=`BigInt must be ${o.exact?"exactly":o.inclusive?"less than or equal to":"less than"} ${o.maximum}`;else if(o.type==="date")l=`Date must be ${o.exact?"exactly":o.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(o.maximum))}`;else l="Invalid input";break;case se.custom:l="Invalid input";break;case se.invalid_intersection_types:l="Intersection results could not be merged";break;case se.not_multiple_of:l=`Number must be a multiple of ${o.multipleOf}`;break;case se.not_finite:l="Number must be finite";break;default:l=i.defaultError,J.assertNever(o)}return{message:l}},mt=Yf;var Kf=mt;function ln(){return Kf}var Wn=(o)=>{let{data:i,path:l,errorMaps:u,issueData:d}=o,m=[...l,...d.path||[]],k={...d,path:m};if(d.message!==void 0)return{...d,path:m,message:d.message};let _="",x=u.filter((v)=>!!v).slice().reverse();for(let v of x)_=v(k,{data:i,defaultError:_}).message;return{...d,path:m,message:_}};function C(o,i){let l=ln(),u=Wn({issueData:i,data:o.data,path:o.path,errorMaps:[o.common.contextualErrorMap,o.schemaErrorMap,l,l===mt?void 0:mt].filter((d)=>!!d)});o.common.issues.push(u)}class Se{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(o,i){let l=[];for(let u of i){if(u.status==="aborted")return q;if(u.status==="dirty")o.dirty();l.push(u.value)}return{status:o.value,value:l}}static async mergeObjectAsync(o,i){let l=[];for(let u of i){let d=await u.key,m=await u.value;l.push({key:d,value:m})}return Se.mergeObjectSync(o,l)}static mergeObjectSync(o,i){let l={};for(let u of i){let{key:d,value:m}=u;if(d.status==="aborted")return q;if(m.status==="aborted")return q;if(d.status==="dirty")o.dirty();if(m.status==="dirty")o.dirty();if(d.value!=="__proto__"&&(typeof m.value<"u"||u.alwaysSet))l[d.value]=m.value}return{status:o.value,value:l}}}var q=Object.freeze({status:"aborted"}),Mt=(o)=>({status:"dirty",value:o}),$e=(o)=>({status:"valid",value:o}),Qr=(o)=>o.status==="aborted",eo=(o)=>o.status==="dirty",vt=(o)=>o.status==="valid",un=(o)=>typeof Promise<"u"&&o instanceof Promise;var N;(function(o){o.errToObj=(i)=>typeof i==="string"?{message:i}:i||{},o.toString=(i)=>typeof i==="string"?i:i?.message})(N||(N={}));class Be{constructor(o,i,l,u){this._cachedPath=[],this.parent=o,this.data=i,this._path=l,this._key=u}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var oa=(o,i)=>{if(vt(i))return{success:!0,data:i.value};else{if(!o.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let l=new Le(o.common.issues);return this._error=l,this._error}}}};function U(o){if(!o)return{};let{errorMap:i,invalid_type_error:l,required_error:u,description:d}=o;if(i&&(l||u))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(i)return{errorMap:i,description:d};return{errorMap:(k,_)=>{let{message:x}=o;if(k.code==="invalid_enum_value")return{message:x??_.defaultError};if(typeof _.data>"u")return{message:x??u??_.defaultError};if(k.code!=="invalid_type")return{message:_.defaultError};return{message:x??l??_.defaultError}},description:d}}class G{get description(){return this._def.description}_getType(o){return ot(o.data)}_getOrReturnCtx(o,i){return i||{common:o.parent.common,data:o.data,parsedType:ot(o.data),schemaErrorMap:this._def.errorMap,path:o.path,parent:o.parent}}_processInputParams(o){return{status:new Se,ctx:{common:o.parent.common,data:o.data,parsedType:ot(o.data),schemaErrorMap:this._def.errorMap,path:o.path,parent:o.parent}}}_parseSync(o){let i=this._parse(o);if(un(i))throw Error("Synchronous parse encountered promise.");return i}_parseAsync(o){let i=this._parse(o);return Promise.resolve(i)}parse(o,i){let l=this.safeParse(o,i);if(l.success)return l.data;throw l.error}safeParse(o,i){let l={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:o,parsedType:ot(o)},u=this._parseSync({data:o,path:l.path,parent:l});return oa(l,u)}"~validate"(o){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:o,parsedType:ot(o)};if(!this["~standard"].async)try{let l=this._parseSync({data:o,path:[],parent:i});return vt(l)?{value:l.value}:{issues:i.common.issues}}catch(l){if(l?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;i.common={issues:[],async:!0}}return this._parseAsync({data:o,path:[],parent:i}).then((l)=>vt(l)?{value:l.value}:{issues:i.common.issues})}async parseAsync(o,i){let l=await this.safeParseAsync(o,i);if(l.success)return l.data;throw l.error}async safeParseAsync(o,i){let l={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:o,parsedType:ot(o)},u=this._parse({data:o,path:l.path,parent:l}),d=await(un(u)?u:Promise.resolve(u));return oa(l,d)}refine(o,i){let l=(u)=>{if(typeof i==="string"||typeof i>"u")return{message:i};else if(typeof i==="function")return i(u);else return i};return this._refinement((u,d)=>{let m=o(u),k=()=>d.addIssue({code:se.custom,...l(u)});if(typeof Promise<"u"&&m instanceof Promise)return m.then((_)=>{if(!_)return k(),!1;else return!0});if(!m)return k(),!1;else return!0})}refinement(o,i){return this._refinement((l,u)=>{if(!o(l))return u.addIssue(typeof i==="function"?i(l,u):i),!1;else return!0})}_refinement(o){return new Qe({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:o}})}superRefine(o){return this._refinement(o)}constructor(o){this.spa=this.safeParseAsync,this._def=o,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(i)=>this["~validate"](i)}}optional(){return Je.create(this,this._def)}nullable(){return ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return He.create(this)}promise(){return Dt.create(this,this._def)}or(o){return fn.create([this,o],this._def)}and(o){return yn.create(this,o,this._def)}transform(o){return new Qe({...U(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:o}})}default(o){let i=typeof o==="function"?o:()=>o;return new bn({...U(this._def),innerType:this,defaultValue:i,typeName:ye.ZodDefault})}brand(){return new oo({typeName:ye.ZodBranded,type:this,...U(this._def)})}catch(o){let i=typeof o==="function"?o:()=>o;return new _n({...U(this._def),innerType:this,catchValue:i,typeName:ye.ZodCatch})}describe(o){return new this.constructor({...this._def,description:o})}pipe(o){return Qn.create(this,o)}readonly(){return xn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var Ff=/^c[^\s-]{8,}$/i,Vf=/^[0-9a-z]+$/,Wf=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Zf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Uf=/^[a-z0-9_-]{21}$/i,Xf=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Gf=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Hf=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Jf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",to,Qf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ey=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ty=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ny=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ry=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,aa="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",iy=new RegExp(`^${aa}$`);function sa(o){let i="[0-5]\\d";if(o.precision)i=`${i}\\.\\d{${o.precision}}`;else if(o.precision==null)i=`${i}(\\.\\d+)?`;let l=o.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${i})${l}`}function ay(o){return new RegExp(`^${sa(o)}$`)}function sy(o){let i=`${aa}T${sa(o)}`,l=[];if(l.push(o.local?"Z?":"Z"),o.offset)l.push("([+-]\\d{2}:?\\d{2})");return i=`${i}(${l.join("|")})`,new RegExp(`^${i}$`)}function ly(o,i){if((i==="v4"||!i)&&Qf.test(o))return!0;if((i==="v6"||!i)&&ty.test(o))return!0;return!1}function uy(o,i){if(!Xf.test(o))return!1;try{let[l]=o.split(".");if(!l)return!1;let u=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),d=JSON.parse(atob(u));if(typeof d!=="object"||d===null)return!1;if("typ"in d&&d?.typ!=="JWT")return!1;if(!d.alg)return!1;if(i&&d.alg!==i)return!1;return!0}catch{return!1}}function dy(o,i){if((i==="v4"||!i)&&ey.test(o))return!0;if((i==="v6"||!i)&&ny.test(o))return!0;return!1}class at extends G{_parse(o){if(this._def.coerce)o.data=String(o.data);if(this._getType(o)!==M.string){let d=this._getOrReturnCtx(o);return C(d,{code:se.invalid_type,expected:M.string,received:d.parsedType}),q}let l=new Se,u=void 0;for(let d of this._def.checks)if(d.kind==="min"){if(o.data.length<d.value)u=this._getOrReturnCtx(o,u),C(u,{code:se.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty()}else if(d.kind==="max"){if(o.data.length>d.value)u=this._getOrReturnCtx(o,u),C(u,{code:se.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty()}else if(d.kind==="length"){let m=o.data.length>d.value,k=o.data.length<d.value;if(m||k){if(u=this._getOrReturnCtx(o,u),m)C(u,{code:se.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message});else if(k)C(u,{code:se.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message});l.dirty()}}else if(d.kind==="email"){if(!Hf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"email",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="emoji"){if(!to)to=new RegExp(Jf,"u");if(!to.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"emoji",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="uuid"){if(!Zf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"uuid",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="nanoid"){if(!Uf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"nanoid",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="cuid"){if(!Ff.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"cuid",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="cuid2"){if(!Vf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"cuid2",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="ulid"){if(!Wf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"ulid",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="url")try{new URL(o.data)}catch{u=this._getOrReturnCtx(o,u),C(u,{validation:"url",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="regex"){if(d.regex.lastIndex=0,!d.regex.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"regex",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="trim")o.data=o.data.trim();else if(d.kind==="includes"){if(!o.data.includes(d.value,d.position))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),l.dirty()}else if(d.kind==="toLowerCase")o.data=o.data.toLowerCase();else if(d.kind==="toUpperCase")o.data=o.data.toUpperCase();else if(d.kind==="startsWith"){if(!o.data.startsWith(d.value))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()}else if(d.kind==="endsWith"){if(!o.data.endsWith(d.value))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()}else if(d.kind==="datetime"){if(!sy(d).test(o.data))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:"datetime",message:d.message}),l.dirty()}else if(d.kind==="date"){if(!iy.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:"date",message:d.message}),l.dirty()}else if(d.kind==="time"){if(!ay(d).test(o.data))u=this._getOrReturnCtx(o,u),C(u,{code:se.invalid_string,validation:"time",message:d.message}),l.dirty()}else if(d.kind==="duration"){if(!Gf.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"duration",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="ip"){if(!ly(o.data,d.version))u=this._getOrReturnCtx(o,u),C(u,{validation:"ip",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="jwt"){if(!uy(o.data,d.alg))u=this._getOrReturnCtx(o,u),C(u,{validation:"jwt",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="cidr"){if(!dy(o.data,d.version))u=this._getOrReturnCtx(o,u),C(u,{validation:"cidr",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="base64"){if(!ry.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"base64",code:se.invalid_string,message:d.message}),l.dirty()}else if(d.kind==="base64url"){if(!oy.test(o.data))u=this._getOrReturnCtx(o,u),C(u,{validation:"base64url",code:se.invalid_string,message:d.message}),l.dirty()}else J.assertNever(d);return{status:l.value,value:o.data}}_regex(o,i,l){return this.refinement((u)=>o.test(u),{validation:i,code:se.invalid_string,...N.errToObj(l)})}_addCheck(o){return new at({...this._def,checks:[...this._def.checks,o]})}email(o){return this._addCheck({kind:"email",...N.errToObj(o)})}url(o){return this._addCheck({kind:"url",...N.errToObj(o)})}emoji(o){return this._addCheck({kind:"emoji",...N.errToObj(o)})}uuid(o){return this._addCheck({kind:"uuid",...N.errToObj(o)})}nanoid(o){return this._addCheck({kind:"nanoid",...N.errToObj(o)})}cuid(o){return this._addCheck({kind:"cuid",...N.errToObj(o)})}cuid2(o){return this._addCheck({kind:"cuid2",...N.errToObj(o)})}ulid(o){return this._addCheck({kind:"ulid",...N.errToObj(o)})}base64(o){return this._addCheck({kind:"base64",...N.errToObj(o)})}base64url(o){return this._addCheck({kind:"base64url",...N.errToObj(o)})}jwt(o){return this._addCheck({kind:"jwt",...N.errToObj(o)})}ip(o){return this._addCheck({kind:"ip",...N.errToObj(o)})}cidr(o){return this._addCheck({kind:"cidr",...N.errToObj(o)})}datetime(o){if(typeof o==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:o});return this._addCheck({kind:"datetime",precision:typeof o?.precision>"u"?null:o?.precision,offset:o?.offset??!1,local:o?.local??!1,...N.errToObj(o?.message)})}date(o){return this._addCheck({kind:"date",message:o})}time(o){if(typeof o==="string")return this._addCheck({kind:"time",precision:null,message:o});return this._addCheck({kind:"time",precision:typeof o?.precision>"u"?null:o?.precision,...N.errToObj(o?.message)})}duration(o){return this._addCheck({kind:"duration",...N.errToObj(o)})}regex(o,i){return this._addCheck({kind:"regex",regex:o,...N.errToObj(i)})}includes(o,i){return this._addCheck({kind:"includes",value:o,position:i?.position,...N.errToObj(i?.message)})}startsWith(o,i){return this._addCheck({kind:"startsWith",value:o,...N.errToObj(i)})}endsWith(o,i){return this._addCheck({kind:"endsWith",value:o,...N.errToObj(i)})}min(o,i){return this._addCheck({kind:"min",value:o,...N.errToObj(i)})}max(o,i){return this._addCheck({kind:"max",value:o,...N.errToObj(i)})}length(o,i){return this._addCheck({kind:"length",value:o,...N.errToObj(i)})}nonempty(o){return this.min(1,N.errToObj(o))}trim(){return new at({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new at({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new at({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((o)=>o.kind==="datetime")}get isDate(){return!!this._def.checks.find((o)=>o.kind==="date")}get isTime(){return!!this._def.checks.find((o)=>o.kind==="time")}get isDuration(){return!!this._def.checks.find((o)=>o.kind==="duration")}get isEmail(){return!!this._def.checks.find((o)=>o.kind==="email")}get isURL(){return!!this._def.checks.find((o)=>o.kind==="url")}get isEmoji(){return!!this._def.checks.find((o)=>o.kind==="emoji")}get isUUID(){return!!this._def.checks.find((o)=>o.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((o)=>o.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((o)=>o.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((o)=>o.kind==="cuid2")}get isULID(){return!!this._def.checks.find((o)=>o.kind==="ulid")}get isIP(){return!!this._def.checks.find((o)=>o.kind==="ip")}get isCIDR(){return!!this._def.checks.find((o)=>o.kind==="cidr")}get isBase64(){return!!this._def.checks.find((o)=>o.kind==="base64")}get isBase64url(){return!!this._def.checks.find((o)=>o.kind==="base64url")}get minLength(){let o=null;for(let i of this._def.checks)if(i.kind==="min"){if(o===null||i.value>o)o=i.value}return o}get maxLength(){let o=null;for(let i of this._def.checks)if(i.kind==="max"){if(o===null||i.value<o)o=i.value}return o}}at.create=(o)=>new at({checks:[],typeName:ye.ZodString,coerce:o?.coerce??!1,...U(o)});function cy(o,i){let l=(o.toString().split(".")[1]||"").length,u=(i.toString().split(".")[1]||"").length,d=l>u?l:u,m=Number.parseInt(o.toFixed(d).replace(".","")),k=Number.parseInt(i.toFixed(d).replace(".",""));return m%k/10**d}class Nt extends G{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(o){if(this._def.coerce)o.data=Number(o.data);if(this._getType(o)!==M.number){let d=this._getOrReturnCtx(o);return C(d,{code:se.invalid_type,expected:M.number,received:d.parsedType}),q}let l=void 0,u=new Se;for(let d of this._def.checks)if(d.kind==="int"){if(!J.isInteger(o.data))l=this._getOrReturnCtx(o,l),C(l,{code:se.invalid_type,expected:"integer",received:"float",message:d.message}),u.dirty()}else if(d.kind==="min"){if(d.inclusive?o.data<d.value:o.data<=d.value)l=this._getOrReturnCtx(o,l),C(l,{code:se.too_small,minimum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),u.dirty()}else if(d.kind==="max"){if(d.inclusive?o.data>d.value:o.data>=d.value)l=this._getOrReturnCtx(o,l),C(l,{code:se.too_big,maximum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),u.dirty()}else if(d.kind==="multipleOf"){if(cy(o.data,d.value)!==0)l=this._getOrReturnCtx(o,l),C(l,{code:se.not_multiple_of,multipleOf:d.value,message:d.message}),u.dirty()}else if(d.kind==="finite"){if(!Number.isFinite(o.data))l=this._getOrReturnCtx(o,l),C(l,{code:se.not_finite,message:d.message}),u.dirty()}else J.assertNever(d);return{status:u.value,value:o.data}}gte(o,i){return this.setLimit("min",o,!0,N.toString(i))}gt(o,i){return this.setLimit("min",o,!1,N.toString(i))}lte(o,i){return this.setLimit("max",o,!0,N.toString(i))}lt(o,i){return this.setLimit("max",o,!1,N.toString(i))}setLimit(o,i,l,u){return new Nt({...this._def,checks:[...this._def.checks,{kind:o,value:i,inclusive:l,message:N.toString(u)}]})}_addCheck(o){return new Nt({...this._def,checks:[...this._def.checks,o]})}int(o){return this._addCheck({kind:"int",message:N.toString(o)})}positive(o){return this._addCheck({kind:"min",value:0,inclusive:!1,message:N.toString(o)})}negative(o){return this._addCheck({kind:"max",value:0,inclusive:!1,message:N.toString(o)})}nonpositive(o){return this._addCheck({kind:"max",value:0,inclusive:!0,message:N.toString(o)})}nonnegative(o){return this._addCheck({kind:"min",value:0,inclusive:!0,message:N.toString(o)})}multipleOf(o,i){return this._addCheck({kind:"multipleOf",value:o,message:N.toString(i)})}finite(o){return this._addCheck({kind:"finite",message:N.toString(o)})}safe(o){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:N.toString(o)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:N.toString(o)})}get minValue(){let o=null;for(let i of this._def.checks)if(i.kind==="min"){if(o===null||i.value>o)o=i.value}return o}get maxValue(){let o=null;for(let i of this._def.checks)if(i.kind==="max"){if(o===null||i.value<o)o=i.value}return o}get isInt(){return!!this._def.checks.find((o)=>o.kind==="int"||o.kind==="multipleOf"&&J.isInteger(o.value))}get isFinite(){let o=null,i=null;for(let l of this._def.checks)if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;else if(l.kind==="min"){if(i===null||l.value>i)i=l.value}else if(l.kind==="max"){if(o===null||l.value<o)o=l.value}return Number.isFinite(i)&&Number.isFinite(o)}}Nt.create=(o)=>new Nt({checks:[],typeName:ye.ZodNumber,coerce:o?.coerce||!1,...U(o)});class Lt extends G{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(o){if(this._def.coerce)try{o.data=BigInt(o.data)}catch{return this._getInvalidInput(o)}if(this._getType(o)!==M.bigint)return this._getInvalidInput(o);let l=void 0,u=new Se;for(let d of this._def.checks)if(d.kind==="min"){if(d.inclusive?o.data<d.value:o.data<=d.value)l=this._getOrReturnCtx(o,l),C(l,{code:se.too_small,type:"bigint",minimum:d.value,inclusive:d.inclusive,message:d.message}),u.dirty()}else if(d.kind==="max"){if(d.inclusive?o.data>d.value:o.data>=d.value)l=this._getOrReturnCtx(o,l),C(l,{code:se.too_big,type:"bigint",maximum:d.value,inclusive:d.inclusive,message:d.message}),u.dirty()}else if(d.kind==="multipleOf"){if(o.data%d.value!==BigInt(0))l=this._getOrReturnCtx(o,l),C(l,{code:se.not_multiple_of,multipleOf:d.value,message:d.message}),u.dirty()}else J.assertNever(d);return{status:u.value,value:o.data}}_getInvalidInput(o){let i=this._getOrReturnCtx(o);return C(i,{code:se.invalid_type,expected:M.bigint,received:i.parsedType}),q}gte(o,i){return this.setLimit("min",o,!0,N.toString(i))}gt(o,i){return this.setLimit("min",o,!1,N.toString(i))}lte(o,i){return this.setLimit("max",o,!0,N.toString(i))}lt(o,i){return this.setLimit("max",o,!1,N.toString(i))}setLimit(o,i,l,u){return new Lt({...this._def,checks:[...this._def.checks,{kind:o,value:i,inclusive:l,message:N.toString(u)}]})}_addCheck(o){return new Lt({...this._def,checks:[...this._def.checks,o]})}positive(o){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:N.toString(o)})}negative(o){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:N.toString(o)})}nonpositive(o){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:N.toString(o)})}nonnegative(o){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:N.toString(o)})}multipleOf(o,i){return this._addCheck({kind:"multipleOf",value:o,message:N.toString(i)})}get minValue(){let o=null;for(let i of this._def.checks)if(i.kind==="min"){if(o===null||i.value>o)o=i.value}return o}get maxValue(){let o=null;for(let i of this._def.checks)if(i.kind==="max"){if(o===null||i.value<o)o=i.value}return o}}Lt.create=(o)=>new Lt({checks:[],typeName:ye.ZodBigInt,coerce:o?.coerce??!1,...U(o)});class Zn extends G{_parse(o){if(this._def.coerce)o.data=Boolean(o.data);if(this._getType(o)!==M.boolean){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.boolean,received:l.parsedType}),q}return $e(o.data)}}Zn.create=(o)=>new Zn({typeName:ye.ZodBoolean,coerce:o?.coerce||!1,...U(o)});class cn extends G{_parse(o){if(this._def.coerce)o.data=new Date(o.data);if(this._getType(o)!==M.date){let d=this._getOrReturnCtx(o);return C(d,{code:se.invalid_type,expected:M.date,received:d.parsedType}),q}if(Number.isNaN(o.data.getTime())){let d=this._getOrReturnCtx(o);return C(d,{code:se.invalid_date}),q}let l=new Se,u=void 0;for(let d of this._def.checks)if(d.kind==="min"){if(o.data.getTime()<d.value)u=this._getOrReturnCtx(o,u),C(u,{code:se.too_small,message:d.message,inclusive:!0,exact:!1,minimum:d.value,type:"date"}),l.dirty()}else if(d.kind==="max"){if(o.data.getTime()>d.value)u=this._getOrReturnCtx(o,u),C(u,{code:se.too_big,message:d.message,inclusive:!0,exact:!1,maximum:d.value,type:"date"}),l.dirty()}else J.assertNever(d);return{status:l.value,value:new Date(o.data.getTime())}}_addCheck(o){return new cn({...this._def,checks:[...this._def.checks,o]})}min(o,i){return this._addCheck({kind:"min",value:o.getTime(),message:N.toString(i)})}max(o,i){return this._addCheck({kind:"max",value:o.getTime(),message:N.toString(i)})}get minDate(){let o=null;for(let i of this._def.checks)if(i.kind==="min"){if(o===null||i.value>o)o=i.value}return o!=null?new Date(o):null}get maxDate(){let o=null;for(let i of this._def.checks)if(i.kind==="max"){if(o===null||i.value<o)o=i.value}return o!=null?new Date(o):null}}cn.create=(o)=>new cn({checks:[],coerce:o?.coerce||!1,typeName:ye.ZodDate,...U(o)});class Un extends G{_parse(o){if(this._getType(o)!==M.symbol){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.symbol,received:l.parsedType}),q}return $e(o.data)}}Un.create=(o)=>new Un({typeName:ye.ZodSymbol,...U(o)});class pn extends G{_parse(o){if(this._getType(o)!==M.undefined){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.undefined,received:l.parsedType}),q}return $e(o.data)}}pn.create=(o)=>new pn({typeName:ye.ZodUndefined,...U(o)});class mn extends G{_parse(o){if(this._getType(o)!==M.null){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.null,received:l.parsedType}),q}return $e(o.data)}}mn.create=(o)=>new mn({typeName:ye.ZodNull,...U(o)});class qt extends G{constructor(){super(...arguments);this._any=!0}_parse(o){return $e(o.data)}}qt.create=(o)=>new qt({typeName:ye.ZodAny,...U(o)});class Tt extends G{constructor(){super(...arguments);this._unknown=!0}_parse(o){return $e(o.data)}}Tt.create=(o)=>new Tt({typeName:ye.ZodUnknown,...U(o)});class st extends G{_parse(o){let i=this._getOrReturnCtx(o);return C(i,{code:se.invalid_type,expected:M.never,received:i.parsedType}),q}}st.create=(o)=>new st({typeName:ye.ZodNever,...U(o)});class Xn extends G{_parse(o){if(this._getType(o)!==M.undefined){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.void,received:l.parsedType}),q}return $e(o.data)}}Xn.create=(o)=>new Xn({typeName:ye.ZodVoid,...U(o)});class He extends G{_parse(o){let{ctx:i,status:l}=this._processInputParams(o),u=this._def;if(i.parsedType!==M.array)return C(i,{code:se.invalid_type,expected:M.array,received:i.parsedType}),q;if(u.exactLength!==null){let m=i.data.length>u.exactLength.value,k=i.data.length<u.exactLength.value;if(m||k)C(i,{code:m?se.too_big:se.too_small,minimum:k?u.exactLength.value:void 0,maximum:m?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),l.dirty()}if(u.minLength!==null){if(i.data.length<u.minLength.value)C(i,{code:se.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),l.dirty()}if(u.maxLength!==null){if(i.data.length>u.maxLength.value)C(i,{code:se.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),l.dirty()}if(i.common.async)return Promise.all([...i.data].map((m,k)=>u.type._parseAsync(new Be(i,m,i.path,k)))).then((m)=>Se.mergeArray(l,m));let d=[...i.data].map((m,k)=>u.type._parseSync(new Be(i,m,i.path,k)));return Se.mergeArray(l,d)}get element(){return this._def.type}min(o,i){return new He({...this._def,minLength:{value:o,message:N.toString(i)}})}max(o,i){return new He({...this._def,maxLength:{value:o,message:N.toString(i)}})}length(o,i){return new He({...this._def,exactLength:{value:o,message:N.toString(i)}})}nonempty(o){return this.min(1,o)}}He.create=(o,i)=>new He({type:o,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,...U(i)});function jt(o){if(o instanceof me){let i={};for(let l in o.shape){let u=o.shape[l];i[l]=Je.create(jt(u))}return new me({...o._def,shape:()=>i})}else if(o instanceof He)return new He({...o._def,type:jt(o.element)});else if(o instanceof Je)return Je.create(jt(o.unwrap()));else if(o instanceof ft)return ft.create(jt(o.unwrap()));else if(o instanceof lt)return lt.create(o.items.map((i)=>jt(i)));else return o}class me extends G{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let o=this._def.shape(),i=J.objectKeys(o);return this._cached={shape:o,keys:i},this._cached}_parse(o){if(this._getType(o)!==M.object){let x=this._getOrReturnCtx(o);return C(x,{code:se.invalid_type,expected:M.object,received:x.parsedType}),q}let{status:l,ctx:u}=this._processInputParams(o),{shape:d,keys:m}=this._getCached(),k=[];if(!(this._def.catchall instanceof st&&this._def.unknownKeys==="strip")){for(let x in u.data)if(!m.includes(x))k.push(x)}let _=[];for(let x of m){let v=d[x],T=u.data[x];_.push({key:{status:"valid",value:x},value:v._parse(new Be(u,T,u.path,x)),alwaysSet:x in u.data})}if(this._def.catchall instanceof st){let x=this._def.unknownKeys;if(x==="passthrough")for(let v of k)_.push({key:{status:"valid",value:v},value:{status:"valid",value:u.data[v]}});else if(x==="strict"){if(k.length>0)C(u,{code:se.unrecognized_keys,keys:k}),l.dirty()}else if(x==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let x=this._def.catchall;for(let v of k){let T=u.data[v];_.push({key:{status:"valid",value:v},value:x._parse(new Be(u,T,u.path,v)),alwaysSet:v in u.data})}}if(u.common.async)return Promise.resolve().then(async()=>{let x=[];for(let v of _){let T=await v.key,R=await v.value;x.push({key:T,value:R,alwaysSet:v.alwaysSet})}return x}).then((x)=>Se.mergeObjectSync(l,x));else return Se.mergeObjectSync(l,_)}get shape(){return this._def.shape()}strict(o){return N.errToObj,new me({...this._def,unknownKeys:"strict",...o!==void 0?{errorMap:(i,l)=>{let u=this._def.errorMap?.(i,l).message??l.defaultError;if(i.code==="unrecognized_keys")return{message:N.errToObj(o).message??u};return{message:u}}}:{}})}strip(){return new me({...this._def,unknownKeys:"strip"})}passthrough(){return new me({...this._def,unknownKeys:"passthrough"})}extend(o){return new me({...this._def,shape:()=>({...this._def.shape(),...o})})}merge(o){return new me({unknownKeys:o._def.unknownKeys,catchall:o._def.catchall,shape:()=>({...this._def.shape(),...o._def.shape()}),typeName:ye.ZodObject})}setKey(o,i){return this.augment({[o]:i})}catchall(o){return new me({...this._def,catchall:o})}pick(o){let i={};for(let l of J.objectKeys(o))if(o[l]&&this.shape[l])i[l]=this.shape[l];return new me({...this._def,shape:()=>i})}omit(o){let i={};for(let l of J.objectKeys(this.shape))if(!o[l])i[l]=this.shape[l];return new me({...this._def,shape:()=>i})}deepPartial(){return jt(this)}partial(o){let i={};for(let l of J.objectKeys(this.shape)){let u=this.shape[l];if(o&&!o[l])i[l]=u;else i[l]=u.optional()}return new me({...this._def,shape:()=>i})}required(o){let i={};for(let l of J.objectKeys(this.shape))if(o&&!o[l])i[l]=this.shape[l];else{let d=this.shape[l];while(d instanceof Je)d=d._def.innerType;i[l]=d}return new me({...this._def,shape:()=>i})}keyof(){return la(J.objectKeys(this.shape))}}me.create=(o,i)=>new me({shape:()=>o,unknownKeys:"strip",catchall:st.create(),typeName:ye.ZodObject,...U(i)});me.strictCreate=(o,i)=>new me({shape:()=>o,unknownKeys:"strict",catchall:st.create(),typeName:ye.ZodObject,...U(i)});me.lazycreate=(o,i)=>new me({shape:o,unknownKeys:"strip",catchall:st.create(),typeName:ye.ZodObject,...U(i)});class fn extends G{_parse(o){let{ctx:i}=this._processInputParams(o),l=this._def.options;function u(d){for(let k of d)if(k.result.status==="valid")return k.result;for(let k of d)if(k.result.status==="dirty")return i.common.issues.push(...k.ctx.common.issues),k.result;let m=d.map((k)=>new Le(k.ctx.common.issues));return C(i,{code:se.invalid_union,unionErrors:m}),q}if(i.common.async)return Promise.all(l.map(async(d)=>{let m={...i,common:{...i.common,issues:[]},parent:null};return{result:await d._parseAsync({data:i.data,path:i.path,parent:m}),ctx:m}})).then(u);else{let d=void 0,m=[];for(let _ of l){let x={...i,common:{...i.common,issues:[]},parent:null},v=_._parseSync({data:i.data,path:i.path,parent:x});if(v.status==="valid")return v;else if(v.status==="dirty"&&!d)d={result:v,ctx:x};if(x.common.issues.length)m.push(x.common.issues)}if(d)return i.common.issues.push(...d.ctx.common.issues),d.result;let k=m.map((_)=>new Le(_));return C(i,{code:se.invalid_union,unionErrors:k}),q}}get options(){return this._def.options}}fn.create=(o,i)=>new fn({options:o,typeName:ye.ZodUnion,...U(i)});var it=(o)=>{if(o instanceof gn)return it(o.schema);else if(o instanceof Qe)return it(o.innerType());else if(o instanceof hn)return[o.value];else if(o instanceof Et)return o.options;else if(o instanceof kn)return J.objectValues(o.enum);else if(o instanceof bn)return it(o._def.innerType);else if(o instanceof pn)return[void 0];else if(o instanceof mn)return[null];else if(o instanceof Je)return[void 0,...it(o.unwrap())];else if(o instanceof ft)return[null,...it(o.unwrap())];else if(o instanceof oo)return it(o.unwrap());else if(o instanceof xn)return it(o.unwrap());else if(o instanceof _n)return it(o._def.innerType);else return[]};class ro extends G{_parse(o){let{ctx:i}=this._processInputParams(o);if(i.parsedType!==M.object)return C(i,{code:se.invalid_type,expected:M.object,received:i.parsedType}),q;let l=this.discriminator,u=i.data[l],d=this.optionsMap.get(u);if(!d)return C(i,{code:se.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[l]}),q;if(i.common.async)return d._parseAsync({data:i.data,path:i.path,parent:i});else return d._parseSync({data:i.data,path:i.path,parent:i})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(o,i,l){let u=new Map;for(let d of i){let m=it(d.shape[o]);if(!m.length)throw Error(`A discriminator value for key \`${o}\` could not be extracted from all schema options`);for(let k of m){if(u.has(k))throw Error(`Discriminator property ${String(o)} has duplicate value ${String(k)}`);u.set(k,d)}}return new ro({typeName:ye.ZodDiscriminatedUnion,discriminator:o,options:i,optionsMap:u,...U(l)})}}function no(o,i){let l=ot(o),u=ot(i);if(o===i)return{valid:!0,data:o};else if(l===M.object&&u===M.object){let d=J.objectKeys(i),m=J.objectKeys(o).filter((_)=>d.indexOf(_)!==-1),k={...o,...i};for(let _ of m){let x=no(o[_],i[_]);if(!x.valid)return{valid:!1};k[_]=x.data}return{valid:!0,data:k}}else if(l===M.array&&u===M.array){if(o.length!==i.length)return{valid:!1};let d=[];for(let m=0;m<o.length;m++){let k=o[m],_=i[m],x=no(k,_);if(!x.valid)return{valid:!1};d.push(x.data)}return{valid:!0,data:d}}else if(l===M.date&&u===M.date&&+o===+i)return{valid:!0,data:o};else return{valid:!1}}class yn extends G{_parse(o){let{status:i,ctx:l}=this._processInputParams(o),u=(d,m)=>{if(Qr(d)||Qr(m))return q;let k=no(d.value,m.value);if(!k.valid)return C(l,{code:se.invalid_intersection_types}),q;if(eo(d)||eo(m))i.dirty();return{status:i.value,value:k.data}};if(l.common.async)return Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([d,m])=>u(d,m));else return u(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}yn.create=(o,i,l)=>new yn({left:o,right:i,typeName:ye.ZodIntersection,...U(l)});class lt extends G{_parse(o){let{status:i,ctx:l}=this._processInputParams(o);if(l.parsedType!==M.array)return C(l,{code:se.invalid_type,expected:M.array,received:l.parsedType}),q;if(l.data.length<this._def.items.length)return C(l,{code:se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q;if(!this._def.rest&&l.data.length>this._def.items.length)C(l,{code:se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty();let d=[...l.data].map((m,k)=>{let _=this._def.items[k]||this._def.rest;if(!_)return null;return _._parse(new Be(l,m,l.path,k))}).filter((m)=>!!m);if(l.common.async)return Promise.all(d).then((m)=>Se.mergeArray(i,m));else return Se.mergeArray(i,d)}get items(){return this._def.items}rest(o){return new lt({...this._def,rest:o})}}lt.create=(o,i)=>{if(!Array.isArray(o))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new lt({items:o,typeName:ye.ZodTuple,rest:null,...U(i)})};class Gn extends G{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(o){let{status:i,ctx:l}=this._processInputParams(o);if(l.parsedType!==M.object)return C(l,{code:se.invalid_type,expected:M.object,received:l.parsedType}),q;let u=[],d=this._def.keyType,m=this._def.valueType;for(let k in l.data)u.push({key:d._parse(new Be(l,k,l.path,k)),value:m._parse(new Be(l,l.data[k],l.path,k)),alwaysSet:k in l.data});if(l.common.async)return Se.mergeObjectAsync(i,u);else return Se.mergeObjectSync(i,u)}get element(){return this._def.valueType}static create(o,i,l){if(i instanceof G)return new Gn({keyType:o,valueType:i,typeName:ye.ZodRecord,...U(l)});return new Gn({keyType:at.create(),valueType:o,typeName:ye.ZodRecord,...U(i)})}}class Hn extends G{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(o){let{status:i,ctx:l}=this._processInputParams(o);if(l.parsedType!==M.map)return C(l,{code:se.invalid_type,expected:M.map,received:l.parsedType}),q;let u=this._def.keyType,d=this._def.valueType,m=[...l.data.entries()].map(([k,_],x)=>({key:u._parse(new Be(l,k,l.path,[x,"key"])),value:d._parse(new Be(l,_,l.path,[x,"value"]))}));if(l.common.async){let k=new Map;return Promise.resolve().then(async()=>{for(let _ of m){let x=await _.key,v=await _.value;if(x.status==="aborted"||v.status==="aborted")return q;if(x.status==="dirty"||v.status==="dirty")i.dirty();k.set(x.value,v.value)}return{status:i.value,value:k}})}else{let k=new Map;for(let _ of m){let{key:x,value:v}=_;if(x.status==="aborted"||v.status==="aborted")return q;if(x.status==="dirty"||v.status==="dirty")i.dirty();k.set(x.value,v.value)}return{status:i.value,value:k}}}}Hn.create=(o,i,l)=>new Hn({valueType:i,keyType:o,typeName:ye.ZodMap,...U(l)});class zt extends G{_parse(o){let{status:i,ctx:l}=this._processInputParams(o);if(l.parsedType!==M.set)return C(l,{code:se.invalid_type,expected:M.set,received:l.parsedType}),q;let u=this._def;if(u.minSize!==null){if(l.data.size<u.minSize.value)C(l,{code:se.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),i.dirty()}if(u.maxSize!==null){if(l.data.size>u.maxSize.value)C(l,{code:se.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),i.dirty()}let d=this._def.valueType;function m(_){let x=new Set;for(let v of _){if(v.status==="aborted")return q;if(v.status==="dirty")i.dirty();x.add(v.value)}return{status:i.value,value:x}}let k=[...l.data.values()].map((_,x)=>d._parse(new Be(l,_,l.path,x)));if(l.common.async)return Promise.all(k).then((_)=>m(_));else return m(k)}min(o,i){return new zt({...this._def,minSize:{value:o,message:N.toString(i)}})}max(o,i){return new zt({...this._def,maxSize:{value:o,message:N.toString(i)}})}size(o,i){return this.min(o,i).max(o,i)}nonempty(o){return this.min(1,o)}}zt.create=(o,i)=>new zt({valueType:o,minSize:null,maxSize:null,typeName:ye.ZodSet,...U(i)});class dn extends G{constructor(){super(...arguments);this.validate=this.implement}_parse(o){let{ctx:i}=this._processInputParams(o);if(i.parsedType!==M.function)return C(i,{code:se.invalid_type,expected:M.function,received:i.parsedType}),q;function l(k,_){return Wn({data:k,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ln(),mt].filter((x)=>!!x),issueData:{code:se.invalid_arguments,argumentsError:_}})}function u(k,_){return Wn({data:k,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ln(),mt].filter((x)=>!!x),issueData:{code:se.invalid_return_type,returnTypeError:_}})}let d={errorMap:i.common.contextualErrorMap},m=i.data;if(this._def.returns instanceof Dt){let k=this;return $e(async function(..._){let x=new Le([]),v=await k._def.args.parseAsync(_,d).catch((O)=>{throw x.addIssue(l(_,O)),x}),T=await Reflect.apply(m,this,v);return await k._def.returns._def.type.parseAsync(T,d).catch((O)=>{throw x.addIssue(u(T,O)),x})})}else{let k=this;return $e(function(..._){let x=k._def.args.safeParse(_,d);if(!x.success)throw new Le([l(_,x.error)]);let v=Reflect.apply(m,this,x.data),T=k._def.returns.safeParse(v,d);if(!T.success)throw new Le([u(v,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...o){return new dn({...this._def,args:lt.create(o).rest(Tt.create())})}returns(o){return new dn({...this._def,returns:o})}implement(o){return this.parse(o)}strictImplement(o){return this.parse(o)}static create(o,i,l){return new dn({args:o?o:lt.create([]).rest(Tt.create()),returns:i||Tt.create(),typeName:ye.ZodFunction,...U(l)})}}class gn extends G{get schema(){return this._def.getter()}_parse(o){let{ctx:i}=this._processInputParams(o);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}gn.create=(o,i)=>new gn({getter:o,typeName:ye.ZodLazy,...U(i)});class hn extends G{_parse(o){if(o.data!==this._def.value){let i=this._getOrReturnCtx(o);return C(i,{received:i.data,code:se.invalid_literal,expected:this._def.value}),q}return{status:"valid",value:o.data}}get value(){return this._def.value}}hn.create=(o,i)=>new hn({value:o,typeName:ye.ZodLiteral,...U(i)});function la(o,i){return new Et({values:o,typeName:ye.ZodEnum,...U(i)})}class Et extends G{_parse(o){if(typeof o.data!=="string"){let i=this._getOrReturnCtx(o),l=this._def.values;return C(i,{expected:J.joinValues(l),received:i.parsedType,code:se.invalid_type}),q}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(o.data)){let i=this._getOrReturnCtx(o),l=this._def.values;return C(i,{received:i.data,code:se.invalid_enum_value,options:l}),q}return $e(o.data)}get options(){return this._def.values}get enum(){let o={};for(let i of this._def.values)o[i]=i;return o}get Values(){let o={};for(let i of this._def.values)o[i]=i;return o}get Enum(){let o={};for(let i of this._def.values)o[i]=i;return o}extract(o,i=this._def){return Et.create(o,{...this._def,...i})}exclude(o,i=this._def){return Et.create(this.options.filter((l)=>!o.includes(l)),{...this._def,...i})}}Et.create=la;class kn extends G{_parse(o){let i=J.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(o);if(l.parsedType!==M.string&&l.parsedType!==M.number){let u=J.objectValues(i);return C(l,{expected:J.joinValues(u),received:l.parsedType,code:se.invalid_type}),q}if(!this._cache)this._cache=new Set(J.getValidEnumValues(this._def.values));if(!this._cache.has(o.data)){let u=J.objectValues(i);return C(l,{received:l.data,code:se.invalid_enum_value,options:u}),q}return $e(o.data)}get enum(){return this._def.values}}kn.create=(o,i)=>new kn({values:o,typeName:ye.ZodNativeEnum,...U(i)});class Dt extends G{unwrap(){return this._def.type}_parse(o){let{ctx:i}=this._processInputParams(o);if(i.parsedType!==M.promise&&i.common.async===!1)return C(i,{code:se.invalid_type,expected:M.promise,received:i.parsedType}),q;let l=i.parsedType===M.promise?i.data:Promise.resolve(i.data);return $e(l.then((u)=>this._def.type.parseAsync(u,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Dt.create=(o,i)=>new Dt({type:o,typeName:ye.ZodPromise,...U(i)});class Qe extends G{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(o){let{status:i,ctx:l}=this._processInputParams(o),u=this._def.effect||null,d={addIssue:(m)=>{if(C(l,m),m.fatal)i.abort();else i.dirty()},get path(){return l.path}};if(d.addIssue=d.addIssue.bind(d),u.type==="preprocess"){let m=u.transform(l.data,d);if(l.common.async)return Promise.resolve(m).then(async(k)=>{if(i.value==="aborted")return q;let _=await this._def.schema._parseAsync({data:k,path:l.path,parent:l});if(_.status==="aborted")return q;if(_.status==="dirty")return Mt(_.value);if(i.value==="dirty")return Mt(_.value);return _});else{if(i.value==="aborted")return q;let k=this._def.schema._parseSync({data:m,path:l.path,parent:l});if(k.status==="aborted")return q;if(k.status==="dirty")return Mt(k.value);if(i.value==="dirty")return Mt(k.value);return k}}if(u.type==="refinement"){let m=(k)=>{let _=u.refinement(k,d);if(l.common.async)return Promise.resolve(_);if(_ instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return k};if(l.common.async===!1){let k=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(k.status==="aborted")return q;if(k.status==="dirty")i.dirty();return m(k.value),{status:i.value,value:k.value}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then((k)=>{if(k.status==="aborted")return q;if(k.status==="dirty")i.dirty();return m(k.value).then(()=>({status:i.value,value:k.value}))})}if(u.type==="transform")if(l.common.async===!1){let m=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!vt(m))return q;let k=u.transform(m.value,d);if(k instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:k}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then((m)=>{if(!vt(m))return q;return Promise.resolve(u.transform(m.value,d)).then((k)=>({status:i.value,value:k}))});J.assertNever(u)}}Qe.create=(o,i,l)=>new Qe({schema:o,typeName:ye.ZodEffects,effect:i,...U(l)});Qe.createWithPreprocess=(o,i,l)=>new Qe({schema:i,effect:{type:"preprocess",transform:o},typeName:ye.ZodEffects,...U(l)});class Je extends G{_parse(o){if(this._getType(o)===M.undefined)return $e(void 0);return this._def.innerType._parse(o)}unwrap(){return this._def.innerType}}Je.create=(o,i)=>new Je({innerType:o,typeName:ye.ZodOptional,...U(i)});class ft extends G{_parse(o){if(this._getType(o)===M.null)return $e(null);return this._def.innerType._parse(o)}unwrap(){return this._def.innerType}}ft.create=(o,i)=>new ft({innerType:o,typeName:ye.ZodNullable,...U(i)});class bn extends G{_parse(o){let{ctx:i}=this._processInputParams(o),l=i.data;if(i.parsedType===M.undefined)l=this._def.defaultValue();return this._def.innerType._parse({data:l,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}bn.create=(o,i)=>new bn({innerType:o,typeName:ye.ZodDefault,defaultValue:typeof i.default==="function"?i.default:()=>i.default,...U(i)});class _n extends G{_parse(o){let{ctx:i}=this._processInputParams(o),l={...i,common:{...i.common,issues:[]}},u=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});if(un(u))return u.then((d)=>({status:"valid",value:d.status==="valid"?d.value:this._def.catchValue({get error(){return new Le(l.common.issues)},input:l.data})}));else return{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Le(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}_n.create=(o,i)=>new _n({innerType:o,typeName:ye.ZodCatch,catchValue:typeof i.catch==="function"?i.catch:()=>i.catch,...U(i)});class Jn extends G{_parse(o){if(this._getType(o)!==M.nan){let l=this._getOrReturnCtx(o);return C(l,{code:se.invalid_type,expected:M.nan,received:l.parsedType}),q}return{status:"valid",value:o.data}}}Jn.create=(o)=>new Jn({typeName:ye.ZodNaN,...U(o)});var W0=Symbol("zod_brand");class oo extends G{_parse(o){let{ctx:i}=this._processInputParams(o),l=i.data;return this._def.type._parse({data:l,path:i.path,parent:i})}unwrap(){return this._def.type}}class Qn extends G{_parse(o){let{status:i,ctx:l}=this._processInputParams(o);if(l.common.async)return(async()=>{let d=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});if(d.status==="aborted")return q;if(d.status==="dirty")return i.dirty(),Mt(d.value);else return this._def.out._parseAsync({data:d.value,path:l.path,parent:l})})();else{let u=this._def.in._parseSync({data:l.data,path:l.path,parent:l});if(u.status==="aborted")return q;if(u.status==="dirty")return i.dirty(),{status:"dirty",value:u.value};else return this._def.out._parseSync({data:u.value,path:l.path,parent:l})}}static create(o,i){return new Qn({in:o,out:i,typeName:ye.ZodPipeline})}}class xn extends G{_parse(o){let i=this._def.innerType._parse(o),l=(u)=>{if(vt(u))u.value=Object.freeze(u.value);return u};return un(i)?i.then((u)=>l(u)):l(i)}unwrap(){return this._def.innerType}}xn.create=(o,i)=>new xn({innerType:o,typeName:ye.ZodReadonly,...U(i)});function ia(o,i){let l=typeof o==="function"?o(i):typeof o==="string"?{message:o}:o;return typeof l==="string"?{message:l}:l}function so(o,i={},l){if(o)return qt.create().superRefine((u,d)=>{let m=o(u);if(m instanceof Promise)return m.then((k)=>{if(!k){let _=ia(i,u),x=_.fatal??l??!0;d.addIssue({code:"custom",..._,fatal:x})}});if(!m){let k=ia(i,u),_=k.fatal??l??!0;d.addIssue({code:"custom",...k,fatal:_})}return});return qt.create()}var Z0={object:me.lazycreate},ye;(function(o){o.ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly"})(ye||(ye={}));var y=at.create,A=Nt.create,U0=Jn.create,X0=Lt.create,Z=Zn.create,G0=cn.create,H0=Un.create,J0=pn.create,Y3=mn.create,Q0=qt.create,hr=Tt.create,io=st.create,eE=Xn.create,z=He.create,{create:f,strictCreate:tE}=me,Ne=fn.create,cd=ro.create,nE=yn.create,rE=lt.create,kt=Gn.create,oE=Hn.create,iE=zt.create,aE=dn.create,Wr=gn.create,ee=hn.create,P=Et.create,sE=kn.create,lE=Dt.create,uE=Qe.create,dE=Je.create,cE=ft.create,J3=Qe.createWithPreprocess,pE=Qn.create;var py=q;var yoe=Object.freeze({status:"aborted"});function S(o,i,l){function u(_,x){var v;Object.defineProperty(_,"_zod",{value:_._zod??{},enumerable:!1}),(v=_._zod).traits??(v.traits=new Set),_._zod.traits.add(o),i(_,x);for(let T in k.prototype)if(!(T in _))Object.defineProperty(_,T,{value:k.prototype[T].bind(_)});_._zod.constr=k,_._zod.def=x}let d=l?.Parent??Object;class m extends d{}Object.defineProperty(m,"name",{value:o});function k(_){var x;let v=l?.Parent?new m:this;u(v,_),(x=v._zod).deferred??(x.deferred=[]);for(let T of v._zod.deferred)T();return v}return Object.defineProperty(k,"init",{value:u}),Object.defineProperty(k,Symbol.hasInstance,{value:(_)=>{if(l?.Parent&&_ instanceof l.Parent)return!0;return _?._zod?.traits?.has(o)}}),Object.defineProperty(k,"name",{value:o}),k}var gE=Symbol("zod_brand");class yt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var er={};function hu(o){if(o)Object.assign(er,o);return er}function Gz(o){let i=Object.values(o).filter((u)=>typeof u==="number");return Object.entries(o).filter(([u,d])=>i.indexOf(+u)===-1).map(([u,d])=>d)}function X3(o,i="|"){return o.map((l)=>Z3(l)).join(i)}function da(o,i){if(typeof i==="bigint")return i.toString();return i}function nr(o){return{get value(){{let l=o();return Object.defineProperty(this,"value",{value:l}),l}throw Error("cached value already set")}}}function ir(o){return o===null||o===void 0}function ar(o){let i=o.startsWith("^")?1:0,l=o.endsWith("$")?o.length-1:o.length;return o.slice(i,l)}function ca(o,i){let l=(o.toString().split(".")[1]||"").length,u=(i.toString().split(".")[1]||"").length,d=l>u?l:u,m=Number.parseInt(o.toFixed(d).replace(".","")),k=Number.parseInt(i.toFixed(d).replace(".",""));return m%k/10**d}function ne(o,i,l){Object.defineProperty(o,i,{get(){{let d=l();return o[i]=d,d}throw Error("cached value already set")},set(d){Object.defineProperty(o,i,{value:d})},configurable:!0})}function Pn(o,i,l){Object.defineProperty(o,i,{value:l,writable:!0,enumerable:!0,configurable:!0})}function Bt(o){return JSON.stringify(o)}var uo=Error.captureStackTrace?Error.captureStackTrace:(...o)=>{};function vn(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}var pa=nr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(o){return!1}});function En(o){if(vn(o)===!1)return!1;let i=o.constructor;if(i===void 0)return!0;let l=i.prototype;if(vn(l)===!1)return!1;if(Object.prototype.hasOwnProperty.call(l,"isPrototypeOf")===!1)return!1;return!0}var ma=new Set(["string","number","symbol"]);function St(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ut(o,i,l){let u=new o._zod.constr(i??o._zod.def);if(!i||l?.parent)u._zod.parent=o;return u}function j(o){let i=o;if(!i)return{};if(typeof i==="string")return{error:()=>i};if(i?.message!==void 0){if(i?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");i.error=i.message}if(delete i.message,typeof i.error==="string")return{...i,error:()=>i.error};return i}function Z3(o){if(typeof o==="bigint")return o.toString()+"n";if(typeof o==="string")return`"${o}"`;return`${o}`}function fa(o){return Object.keys(o).filter((i)=>o[i]._zod.optin==="optional"&&o[i]._zod.optout==="optional")}var ya={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function my(o,i){let l={},u=o._zod.def;for(let d in i){if(!(d in u.shape))throw Error(`Unrecognized key: "${d}"`);if(!i[d])continue;l[d]=u.shape[d]}return ut(o,{...o._zod.def,shape:l,checks:[]})}function fy(o,i){let l={...o._zod.def.shape},u=o._zod.def;for(let d in i){if(!(d in u.shape))throw Error(`Unrecognized key: "${d}"`);if(!i[d])continue;delete l[d]}return ut(o,{...o._zod.def,shape:l,checks:[]})}function yy(o,i){if(!En(i))throw Error("Invalid input to extend: expected a plain object");let l={...o._zod.def,get shape(){let u={...o._zod.def.shape,...i};return Pn(this,"shape",u),u},checks:[]};return ut(o,l)}function gy(o,i){return ut(o,{...o._zod.def,get shape(){let l={...o._zod.def.shape,...i._zod.def.shape};return Pn(this,"shape",l),l},catchall:i._zod.def.catchall,checks:[]})}function hy(o,i,l){let u=i._zod.def.shape,d={...u};if(l)for(let m in l){if(!(m in u))throw Error(`Unrecognized key: "${m}"`);if(!l[m])continue;d[m]=o?new o({type:"optional",innerType:u[m]}):u[m]}else for(let m in u)d[m]=o?new o({type:"optional",innerType:u[m]}):u[m];return ut(i,{...i._zod.def,shape:d,checks:[]})}function ky(o,i,l){let u=i._zod.def.shape,d={...u};if(l)for(let m in l){if(!(m in d))throw Error(`Unrecognized key: "${m}"`);if(!l[m])continue;d[m]=new o({type:"nonoptional",innerType:u[m]})}else for(let m in u)d[m]=new o({type:"nonoptional",innerType:u[m]});return ut(i,{...i._zod.def,shape:d,checks:[]})}function Yt(o,i=0){for(let l=i;l<o.issues.length;l++)if(o.issues[l]?.continue!==!0)return!0;return!1}function et(o,i){return i.map((l)=>{var u;return(u=l).path??(u.path=[]),l.path.unshift(o),l})}function tr(o){return typeof o==="string"?o:o?.message}function tt(o,i,l){let u={...o,path:o.path??[]};if(!o.message){let d=tr(o.inst?._zod.def?.error?.(o))??tr(i?.error?.(o))??tr(l.customError?.(o))??tr(l.localeError?.(o))??"Invalid input";u.message=d}if(delete u.inst,delete u.continue,!i?.reportInput)delete u.input;return u}function sr(o){if(Array.isArray(o))return"array";if(typeof o==="string")return"string";return"unknown"}function Kt(...o){let[i,l,u]=o;if(typeof i==="string")return{message:i,code:"custom",input:l,inst:u};return{...i}}var ga=(o,i)=>{o.name="$ZodError",Object.defineProperty(o,"_zod",{value:o._zod,enumerable:!1}),Object.defineProperty(o,"issues",{value:i,enumerable:!1}),Object.defineProperty(o,"message",{get(){return JSON.stringify(i,da,2)},enumerable:!0}),Object.defineProperty(o,"toString",{value:()=>o.message,enumerable:!1})},lr=S("$ZodError",ga),co=S("$ZodError",ga,{Parent:Error});function ha(o,i=(l)=>l.message){let l={},u=[];for(let d of o.issues)if(d.path.length>0)l[d.path[0]]=l[d.path[0]]||[],l[d.path[0]].push(i(d));else u.push(i(d));return{formErrors:u,fieldErrors:l}}function ka(o,i){let l=i||function(m){return m.message},u={_errors:[]},d=(m)=>{for(let k of m.issues)if(k.code==="invalid_union"&&k.errors.length)k.errors.map((_)=>d({issues:_}));else if(k.code==="invalid_key")d({issues:k.issues});else if(k.code==="invalid_element")d({issues:k.issues});else if(k.path.length===0)u._errors.push(l(k));else{let _=u,x=0;while(x<k.path.length){let v=k.path[x];if(x!==k.path.length-1)_[v]=_[v]||{_errors:[]};else _[v]=_[v]||{_errors:[]},_[v]._errors.push(l(k));_=_[v],x++}}};return d(o),u}function by(o){let i=[];for(let l of o)if(typeof l==="number")i.push(`[${l}]`);else if(typeof l==="symbol")i.push(`[${JSON.stringify(String(l))}]`);else if(/[^\w$]/.test(l))i.push(`[${JSON.stringify(l)}]`);else{if(i.length)i.push(".");i.push(l)}return i.join("")}function _k(o){let i=[],l=[...o.issues].sort((u,d)=>u.path.length-d.path.length);for(let u of l)if(i.push(`\u2716 ${u.message}`),u.path?.length)i.push(` \u2192 at ${by(u.path)}`);return i.join(`
3
+ `)}var ba=(o)=>(i,l,u,d)=>{let m=u?Object.assign(u,{async:!1}):{async:!1},k=i._zod.run({value:l,issues:[]},m);if(k instanceof Promise)throw new yt;if(k.issues.length){let _=new(d?.Err??o)(k.issues.map((x)=>tt(x,m,hu())));throw uo(_,d?.callee),_}return k.value};var _a=(o)=>async(i,l,u,d)=>{let m=u?Object.assign(u,{async:!0}):{async:!0},k=i._zod.run({value:l,issues:[]},m);if(k instanceof Promise)k=await k;if(k.issues.length){let _=new(d?.Err??o)(k.issues.map((x)=>tt(x,m,hu())));throw uo(_,d?.callee),_}return k.value};var po=(o)=>(i,l,u)=>{let d=u?{...u,async:!1}:{async:!1},m=i._zod.run({value:l,issues:[]},d);if(m instanceof Promise)throw new yt;return m.issues.length?{success:!1,error:new(o??lr)(m.issues.map((k)=>tt(k,d,hu())))}:{success:!0,data:m.value}},xa=po(co),mo=(o)=>async(i,l,u)=>{let d=u?Object.assign(u,{async:!0}):{async:!0},m=i._zod.run({value:l,issues:[]},d);if(m instanceof Promise)m=await m;return m.issues.length?{success:!1,error:new o(m.issues.map((k)=>tt(k,d,hu())))}:{success:!0,data:m.value}},va=mo(co);var Pa=/^[cC][^\s-]{8,}$/,Ta=/^[0-9a-z]+$/,Ea=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Sa=/^[0-9a-vA-V]{20}$/,wa=/^[A-Za-z0-9]{27}$/,Aa=/^[a-zA-Z0-9_-]{21}$/,Ra=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Oa=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fo=(o)=>{if(!o)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${o}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var $a=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Ia(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}var Ca=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ma=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,ja=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Na=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,La=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yo=/^[A-Za-z0-9_-]*$/,qa=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;var za=/^\+(?:[0-9]){6,14}[0-9]$/,Da="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ba=new RegExp(`^${Da}$`);function Ya(o){return typeof o.precision==="number"?o.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":o.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${o.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Ka(o){return new RegExp(`^${Ya(o)}$`)}function Fa(o){let i=Ya({precision:o.precision}),l=["Z"];if(o.local)l.push("");if(o.offset)l.push("([+-]\\d{2}:\\d{2})");let u=`${i}(?:${l.join("|")})`;return new RegExp(`^${Da}T(?:${u})$`)}var Va=(o)=>{let i=o?`[\\s\\S]{${o?.minimum??0},${o?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},Wa=/^\d+n?$/,Za=/^\d+$/,Xa=/^-?\d+(?:\.\d+)?/i,Ga=/true|false/i,Ja=/null/i;var Qa=/^[^A-Z]*$/,es=/^[^a-z]*$/;var we=S("$ZodCheck",(o,i)=>{var l;o._zod??(o._zod={}),o._zod.def=i,(l=o._zod).onattach??(l.onattach=[])}),ts={number:"number",bigint:"bigint",object:"date"},ho=S("$ZodCheckLessThan",(o,i)=>{we.init(o,i);let l=ts[typeof i.value];o._zod.onattach.push((u)=>{let d=u._zod.bag,m=(i.inclusive?d.maximum:d.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(i.value<m)if(i.inclusive)d.maximum=i.value;else d.exclusiveMaximum=i.value}),o._zod.check=(u)=>{if(i.inclusive?u.value<=i.value:u.value<i.value)return;u.issues.push({origin:l,code:"too_big",maximum:i.value,input:u.value,inclusive:i.inclusive,inst:o,continue:!i.abort})}}),ko=S("$ZodCheckGreaterThan",(o,i)=>{we.init(o,i);let l=ts[typeof i.value];o._zod.onattach.push((u)=>{let d=u._zod.bag,m=(i.inclusive?d.minimum:d.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(i.value>m)if(i.inclusive)d.minimum=i.value;else d.exclusiveMinimum=i.value}),o._zod.check=(u)=>{if(i.inclusive?u.value>=i.value:u.value>i.value)return;u.issues.push({origin:l,code:"too_small",minimum:i.value,input:u.value,inclusive:i.inclusive,inst:o,continue:!i.abort})}}),ns=S("$ZodCheckMultipleOf",(o,i)=>{we.init(o,i),o._zod.onattach.push((l)=>{var u;(u=l._zod.bag).multipleOf??(u.multipleOf=i.value)}),o._zod.check=(l)=>{if(typeof l.value!==typeof i.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof l.value==="bigint"?l.value%i.value===BigInt(0):ca(l.value,i.value)===0)return;l.issues.push({origin:typeof l.value,code:"not_multiple_of",divisor:i.value,input:l.value,inst:o,continue:!i.abort})}}),rs=S("$ZodCheckNumberFormat",(o,i)=>{we.init(o,i),i.format=i.format||"float64";let l=i.format?.includes("int"),u=l?"int":"number",[d,m]=ya[i.format];o._zod.onattach.push((k)=>{let _=k._zod.bag;if(_.format=i.format,_.minimum=d,_.maximum=m,l)_.pattern=Za}),o._zod.check=(k)=>{let _=k.value;if(l){if(!Number.isInteger(_)){k.issues.push({expected:u,format:i.format,code:"invalid_type",input:_,inst:o});return}if(!Number.isSafeInteger(_)){if(_>0)k.issues.push({input:_,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:u,continue:!i.abort});else k.issues.push({input:_,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:u,continue:!i.abort});return}}if(_<d)k.issues.push({origin:"number",input:_,code:"too_small",minimum:d,inclusive:!0,inst:o,continue:!i.abort});if(_>m)k.issues.push({origin:"number",input:_,code:"too_big",maximum:m,inst:o})}});var os=S("$ZodCheckMaxLength",(o,i)=>{var l;we.init(o,i),(l=o._zod.def).when??(l.when=(u)=>{let d=u.value;return!ir(d)&&d.length!==void 0}),o._zod.onattach.push((u)=>{let d=u._zod.bag.maximum??Number.POSITIVE_INFINITY;if(i.maximum<d)u._zod.bag.maximum=i.maximum}),o._zod.check=(u)=>{let d=u.value;if(d.length<=i.maximum)return;let k=sr(d);u.issues.push({origin:k,code:"too_big",maximum:i.maximum,inclusive:!0,input:d,inst:o,continue:!i.abort})}}),is=S("$ZodCheckMinLength",(o,i)=>{var l;we.init(o,i),(l=o._zod.def).when??(l.when=(u)=>{let d=u.value;return!ir(d)&&d.length!==void 0}),o._zod.onattach.push((u)=>{let d=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(i.minimum>d)u._zod.bag.minimum=i.minimum}),o._zod.check=(u)=>{let d=u.value;if(d.length>=i.minimum)return;let k=sr(d);u.issues.push({origin:k,code:"too_small",minimum:i.minimum,inclusive:!0,input:d,inst:o,continue:!i.abort})}}),as=S("$ZodCheckLengthEquals",(o,i)=>{var l;we.init(o,i),(l=o._zod.def).when??(l.when=(u)=>{let d=u.value;return!ir(d)&&d.length!==void 0}),o._zod.onattach.push((u)=>{let d=u._zod.bag;d.minimum=i.length,d.maximum=i.length,d.length=i.length}),o._zod.check=(u)=>{let d=u.value,m=d.length;if(m===i.length)return;let k=sr(d),_=m>i.length;u.issues.push({origin:k,..._?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:u.value,inst:o,continue:!i.abort})}}),Sn=S("$ZodCheckStringFormat",(o,i)=>{var l,u;if(we.init(o,i),o._zod.onattach.push((d)=>{let m=d._zod.bag;if(m.format=i.format,i.pattern)m.patterns??(m.patterns=new Set),m.patterns.add(i.pattern)}),i.pattern)(l=o._zod).check??(l.check=(d)=>{if(i.pattern.lastIndex=0,i.pattern.test(d.value))return;d.issues.push({origin:"string",code:"invalid_format",format:i.format,input:d.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:o,continue:!i.abort})});else(u=o._zod).check??(u.check=()=>{})}),ss=S("$ZodCheckRegex",(o,i)=>{Sn.init(o,i),o._zod.check=(l)=>{if(i.pattern.lastIndex=0,i.pattern.test(l.value))return;l.issues.push({origin:"string",code:"invalid_format",format:"regex",input:l.value,pattern:i.pattern.toString(),inst:o,continue:!i.abort})}}),ls=S("$ZodCheckLowerCase",(o,i)=>{i.pattern??(i.pattern=Qa),Sn.init(o,i)}),us=S("$ZodCheckUpperCase",(o,i)=>{i.pattern??(i.pattern=es),Sn.init(o,i)}),ds=S("$ZodCheckIncludes",(o,i)=>{we.init(o,i);let l=St(i.includes),u=new RegExp(typeof i.position==="number"?`^.{${i.position}}${l}`:l);i.pattern=u,o._zod.onattach.push((d)=>{let m=d._zod.bag;m.patterns??(m.patterns=new Set),m.patterns.add(u)}),o._zod.check=(d)=>{if(d.value.includes(i.includes,i.position))return;d.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:d.value,inst:o,continue:!i.abort})}}),cs=S("$ZodCheckStartsWith",(o,i)=>{we.init(o,i);let l=new RegExp(`^${St(i.prefix)}.*`);i.pattern??(i.pattern=l),o._zod.onattach.push((u)=>{let d=u._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(l)}),o._zod.check=(u)=>{if(u.value.startsWith(i.prefix))return;u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:u.value,inst:o,continue:!i.abort})}}),ps=S("$ZodCheckEndsWith",(o,i)=>{we.init(o,i);let l=new RegExp(`.*${St(i.suffix)}$`);i.pattern??(i.pattern=l),o._zod.onattach.push((u)=>{let d=u._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(l)}),o._zod.check=(u)=>{if(u.value.endsWith(i.suffix))return;u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:u.value,inst:o,continue:!i.abort})}});var ms=S("$ZodCheckOverwrite",(o,i)=>{we.init(o,i),o._zod.check=(l)=>{l.value=i.tx(l.value)}});class bo{constructor(o=[]){if(this.content=[],this.indent=0,this)this.args=o}indented(o){this.indent+=1,o(this),this.indent-=1}write(o){if(typeof o==="function"){o(this,{execution:"sync"}),o(this,{execution:"async"});return}let l=o.split(`
4
+ `).filter((m)=>m),u=Math.min(...l.map((m)=>m.length-m.trimStart().length)),d=l.map((m)=>m.slice(u)).map((m)=>" ".repeat(this.indent*2)+m);for(let m of d)this.content.push(m)}compile(){let o=Function,i=this?.args,u=[...(this?.content??[""]).map((d)=>` ${d}`)];return new o(...i,u.join(`
5
+ `))}}var ys={major:4,minor:0,patch:0};var te=S("$ZodType",(o,i)=>{var l;o??(o={}),o._zod.def=i,o._zod.bag=o._zod.bag||{},o._zod.version=ys;let u=[...o._zod.def.checks??[]];if(o._zod.traits.has("$ZodCheck"))u.unshift(o);for(let d of u)for(let m of d._zod.onattach)m(o);if(u.length===0)(l=o._zod).deferred??(l.deferred=[]),o._zod.deferred?.push(()=>{o._zod.run=o._zod.parse});else{let d=(m,k,_)=>{let x=Yt(m),v;for(let T of k){if(T._zod.def.when){if(!T._zod.def.when(m))continue}else if(x)continue;let R=m.issues.length,O=T._zod.check(m);if(O instanceof Promise&&_?.async===!1)throw new yt;if(v||O instanceof Promise)v=(v??Promise.resolve()).then(async()=>{if(await O,m.issues.length===R)return;if(!x)x=Yt(m,R)});else{if(m.issues.length===R)continue;if(!x)x=Yt(m,R)}}if(v)return v.then(()=>m);return m};o._zod.run=(m,k)=>{let _=o._zod.parse(m,k);if(_ instanceof Promise){if(k.async===!1)throw new yt;return _.then((x)=>d(x,u,k))}return d(_,u,k)}}o["~standard"]={validate:(d)=>{try{let m=xa(o,d);return m.success?{value:m.data}:{issues:m.error?.issues}}catch(m){return va(o,d).then((k)=>k.success?{value:k.data}:{issues:k.error?.issues})}},vendor:"zod",version:1}}),pr=S("$ZodString",(o,i)=>{te.init(o,i),o._zod.pattern=[...o?._zod.bag?.patterns??[]].pop()??Va(o._zod.bag),o._zod.parse=(l,u)=>{if(i.coerce)try{l.value=String(l.value)}catch(d){}if(typeof l.value==="string")return l;return l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:o}),l}}),le=S("$ZodStringFormat",(o,i)=>{Sn.init(o,i),pr.init(o,i)}),Es=S("$ZodGUID",(o,i)=>{i.pattern??(i.pattern=Oa),le.init(o,i)}),Ss=S("$ZodUUID",(o,i)=>{if(i.version){let u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(u===void 0)throw Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=fo(u))}else i.pattern??(i.pattern=fo());le.init(o,i)}),As=S("$ZodEmail",(o,i)=>{i.pattern??(i.pattern=$a),le.init(o,i)}),Rs=S("$ZodURL",(o,i)=>{le.init(o,i),o._zod.check=(l)=>{try{let u=l.value,d=new URL(u),m=d.href;if(i.hostname){if(i.hostname.lastIndex=0,!i.hostname.test(d.hostname))l.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:qa.source,input:l.value,inst:o,continue:!i.abort})}if(i.protocol){if(i.protocol.lastIndex=0,!i.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol))l.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:l.value,inst:o,continue:!i.abort})}if(!u.endsWith("/")&&m.endsWith("/"))l.value=m.slice(0,-1);else l.value=m;return}catch(u){l.issues.push({code:"invalid_format",format:"url",input:l.value,inst:o,continue:!i.abort})}}}),Os=S("$ZodEmoji",(o,i)=>{i.pattern??(i.pattern=Ia()),le.init(o,i)}),$s=S("$ZodNanoID",(o,i)=>{i.pattern??(i.pattern=Aa),le.init(o,i)}),Is=S("$ZodCUID",(o,i)=>{i.pattern??(i.pattern=Pa),le.init(o,i)}),Cs=S("$ZodCUID2",(o,i)=>{i.pattern??(i.pattern=Ta),le.init(o,i)}),Ms=S("$ZodULID",(o,i)=>{i.pattern??(i.pattern=Ea),le.init(o,i)}),js=S("$ZodXID",(o,i)=>{i.pattern??(i.pattern=Sa),le.init(o,i)}),Ns=S("$ZodKSUID",(o,i)=>{i.pattern??(i.pattern=wa),le.init(o,i)}),Ls=S("$ZodISODateTime",(o,i)=>{i.pattern??(i.pattern=Fa(i)),le.init(o,i)}),qs=S("$ZodISODate",(o,i)=>{i.pattern??(i.pattern=Ba),le.init(o,i)}),zs=S("$ZodISOTime",(o,i)=>{i.pattern??(i.pattern=Ka(i)),le.init(o,i)}),Ds=S("$ZodISODuration",(o,i)=>{i.pattern??(i.pattern=Ra),le.init(o,i)}),Bs=S("$ZodIPv4",(o,i)=>{i.pattern??(i.pattern=Ca),le.init(o,i),o._zod.onattach.push((l)=>{let u=l._zod.bag;u.format="ipv4"})}),Ys=S("$ZodIPv6",(o,i)=>{i.pattern??(i.pattern=Ma),le.init(o,i),o._zod.onattach.push((l)=>{let u=l._zod.bag;u.format="ipv6"}),o._zod.check=(l)=>{try{new URL(`http://[${l.value}]`)}catch{l.issues.push({code:"invalid_format",format:"ipv6",input:l.value,inst:o,continue:!i.abort})}}}),Ks=S("$ZodCIDRv4",(o,i)=>{i.pattern??(i.pattern=ja),le.init(o,i)}),Fs=S("$ZodCIDRv6",(o,i)=>{i.pattern??(i.pattern=Na),le.init(o,i),o._zod.check=(l)=>{let[u,d]=l.value.split("/");try{if(!d)throw Error();let m=Number(d);if(`${m}`!==d)throw Error();if(m<0||m>128)throw Error();new URL(`http://[${u}]`)}catch{l.issues.push({code:"invalid_format",format:"cidrv6",input:l.value,inst:o,continue:!i.abort})}}});function Vs(o){if(o==="")return!0;if(o.length%4!==0)return!1;try{return atob(o),!0}catch{return!1}}var Ws=S("$ZodBase64",(o,i)=>{i.pattern??(i.pattern=La),le.init(o,i),o._zod.onattach.push((l)=>{l._zod.bag.contentEncoding="base64"}),o._zod.check=(l)=>{if(Vs(l.value))return;l.issues.push({code:"invalid_format",format:"base64",input:l.value,inst:o,continue:!i.abort})}});function xy(o){if(!yo.test(o))return!1;let i=o.replace(/[-_]/g,(u)=>u==="-"?"+":"/"),l=i.padEnd(Math.ceil(i.length/4)*4,"=");return Vs(l)}var Zs=S("$ZodBase64URL",(o,i)=>{i.pattern??(i.pattern=yo),le.init(o,i),o._zod.onattach.push((l)=>{l._zod.bag.contentEncoding="base64url"}),o._zod.check=(l)=>{if(xy(l.value))return;l.issues.push({code:"invalid_format",format:"base64url",input:l.value,inst:o,continue:!i.abort})}}),Xs=S("$ZodE164",(o,i)=>{i.pattern??(i.pattern=za),le.init(o,i)});function vy(o,i=null){try{let l=o.split(".");if(l.length!==3)return!1;let[u]=l;if(!u)return!1;let d=JSON.parse(atob(u));if("typ"in d&&d?.typ!=="JWT")return!1;if(!d.alg)return!1;if(i&&(!("alg"in d)||d.alg!==i))return!1;return!0}catch{return!1}}var Gs=S("$ZodJWT",(o,i)=>{le.init(o,i),o._zod.check=(l)=>{if(vy(l.value,i.alg))return;l.issues.push({code:"invalid_format",format:"jwt",input:l.value,inst:o,continue:!i.abort})}});var xo=S("$ZodNumber",(o,i)=>{te.init(o,i),o._zod.pattern=o._zod.bag.pattern??Xa,o._zod.parse=(l,u)=>{if(i.coerce)try{l.value=Number(l.value)}catch(k){}let d=l.value;if(typeof d==="number"&&!Number.isNaN(d)&&Number.isFinite(d))return l;let m=typeof d==="number"?Number.isNaN(d)?"NaN":!Number.isFinite(d)?"Infinity":void 0:void 0;return l.issues.push({expected:"number",code:"invalid_type",input:d,inst:o,...m?{received:m}:{}}),l}}),Hs=S("$ZodNumber",(o,i)=>{rs.init(o,i),xo.init(o,i)}),Js=S("$ZodBoolean",(o,i)=>{te.init(o,i),o._zod.pattern=Ga,o._zod.parse=(l,u)=>{if(i.coerce)try{l.value=Boolean(l.value)}catch(m){}let d=l.value;if(typeof d==="boolean")return l;return l.issues.push({expected:"boolean",code:"invalid_type",input:d,inst:o}),l}}),Qs=S("$ZodBigInt",(o,i)=>{te.init(o,i),o._zod.pattern=Wa,o._zod.parse=(l,u)=>{if(i.coerce)try{l.value=BigInt(l.value)}catch(d){}if(typeof l.value==="bigint")return l;return l.issues.push({expected:"bigint",code:"invalid_type",input:l.value,inst:o}),l}});var el=S("$ZodNull",(o,i)=>{te.init(o,i),o._zod.pattern=Ja,o._zod.values=new Set([null]),o._zod.parse=(l,u)=>{let d=l.value;if(d===null)return l;return l.issues.push({expected:"null",code:"invalid_type",input:d,inst:o}),l}}),tl=S("$ZodAny",(o,i)=>{te.init(o,i),o._zod.parse=(l)=>l}),nl=S("$ZodUnknown",(o,i)=>{te.init(o,i),o._zod.parse=(l)=>l}),rl=S("$ZodNever",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>(l.issues.push({expected:"never",code:"invalid_type",input:l.value,inst:o}),l)});var ol=S("$ZodDate",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>{if(i.coerce)try{l.value=new Date(l.value)}catch(_){}let d=l.value,m=d instanceof Date;if(m&&!Number.isNaN(d.getTime()))return l;return l.issues.push({expected:"date",code:"invalid_type",input:d,...m?{received:"Invalid Date"}:{},inst:o}),l}});function gs(o,i,l){if(o.issues.length)i.issues.push(...et(l,o.issues));i.value[l]=o.value}var il=S("$ZodArray",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>{let d=l.value;if(!Array.isArray(d))return l.issues.push({expected:"array",code:"invalid_type",input:d,inst:o}),l;l.value=Array(d.length);let m=[];for(let k=0;k<d.length;k++){let _=d[k],x=i.element._zod.run({value:_,issues:[]},u);if(x instanceof Promise)m.push(x.then((v)=>gs(v,l,k)));else gs(x,l,k)}if(m.length)return Promise.all(m).then(()=>l);return l}});function ur(o,i,l){if(o.issues.length)i.issues.push(...et(l,o.issues));i.value[l]=o.value}function hs(o,i,l,u){if(o.issues.length)if(u[l]===void 0)if(l in u)i.value[l]=void 0;else i.value[l]=o.value;else i.issues.push(...et(l,o.issues));else if(o.value===void 0){if(l in u)i.value[l]=void 0}else i.value[l]=o.value}var al=S("$ZodObject",(o,i)=>{te.init(o,i);let l=nr(()=>{let R=Object.keys(i.shape);for(let L of R)if(!(i.shape[L]instanceof te))throw Error(`Invalid element at key "${L}": expected a Zod schema`);let O=fa(i.shape);return{shape:i.shape,keys:R,keySet:new Set(R),numKeys:R.length,optionalKeys:new Set(O)}});ne(o._zod,"propValues",()=>{let R=i.shape,O={};for(let L in R){let Q=R[L]._zod;if(Q.values){O[L]??(O[L]=new Set);for(let Pe of Q.values)O[L].add(Pe)}}return O});let u=(R)=>{let O=new bo(["shape","payload","ctx"]),L=l.value,Q=(ue)=>{let ie=Bt(ue);return`shape[${ie}]._zod.run({ value: input[${ie}], issues: [] }, ctx)`};O.write("const input = payload.value;");let Pe=Object.create(null),Ue=0;for(let ue of L.keys)Pe[ue]=`key_${Ue++}`;O.write("const newResult = {}");for(let ue of L.keys)if(L.optionalKeys.has(ue)){let ie=Pe[ue];O.write(`const ${ie} = ${Q(ue)};`);let fe=Bt(ue);O.write(`
6
+ if (${ie}.issues.length) {
7
+ if (input[${fe}] === undefined) {
8
+ if (${fe} in input) {
9
+ newResult[${fe}] = undefined;
10
+ }
11
+ } else {
12
+ payload.issues = payload.issues.concat(
13
+ ${ie}.issues.map((iss) => ({
14
+ ...iss,
15
+ path: iss.path ? [${fe}, ...iss.path] : [${fe}],
16
+ }))
17
+ );
18
+ }
19
+ } else if (${ie}.value === undefined) {
20
+ if (${fe} in input) newResult[${fe}] = undefined;
21
+ } else {
22
+ newResult[${fe}] = ${ie}.value;
23
+ }
24
+ `)}else{let ie=Pe[ue];O.write(`const ${ie} = ${Q(ue)};`),O.write(`
25
+ if (${ie}.issues.length) payload.issues = payload.issues.concat(${ie}.issues.map(iss => ({
26
+ ...iss,
27
+ path: iss.path ? [${Bt(ue)}, ...iss.path] : [${Bt(ue)}]
28
+ })));`),O.write(`newResult[${Bt(ue)}] = ${ie}.value`)}O.write("payload.value = newResult;"),O.write("return payload;");let Xe=O.compile();return(ue,ie)=>Xe(R,ue,ie)},d,m=vn,k=!er.jitless,x=k&&pa.value,v=i.catchall,T;o._zod.parse=(R,O)=>{T??(T=l.value);let L=R.value;if(!m(L))return R.issues.push({expected:"object",code:"invalid_type",input:L,inst:o}),R;let Q=[];if(k&&x&&O?.async===!1&&O.jitless!==!0){if(!d)d=u(i.shape);R=d(R,O)}else{R.value={};let ie=T.shape;for(let fe of T.keys){let K=ie[fe],be=K._zod.run({value:L[fe],issues:[]},O),ze=K._zod.optin==="optional"&&K._zod.optout==="optional";if(be instanceof Promise)Q.push(be.then((Ge)=>ze?hs(Ge,R,fe,L):ur(Ge,R,fe)));else if(ze)hs(be,R,fe,L);else ur(be,R,fe)}}if(!v)return Q.length?Promise.all(Q).then(()=>R):R;let Pe=[],Ue=T.keySet,Xe=v._zod,ue=Xe.def.type;for(let ie of Object.keys(L)){if(Ue.has(ie))continue;if(ue==="never"){Pe.push(ie);continue}let fe=Xe.run({value:L[ie],issues:[]},O);if(fe instanceof Promise)Q.push(fe.then((K)=>ur(K,R,ie)));else ur(fe,R,ie)}if(Pe.length)R.issues.push({code:"unrecognized_keys",keys:Pe,input:L,inst:o});if(!Q.length)return R;return Promise.all(Q).then(()=>R)}});function ks(o,i,l,u){for(let d of o)if(d.issues.length===0)return i.value=d.value,i;return i.issues.push({code:"invalid_union",input:i.value,inst:l,errors:o.map((d)=>d.issues.map((m)=>tt(m,u,hu())))}),i}var vo=S("$ZodUnion",(o,i)=>{te.init(o,i),ne(o._zod,"optin",()=>i.options.some((l)=>l._zod.optin==="optional")?"optional":void 0),ne(o._zod,"optout",()=>i.options.some((l)=>l._zod.optout==="optional")?"optional":void 0),ne(o._zod,"values",()=>{if(i.options.every((l)=>l._zod.values))return new Set(i.options.flatMap((l)=>Array.from(l._zod.values)));return}),ne(o._zod,"pattern",()=>{if(i.options.every((l)=>l._zod.pattern)){let l=i.options.map((u)=>u._zod.pattern);return new RegExp(`^(${l.map((u)=>ar(u.source)).join("|")})$`)}return}),o._zod.parse=(l,u)=>{let d=!1,m=[];for(let k of i.options){let _=k._zod.run({value:l.value,issues:[]},u);if(_ instanceof Promise)m.push(_),d=!0;else{if(_.issues.length===0)return _;m.push(_)}}if(!d)return ks(m,l,o,u);return Promise.all(m).then((k)=>ks(k,l,o,u))}}),sl=S("$ZodDiscriminatedUnion",(o,i)=>{vo.init(o,i);let l=o._zod.parse;ne(o._zod,"propValues",()=>{let d={};for(let m of i.options){let k=m._zod.propValues;if(!k||Object.keys(k).length===0)throw Error(`Invalid discriminated union option at index "${i.options.indexOf(m)}"`);for(let[_,x]of Object.entries(k)){if(!d[_])d[_]=new Set;for(let v of x)d[_].add(v)}}return d});let u=nr(()=>{let d=i.options,m=new Map;for(let k of d){let _=k._zod.propValues[i.discriminator];if(!_||_.size===0)throw Error(`Invalid discriminated union option at index "${i.options.indexOf(k)}"`);for(let x of _){if(m.has(x))throw Error(`Duplicate discriminator value "${String(x)}"`);m.set(x,k)}}return m});o._zod.parse=(d,m)=>{let k=d.value;if(!vn(k))return d.issues.push({code:"invalid_type",expected:"object",input:k,inst:o}),d;let _=u.value.get(k?.[i.discriminator]);if(_)return _._zod.run(d,m);if(i.unionFallback)return l(d,m);return d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:k,path:[i.discriminator],inst:o}),d}}),ll=S("$ZodIntersection",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>{let d=l.value,m=i.left._zod.run({value:d,issues:[]},u),k=i.right._zod.run({value:d,issues:[]},u);if(m instanceof Promise||k instanceof Promise)return Promise.all([m,k]).then(([x,v])=>bs(l,x,v));return bs(l,m,k)}});function _o(o,i){if(o===i)return{valid:!0,data:o};if(o instanceof Date&&i instanceof Date&&+o===+i)return{valid:!0,data:o};if(En(o)&&En(i)){let l=Object.keys(i),u=Object.keys(o).filter((m)=>l.indexOf(m)!==-1),d={...o,...i};for(let m of u){let k=_o(o[m],i[m]);if(!k.valid)return{valid:!1,mergeErrorPath:[m,...k.mergeErrorPath]};d[m]=k.data}return{valid:!0,data:d}}if(Array.isArray(o)&&Array.isArray(i)){if(o.length!==i.length)return{valid:!1,mergeErrorPath:[]};let l=[];for(let u=0;u<o.length;u++){let d=o[u],m=i[u],k=_o(d,m);if(!k.valid)return{valid:!1,mergeErrorPath:[u,...k.mergeErrorPath]};l.push(k.data)}return{valid:!0,data:l}}return{valid:!1,mergeErrorPath:[]}}function bs(o,i,l){if(i.issues.length)o.issues.push(...i.issues);if(l.issues.length)o.issues.push(...l.issues);if(Yt(o))return o;let u=_o(i.value,l.value);if(!u.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return o.value=u.data,o}var ul=S("$ZodTuple",(o,i)=>{te.init(o,i);let l=i.items,u=l.length-[...l].reverse().findIndex((d)=>d._zod.optin!=="optional");o._zod.parse=(d,m)=>{let k=d.value;if(!Array.isArray(k))return d.issues.push({input:k,inst:o,expected:"tuple",code:"invalid_type"}),d;d.value=[];let _=[];if(!i.rest){let v=k.length>l.length,T=k.length<u-1;if(v||T)return d.issues.push({input:k,inst:o,origin:"array",...v?{code:"too_big",maximum:l.length}:{code:"too_small",minimum:l.length}}),d}let x=-1;for(let v of l){if(x++,x>=k.length){if(x>=u)continue}let T=v._zod.run({value:k[x],issues:[]},m);if(T instanceof Promise)_.push(T.then((R)=>dr(R,d,x)));else dr(T,d,x)}if(i.rest){let v=k.slice(l.length);for(let T of v){x++;let R=i.rest._zod.run({value:T,issues:[]},m);if(R instanceof Promise)_.push(R.then((O)=>dr(O,d,x)));else dr(R,d,x)}}if(_.length)return Promise.all(_).then(()=>d);return d}});function dr(o,i,l){if(o.issues.length)i.issues.push(...et(l,o.issues));i.value[l]=o.value}var dl=S("$ZodRecord",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>{let d=l.value;if(!En(d))return l.issues.push({expected:"record",code:"invalid_type",input:d,inst:o}),l;let m=[];if(i.keyType._zod.values){let k=i.keyType._zod.values;l.value={};for(let x of k)if(typeof x==="string"||typeof x==="number"||typeof x==="symbol"){let v=i.valueType._zod.run({value:d[x],issues:[]},u);if(v instanceof Promise)m.push(v.then((T)=>{if(T.issues.length)l.issues.push(...et(x,T.issues));l.value[x]=T.value}));else{if(v.issues.length)l.issues.push(...et(x,v.issues));l.value[x]=v.value}}let _;for(let x in d)if(!k.has(x))_=_??[],_.push(x);if(_&&_.length>0)l.issues.push({code:"unrecognized_keys",input:d,inst:o,keys:_})}else{l.value={};for(let k of Reflect.ownKeys(d)){if(k==="__proto__")continue;let _=i.keyType._zod.run({value:k,issues:[]},u);if(_ instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(_.issues.length){l.issues.push({origin:"record",code:"invalid_key",issues:_.issues.map((v)=>tt(v,u,hu())),input:k,path:[k],inst:o}),l.value[_.value]=_.value;continue}let x=i.valueType._zod.run({value:d[k],issues:[]},u);if(x instanceof Promise)m.push(x.then((v)=>{if(v.issues.length)l.issues.push(...et(k,v.issues));l.value[_.value]=v.value}));else{if(x.issues.length)l.issues.push(...et(k,x.issues));l.value[_.value]=x.value}}}if(m.length)return Promise.all(m).then(()=>l);return l}});var cl=S("$ZodEnum",(o,i)=>{te.init(o,i);let l=Gz(i.entries);o._zod.values=new Set(l),o._zod.pattern=new RegExp(`^(${l.filter((u)=>ma.has(typeof u)).map((u)=>typeof u==="string"?St(u):u.toString()).join("|")})$`),o._zod.parse=(u,d)=>{let m=u.value;if(o._zod.values.has(m))return u;return u.issues.push({code:"invalid_value",values:l,input:m,inst:o}),u}}),pl=S("$ZodLiteral",(o,i)=>{te.init(o,i),o._zod.values=new Set(i.values),o._zod.pattern=new RegExp(`^(${i.values.map((l)=>typeof l==="string"?St(l):l?l.toString():String(l)).join("|")})$`),o._zod.parse=(l,u)=>{let d=l.value;if(o._zod.values.has(d))return l;return l.issues.push({code:"invalid_value",values:i.values,input:d,inst:o}),l}});var ml=S("$ZodTransform",(o,i)=>{te.init(o,i),o._zod.parse=(l,u)=>{let d=i.transform(l.value,l);if(u.async)return(d instanceof Promise?d:Promise.resolve(d)).then((k)=>(l.value=k,l));if(d instanceof Promise)throw new yt;return l.value=d,l}}),fl=S("$ZodOptional",(o,i)=>{te.init(o,i),o._zod.optin="optional",o._zod.optout="optional",ne(o._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),ne(o._zod,"pattern",()=>{let l=i.innerType._zod.pattern;return l?new RegExp(`^(${ar(l.source)})?$`):void 0}),o._zod.parse=(l,u)=>{if(i.innerType._zod.optin==="optional")return i.innerType._zod.run(l,u);if(l.value===void 0)return l;return i.innerType._zod.run(l,u)}}),hl=S("$ZodNullable",(o,i)=>{te.init(o,i),ne(o._zod,"optin",()=>i.innerType._zod.optin),ne(o._zod,"optout",()=>i.innerType._zod.optout),ne(o._zod,"pattern",()=>{let l=i.innerType._zod.pattern;return l?new RegExp(`^(${ar(l.source)}|null)$`):void 0}),ne(o._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),o._zod.parse=(l,u)=>{if(l.value===null)return l;return i.innerType._zod.run(l,u)}}),kl=S("$ZodDefault",(o,i)=>{te.init(o,i),o._zod.optin="optional",ne(o._zod,"values",()=>i.innerType._zod.values),o._zod.parse=(l,u)=>{if(l.value===void 0)return l.value=i.defaultValue,l;let d=i.innerType._zod.run(l,u);if(d instanceof Promise)return d.then((m)=>_s(m,i));return _s(d,i)}});function _s(o,i){if(o.value===void 0)o.value=i.defaultValue;return o}var _l=S("$ZodPrefault",(o,i)=>{te.init(o,i),o._zod.optin="optional",ne(o._zod,"values",()=>i.innerType._zod.values),o._zod.parse=(l,u)=>{if(l.value===void 0)l.value=i.defaultValue;return i.innerType._zod.run(l,u)}}),xl=S("$ZodNonOptional",(o,i)=>{te.init(o,i),ne(o._zod,"values",()=>{let l=i.innerType._zod.values;return l?new Set([...l].filter((u)=>u!==void 0)):void 0}),o._zod.parse=(l,u)=>{let d=i.innerType._zod.run(l,u);if(d instanceof Promise)return d.then((m)=>xs(m,o));return xs(d,o)}});function xs(o,i){if(!o.issues.length&&o.value===void 0)o.issues.push({code:"invalid_type",expected:"nonoptional",input:o.value,inst:i});return o}var Pl=S("$ZodCatch",(o,i)=>{te.init(o,i),o._zod.optin="optional",ne(o._zod,"optout",()=>i.innerType._zod.optout),ne(o._zod,"values",()=>i.innerType._zod.values),o._zod.parse=(l,u)=>{let d=i.innerType._zod.run(l,u);if(d instanceof Promise)return d.then((m)=>{if(l.value=m.value,m.issues.length)l.value=i.catchValue({...l,error:{issues:m.issues.map((k)=>tt(k,u,hu()))},input:l.value}),l.issues=[];return l});if(l.value=d.value,d.issues.length)l.value=i.catchValue({...l,error:{issues:d.issues.map((m)=>tt(m,u,hu()))},input:l.value}),l.issues=[];return l}});var Tl=S("$ZodPipe",(o,i)=>{te.init(o,i),ne(o._zod,"values",()=>i.in._zod.values),ne(o._zod,"optin",()=>i.in._zod.optin),ne(o._zod,"optout",()=>i.out._zod.optout),o._zod.parse=(l,u)=>{let d=i.in._zod.run(l,u);if(d instanceof Promise)return d.then((m)=>vs(m,i,u));return vs(d,i,u)}});function vs(o,i,l){if(Yt(o))return o;return i.out._zod.run({value:o.value,issues:o.issues},l)}var El=S("$ZodReadonly",(o,i)=>{te.init(o,i),ne(o._zod,"propValues",()=>i.innerType._zod.propValues),ne(o._zod,"values",()=>i.innerType._zod.values),ne(o._zod,"optin",()=>i.innerType._zod.optin),ne(o._zod,"optout",()=>i.innerType._zod.optout),o._zod.parse=(l,u)=>{let d=i.innerType._zod.run(l,u);if(d instanceof Promise)return d.then(Ps);return Ps(d)}});function Ps(o){return o.value=Object.freeze(o.value),o}var Sl=S("$ZodLazy",(o,i)=>{te.init(o,i),ne(o._zod,"innerType",()=>i.getter()),ne(o._zod,"pattern",()=>o._zod.innerType._zod.pattern),ne(o._zod,"propValues",()=>o._zod.innerType._zod.propValues),ne(o._zod,"optin",()=>o._zod.innerType._zod.optin),ne(o._zod,"optout",()=>o._zod.innerType._zod.optout),o._zod.parse=(l,u)=>o._zod.innerType._zod.run(l,u)}),wl=S("$ZodCustom",(o,i)=>{we.init(o,i),te.init(o,i),o._zod.parse=(l,u)=>l,o._zod.check=(l)=>{let u=l.value,d=i.fn(u);if(d instanceof Promise)return d.then((m)=>Ts(m,l,u,o));Ts(d,l,u,o);return}});function Ts(o,i,l,u){if(!o){let d={code:"custom",input:l,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};if(u._zod.def.params)d.params=u._zod.def.params;i.issues.push(Kt(d))}}var $E=Symbol("ZodOutput"),IE=Symbol("ZodInput");class Yz{constructor(){this._map=new Map,this._idmap=new Map}add(o,...i){let l=i[0];if(this._map.set(o,l),l&&typeof l==="object"&&"id"in l){if(this._idmap.has(l.id))throw Error(`ID ${l.id} already exists in the registry`);this._idmap.set(l.id,o)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(o){let i=this._map.get(o);if(i&&typeof i==="object"&&"id"in i)this._idmap.delete(i.id);return this._map.delete(o),this}get(o){let i=o._zod.parent;if(i){let l={...this.get(i)??{}};return delete l.id,{...l,...this._map.get(o)}}return this._map.get(o)}has(o){return this._map.has(o)}}function Py(){return new Yz}var xk=Py();function Al(o,i){return new o({type:"string",...j(i)})}function Vre(o,i){return new o({type:"string",coerce:!0,...j(i)})}function Rl(o,i){return new o({type:"string",format:"email",check:"string_format",abort:!1,...j(i)})}function Po(o,i){return new o({type:"string",format:"guid",check:"string_format",abort:!1,...j(i)})}function Ol(o,i){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,...j(i)})}function $l(o,i){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(i)})}function Il(o,i){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(i)})}function Cl(o,i){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(i)})}function Ml(o,i){return new o({type:"string",format:"url",check:"string_format",abort:!1,...j(i)})}function jl(o,i){return new o({type:"string",format:"emoji",check:"string_format",abort:!1,...j(i)})}function Nl(o,i){return new o({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(i)})}function Ll(o,i){return new o({type:"string",format:"cuid",check:"string_format",abort:!1,...j(i)})}function ql(o,i){return new o({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(i)})}function zl(o,i){return new o({type:"string",format:"ulid",check:"string_format",abort:!1,...j(i)})}function Dl(o,i){return new o({type:"string",format:"xid",check:"string_format",abort:!1,...j(i)})}function Bl(o,i){return new o({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(i)})}function Yl(o,i){return new o({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(i)})}function Kl(o,i){return new o({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(i)})}function Fl(o,i){return new o({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(i)})}function Vl(o,i){return new o({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(i)})}function Wl(o,i){return new o({type:"string",format:"base64",check:"string_format",abort:!1,...j(i)})}function Zl(o,i){return new o({type:"string",format:"base64url",check:"string_format",abort:!1,...j(i)})}function Ul(o,i){return new o({type:"string",format:"e164",check:"string_format",abort:!1,...j(i)})}function Xl(o,i){return new o({type:"string",format:"jwt",check:"string_format",abort:!1,...j(i)})}function Gl(o,i){return new o({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(i)})}function Hl(o,i){return new o({type:"string",format:"date",check:"string_format",...j(i)})}function Jl(o,i){return new o({type:"string",format:"time",check:"string_format",precision:null,...j(i)})}function Ql(o,i){return new o({type:"string",format:"duration",check:"string_format",...j(i)})}function eu(o,i){return new o({type:"number",checks:[],...j(i)})}function Wre(o,i){return new o({type:"number",coerce:!0,checks:[],...j(i)})}function tu(o,i){return new o({type:"number",check:"number_format",abort:!1,format:"safeint",...j(i)})}function nu(o,i){return new o({type:"boolean",...j(i)})}function zre(o,i){return new o({type:"boolean",coerce:!0,...j(i)})}function jre(o,i){return new o({type:"bigint",coerce:!0,...j(i)})}function ru(o,i){return new o({type:"null",...j(i)})}function ou(o){return new o({type:"any"})}function iu(o){return new o({type:"unknown"})}function au(o,i){return new o({type:"never",...j(i)})}function Kre(o,i){return new o({type:"date",coerce:!0,...j(i)})}function Ft(o,i){return new ho({check:"less_than",...j(i),value:o,inclusive:!1})}function dt(o,i){return new ho({check:"less_than",...j(i),value:o,inclusive:!0})}function Vt(o,i){return new ko({check:"greater_than",...j(i),value:o,inclusive:!1})}function Ye(o,i){return new ko({check:"greater_than",...j(i),value:o,inclusive:!0})}function wn(o,i){return new ns({check:"multiple_of",...j(i),value:o})}function mr(o,i){return new os({check:"max_length",...j(i),maximum:o})}function Wt(o,i){return new is({check:"min_length",...j(i),minimum:o})}function fr(o,i){return new as({check:"length_equals",...j(i),length:o})}function To(o,i){return new ss({check:"string_format",format:"regex",...j(i),pattern:o})}function Eo(o){return new ls({check:"string_format",format:"lowercase",...j(o)})}function So(o){return new us({check:"string_format",format:"uppercase",...j(o)})}function wo(o,i){return new ds({check:"string_format",format:"includes",...j(i),includes:o})}function Ao(o,i){return new cs({check:"string_format",format:"starts_with",...j(i),prefix:o})}function Ro(o,i){return new ps({check:"string_format",format:"ends_with",...j(i),suffix:o})}function At(o){return new ms({check:"overwrite",tx:o})}function Oo(o){return At((i)=>i.normalize(o))}function $o(){return At((o)=>o.trim())}function Io(){return At((o)=>o.toLowerCase())}function Co(){return At((o)=>o.toUpperCase())}function su(o,i,l){return new o({type:"array",element:i,...j(l)})}function lu(o,i,l){let u=j(l);return u.abort??(u.abort=!0),new o({type:"custom",check:"custom",fn:i,...u})}function uu(o,i,l){return new o({type:"custom",check:"custom",fn:i,...j(l)})}var du=S("ZodISODateTime",(o,i)=>{Ls.init(o,i),ce.init(o,i)});function Mo(o){return Gl(du,o)}var cu=S("ZodISODate",(o,i)=>{qs.init(o,i),ce.init(o,i)});function jo(o){return Hl(cu,o)}var pu=S("ZodISOTime",(o,i)=>{zs.init(o,i),ce.init(o,i)});function No(o){return Jl(pu,o)}var mu=S("ZodISODuration",(o,i)=>{Ds.init(o,i),ce.init(o,i)});function Lo(o){return Ql(mu,o)}var fu=(o,i)=>{lr.init(o,i),o.name="ZodError",Object.defineProperties(o,{format:{value:(l)=>ka(o,l)},flatten:{value:(l)=>ha(o,l)},addIssue:{value:(l)=>o.issues.push(l)},addIssues:{value:(l)=>o.issues.push(...l)},isEmpty:{get(){return o.issues.length===0}}})},gl=S("ZodError",fu),An=S("ZodError",fu,{Parent:Error});var ku=ba(An),bu=_a(An),_u=po(An),xu=mo(An);var Tn=S("ZodType",(o,i)=>(te.init(o,i),o.def=i,Object.defineProperty(o,"_def",{value:i}),o.check=(...l)=>o.clone({...i,checks:[...i.checks??[],...l.map((u)=>typeof u==="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]}),o.clone=(l,u)=>ut(o,l,u),o.brand=()=>o,o.register=(l,u)=>(l.add(o,u),o),o.parse=(l,u)=>ku(o,l,u,{callee:o.parse}),o.safeParse=(l,u)=>_u(o,l,u),o.parseAsync=async(l,u)=>bu(o,l,u,{callee:o.parseAsync}),o.safeParseAsync=async(l,u)=>xu(o,l,u),o.spa=o.safeParseAsync,o.refine=(l,u)=>o.check(hg(l,u)),o.superRefine=(l)=>o.check(bg(l)),o.overwrite=(l)=>o.check(At(l)),o.optional=()=>Eu(o),o.nullable=()=>Su(o),o.nullish=()=>Eu(Su(o)),o.nonoptional=(l)=>dg(o,l),o.array=()=>b(o),o.or=(l)=>Ee([o,l]),o.and=(l)=>tg(o,l),o.transform=(l)=>zo(o,Ou(l)),o.default=(l)=>sg(o,l),o.prefault=(l)=>ug(o,l),o.catch=(l)=>pg(o,l),o.pipe=(l)=>zo(o,l),o.readonly=()=>fg(o),o.describe=(l)=>{let u=o.clone();return xk.add(u,{description:l}),u},Object.defineProperty(o,"description",{get(){return xk.get(o)?.description},configurable:!0}),o.meta=(...l)=>{if(l.length===0)return xk.get(o);let u=o.clone();return xk.add(u,l[0]),u},o.isOptional=()=>o.safeParse(void 0).success,o.isNullable=()=>o.safeParse(null).success,o)),wu=S("_ZodString",(o,i)=>{pr.init(o,i),Tn.init(o,i);let l=o._zod.bag;o.format=l.format??null,o.minLength=l.minimum??null,o.maxLength=l.maximum??null,o.regex=(...u)=>o.check(To(...u)),o.includes=(...u)=>o.check(wo(...u)),o.startsWith=(...u)=>o.check(Ao(...u)),o.endsWith=(...u)=>o.check(Ro(...u)),o.min=(...u)=>o.check(Wt(...u)),o.max=(...u)=>o.check(mr(...u)),o.length=(...u)=>o.check(fr(...u)),o.nonempty=(...u)=>o.check(Wt(1,...u)),o.lowercase=(u)=>o.check(Eo(u)),o.uppercase=(u)=>o.check(So(u)),o.trim=()=>o.check($o()),o.normalize=(...u)=>o.check(Oo(...u)),o.toLowerCase=()=>o.check(Io()),o.toUpperCase=()=>o.check(Co())}),Q3=S("ZodString",(o,i)=>{pr.init(o,i),wu.init(o,i),o.email=(l)=>o.check(Rl($y,l)),o.url=(l)=>o.check(Ml(Iy,l)),o.jwt=(l)=>o.check(Xl(Zy,l)),o.emoji=(l)=>o.check(jl(Cy,l)),o.guid=(l)=>o.check(Po(Pu,l)),o.uuid=(l)=>o.check(Ol(gr,l)),o.uuidv4=(l)=>o.check($l(gr,l)),o.uuidv6=(l)=>o.check(Il(gr,l)),o.uuidv7=(l)=>o.check(Cl(gr,l)),o.nanoid=(l)=>o.check(Nl(My,l)),o.guid=(l)=>o.check(Po(Pu,l)),o.cuid=(l)=>o.check(Ll(jy,l)),o.cuid2=(l)=>o.check(ql(Ny,l)),o.ulid=(l)=>o.check(zl(Ly,l)),o.base64=(l)=>o.check(Wl(Fy,l)),o.base64url=(l)=>o.check(Zl(Vy,l)),o.xid=(l)=>o.check(Dl(qy,l)),o.ksuid=(l)=>o.check(Bl(zy,l)),o.ipv4=(l)=>o.check(Yl(Dy,l)),o.ipv6=(l)=>o.check(Kl(By,l)),o.cidrv4=(l)=>o.check(Fl(Yy,l)),o.cidrv6=(l)=>o.check(Vl(Ky,l)),o.e164=(l)=>o.check(Ul(Wy,l)),o.datetime=(l)=>o.check(Mo(l)),o.date=(l)=>o.check(jo(l)),o.time=(l)=>o.check(No(l)),o.duration=(l)=>o.check(Lo(l))});function n(o){return Al(Q3,o)}var ce=S("ZodStringFormat",(o,i)=>{le.init(o,i),wu.init(o,i)}),$y=S("ZodEmail",(o,i)=>{As.init(o,i),ce.init(o,i)});var Pu=S("ZodGUID",(o,i)=>{Es.init(o,i),ce.init(o,i)});var gr=S("ZodUUID",(o,i)=>{Ss.init(o,i),ce.init(o,i)});var Iy=S("ZodURL",(o,i)=>{Rs.init(o,i),ce.init(o,i)});var Cy=S("ZodEmoji",(o,i)=>{Os.init(o,i),ce.init(o,i)});var My=S("ZodNanoID",(o,i)=>{$s.init(o,i),ce.init(o,i)});var jy=S("ZodCUID",(o,i)=>{Is.init(o,i),ce.init(o,i)});var Ny=S("ZodCUID2",(o,i)=>{Cs.init(o,i),ce.init(o,i)});var Ly=S("ZodULID",(o,i)=>{Ms.init(o,i),ce.init(o,i)});var qy=S("ZodXID",(o,i)=>{js.init(o,i),ce.init(o,i)});var zy=S("ZodKSUID",(o,i)=>{Ns.init(o,i),ce.init(o,i)});var Dy=S("ZodIPv4",(o,i)=>{Bs.init(o,i),ce.init(o,i)});var By=S("ZodIPv6",(o,i)=>{Ys.init(o,i),ce.init(o,i)});var Yy=S("ZodCIDRv4",(o,i)=>{Ks.init(o,i),ce.init(o,i)});var Ky=S("ZodCIDRv6",(o,i)=>{Fs.init(o,i),ce.init(o,i)});var Fy=S("ZodBase64",(o,i)=>{Ws.init(o,i),ce.init(o,i)});var Vy=S("ZodBase64URL",(o,i)=>{Zs.init(o,i),ce.init(o,i)});var Wy=S("ZodE164",(o,i)=>{Xs.init(o,i),ce.init(o,i)});var Zy=S("ZodJWT",(o,i)=>{Gs.init(o,i),ce.init(o,i)});var Xz=S("ZodNumber",(o,i)=>{xo.init(o,i),Tn.init(o,i),o.gt=(u,d)=>o.check(Vt(u,d)),o.gte=(u,d)=>o.check(Ye(u,d)),o.min=(u,d)=>o.check(Ye(u,d)),o.lt=(u,d)=>o.check(Ft(u,d)),o.lte=(u,d)=>o.check(dt(u,d)),o.max=(u,d)=>o.check(dt(u,d)),o.int=(u)=>o.check(Tu(u)),o.safe=(u)=>o.check(Tu(u)),o.positive=(u)=>o.check(Vt(0,u)),o.nonnegative=(u)=>o.check(Ye(0,u)),o.negative=(u)=>o.check(Ft(0,u)),o.nonpositive=(u)=>o.check(dt(0,u)),o.multipleOf=(u,d)=>o.check(wn(u,d)),o.step=(u,d)=>o.check(wn(u,d)),o.finite=()=>o;let l=o._zod.bag;o.minValue=Math.max(l.minimum??Number.NEGATIVE_INFINITY,l.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,o.maxValue=Math.min(l.maximum??Number.POSITIVE_INFINITY,l.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,o.isInt=(l.format??"").includes("int")||Number.isSafeInteger(l.multipleOf??0.5),o.isFinite=!0,o.format=l.format??null});function a(o){return eu(Xz,o)}var Uy=S("ZodNumberFormat",(o,i)=>{Hs.init(o,i),Xz.init(o,i)});function Tu(o){return tu(Uy,o)}var eY=S("ZodBoolean",(o,i)=>{Js.init(o,i),Tn.init(o,i)});function h(o){return nu(eY,o)}var Gre=S("ZodBigInt",(o,i)=>{Qs.init(o,i),Tn.init(o,i),o.gte=(u,d)=>o.check(Ye(u,d)),o.min=(u,d)=>o.check(Ye(u,d)),o.gt=(u,d)=>o.check(Vt(u,d)),o.gte=(u,d)=>o.check(Ye(u,d)),o.min=(u,d)=>o.check(Ye(u,d)),o.lt=(u,d)=>o.check(Ft(u,d)),o.lte=(u,d)=>o.check(dt(u,d)),o.max=(u,d)=>o.check(dt(u,d)),o.positive=(u)=>o.check(Vt(BigInt(0),u)),o.negative=(u)=>o.check(Ft(BigInt(0),u)),o.nonpositive=(u)=>o.check(dt(BigInt(0),u)),o.nonnegative=(u)=>o.check(Ye(BigInt(0),u)),o.multipleOf=(u,d)=>o.check(wn(u,d));let l=o._zod.bag;o.minValue=l.minimum??null,o.maxValue=l.maximum??null,o.format=l.format??null});var Xy=S("ZodNull",(o,i)=>{el.init(o,i),Tn.init(o,i)});function ER(o){return ru(Xy,o)}var Gy=S("ZodAny",(o,i)=>{tl.init(o,i),Tn.init(o,i)});function Ck(){return ou(Gy)}var Hy=S("ZodUnknown",(o,i)=>{nl.init(o,i),Tn.init(o,i)});function Oe(){return iu(Hy)}var Jy=S("ZodNever",(o,i)=>{rl.init(o,i),Tn.init(o,i)});function jn(o){return au(Jy,o)}var Yre=S("ZodDate",(o,i)=>{ol.init(o,i),Tn.init(o,i),o.min=(u,d)=>o.check(Ye(u,d)),o.max=(u,d)=>o.check(dt(u,d));let l=o._zod.bag;o.minDate=l.minimum?new Date(l.minimum):null,o.maxDate=l.maximum?new Date(l.maximum):null});var Jre=S("ZodArray",(o,i)=>{il.init(o,i),Tn.init(o,i),o.element=i.element,o.min=(l,u)=>o.check(Wt(l,u)),o.nonempty=(l)=>o.check(Wt(1,l)),o.max=(l,u)=>o.check(mr(l,u)),o.length=(l,u)=>o.check(fr(l,u)),o.unwrap=()=>o.element});function b(o,i){return su(Jre,o,i)}var Ag=S("ZodObject",(o,i)=>{al.init(o,i),Tn.init(o,i),ne(o,"shape",()=>i.shape),o.keyof=()=>p(Object.keys(o._zod.def.shape)),o.catchall=(l)=>o.clone({...o._zod.def,catchall:l}),o.passthrough=()=>o.clone({...o._zod.def,catchall:Oe()}),o.loose=()=>o.clone({...o._zod.def,catchall:Oe()}),o.strict=()=>o.clone({...o._zod.def,catchall:jn()}),o.strip=()=>o.clone({...o._zod.def,catchall:void 0}),o.extend=(l)=>yy(o,l),o.merge=(l)=>gy(o,l),o.pick=(l)=>my(o,l),o.omit=(l)=>fy(o,l),o.partial=(...l)=>hy($u,o,l[0]),o.required=(...l)=>ky(Iu,o,l[0])});function s(o,i){let l={type:"object",get shape(){return Pn(this,"shape",{...o}),this.shape},...j(i)};return new Ag(l)}function GB(o,i){return new Ag({type:"object",get shape(){return Pn(this,"shape",{...o}),this.shape},catchall:jn(),...j(i)})}function IR(o,i){return new Ag({type:"object",get shape(){return Pn(this,"shape",{...o}),this.shape},catchall:Oe(),...j(i)})}var Au=S("ZodUnion",(o,i)=>{vo.init(o,i),Tn.init(o,i),o.options=i.options});function Ee(o,i){return new Au({type:"union",options:o,...j(i)})}var Qy=S("ZodDiscriminatedUnion",(o,i)=>{Au.init(o,i),sl.init(o,i)});function Ko(o,i,l){return new Qy({type:"union",options:i,discriminator:o,...j(l)})}var eg=S("ZodIntersection",(o,i)=>{ll.init(o,i),Tn.init(o,i)});function tg(o,i){return new eg({type:"intersection",left:o,right:i})}var ng=S("ZodTuple",(o,i)=>{ul.init(o,i),Tn.init(o,i),o.rest=(l)=>o.clone({...o._zod.def,rest:l})});function tY(o,i,l){let u=i instanceof te,d=u?l:i;return new ng({type:"tuple",items:o,rest:u?i:null,...j(d)})}var Ru=S("ZodRecord",(o,i)=>{dl.init(o,i),Tn.init(o,i),o.keyType=i.keyType,o.valueType=i.valueType});function Me(o,i,l){return new Ru({type:"record",keyType:o,valueType:i,...j(l)})}function voe(o,i,l){return new Ru({type:"record",keyType:Ee([o,jn()]),valueType:i,...j(l)})}var qo=S("ZodEnum",(o,i)=>{cl.init(o,i),Tn.init(o,i),o.enum=i.entries,o.options=Object.values(i.entries);let l=new Set(Object.keys(i.entries));o.extract=(u,d)=>{let m={};for(let k of u)if(l.has(k))m[k]=i.entries[k];else throw Error(`Key ${k} not found in enum`);return new qo({...i,checks:[],...j(d),entries:m})},o.exclude=(u,d)=>{let m={...i.entries};for(let k of u)if(l.has(k))delete m[k];else throw Error(`Key ${k} not found in enum`);return new qo({...i,checks:[],...j(d),entries:m})}});function p(o,i){let l=Array.isArray(o)?Object.fromEntries(o.map((u)=>[u,u])):o;return new qo({type:"enum",entries:l,...j(i)})}var rg=S("ZodLiteral",(o,i)=>{pl.init(o,i),Tn.init(o,i),o.values=new Set(i.values),Object.defineProperty(o,"value",{get(){if(i.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function I(o,i){return new rg({type:"literal",values:Array.isArray(o)?o:[o],...j(i)})}var og=S("ZodTransform",(o,i)=>{ml.init(o,i),Tn.init(o,i),o._zod.parse=(l,u)=>{l.addIssue=(m)=>{if(typeof m==="string")l.issues.push(Kt(m,l.value,i));else{let k=m;if(k.fatal)k.continue=!1;k.code??(k.code="custom"),k.input??(k.input=l.value),k.inst??(k.inst=o),k.continue??(k.continue=!0),l.issues.push(Kt(k))}};let d=i.transform(l.value,l);if(d instanceof Promise)return d.then((m)=>(l.value=m,l));return l.value=d,l}});function Ou(o){return new og({type:"transform",transform:o})}var $u=S("ZodOptional",(o,i)=>{fl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType});function Eu(o){return new $u({type:"optional",innerType:o})}var ig=S("ZodNullable",(o,i)=>{hl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType});function Su(o){return new ig({type:"nullable",innerType:o})}var ag=S("ZodDefault",(o,i)=>{kl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType,o.removeDefault=o.unwrap});function sg(o,i){return new ag({type:"default",innerType:o,get defaultValue(){return typeof i==="function"?i():i}})}var lg=S("ZodPrefault",(o,i)=>{_l.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType});function ug(o,i){return new lg({type:"prefault",innerType:o,get defaultValue(){return typeof i==="function"?i():i}})}var Iu=S("ZodNonOptional",(o,i)=>{xl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType});function dg(o,i){return new Iu({type:"nonoptional",innerType:o,...j(i)})}var cg=S("ZodCatch",(o,i)=>{Pl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.innerType,o.removeCatch=o.unwrap});function pg(o,i){return new cg({type:"catch",innerType:o,catchValue:typeof i==="function"?i:()=>i})}var Xre=S("ZodPipe",(o,i)=>{Tl.init(o,i),Tn.init(o,i),o.in=i.in,o.out=i.out});function zo(o,i){return new Xre({type:"pipe",in:o,out:i})}var mg=S("ZodReadonly",(o,i)=>{El.init(o,i),Tn.init(o,i)});function fg(o){return new mg({type:"readonly",innerType:o})}var yg=S("ZodLazy",(o,i)=>{Sl.init(o,i),Tn.init(o,i),o.unwrap=()=>o._zod.def.getter()});function YB(o){return new yg({type:"lazy",getter:o})}var Do=S("ZodCustom",(o,i)=>{wl.init(o,i),Tn.init(o,i)});function gg(o){let i=new we({check:"custom"});return i._zod.check=o,i}function boe(o,i){return lu(Do,o??(()=>!0),i)}function hg(o,i={}){return uu(Do,o,i)}function bg(o){let i=gg((l)=>(l.addIssue=(u)=>{if(typeof u==="string")l.issues.push(Kt(u,l.value,i._zod.def));else{let d=u;if(d.fatal)d.continue=!1;d.code??(d.code="custom"),d.input??(d.input=l.value),d.inst??(d.inst=i),d.continue??(d.continue=!i._zod.def.abort),l.issues.push(Kt(d))}},o(l.value,l)));return i}function Soe(o,i={error:`Input not instance of ${o.name}`}){let l=new Do({type:"custom",check:"custom",fn:(u)=>u instanceof o,abort:!0,...j(i)});return l._zod.bag.Class=o,l}function pp(o){let i=YB(()=>Ee([n(o),a(),h(),ER(),b(i),Me(n(),i)]));return i}function Dk(o,i){return zo(Ou(o),i)}var gu={MAX_PROTOTYPE_DATA_POINTER_LENGTH:256,MAX_PROTOTYPE_LIST_ITEMS:2000,MAX_PROTOTYPE_NODES:2000,MAX_PROTOTYPE_STRING_KEYS:512,MAX_PROTOTYPE_STRING_LENGTH:2048,MAX_PROTOTYPE_STRING_LOCALES:16,MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH:16384},Cu=128,Zre=[600,840],Mu={pathKey:"^[A-Za-z_][A-Za-z0-9_]*$(?![\\s\\S])",stateKey:"^[A-Za-z_][A-Za-z0-9_]{0,63}$(?![\\s\\S])",boundKey:"^(?:[A-Za-z_][A-Za-z0-9_]{0,63}|(?=[^{]*\\{)(?:[A-Za-z0-9_]|\\{(?:route\\.[A-Za-z_][A-Za-z0-9_]*|index|(?!route\\.)[A-Za-z_][A-Za-z0-9_]{0,63}\\.[A-Za-z_][A-Za-z0-9_]{0,63})\\})+)$(?![\\s\\S])",color:"^#(?:[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$(?![\\s\\S])",blankText:"^[\\u0009-\\u000D\\u0020\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]*$(?![\\s\\S])",numberToken:"^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$(?![\\s\\S])",pointer:"^(?:/(?:[^~/]|~[01])*)+$(?![\\s\\S])",currencyCode:"^[A-Z]{3}$(?![\\s\\S])",formatLocale:"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$(?![\\s\\S])",formatTimeZone:"^[A-Za-z_]+([/+-][A-Za-z0-9_+-]+)*$(?![\\s\\S])",stringKey:"^[A-Za-z_][A-Za-z0-9_.-]{0,63}$",localeTag:"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",uploadDisposition:'^[^\\u0000-\\u001F\\u007F-\\u009F"]+$(?![\\s\\S])',uploadContentType:"^[!#$%&'*+.^_`|~0-9A-Za-z-]+/[!#$%&'*+.^_`|~0-9A-Za-z-]+$(?![\\s\\S])",openUrl:"^(?:https?|mailto|tel|sms|geo|maps):[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",reservedEmail:"^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)*(?:example\\.test|example\\.com|[A-Za-z0-9-]+\\.invalid)$(?![\\s\\S])",mediaUrl:"^https?://[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",decimalAmount:"^(?:0|[1-9][0-9]{0,8})(?:\\.[0-9]{1,2})?$(?![\\s\\S])",isoPeriod:"^P[1-9][0-9]{0,2}[DWMY]$(?![\\s\\S])",webViewUrl:"^https://[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",webOrigin:"^https://[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::(?!443(?![\\s\\S]))(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$(?![\\s\\S])"},ju=["text","label","placeholder","headline","title","supportingText","errorText","supporting","trailingText","message","semantics.label","semantics.hint"],Nu=["context","data","state","assets","theme","storage","value","repeat","payload","body","headers","query","strings"];var ae=Object.fromEntries(Object.entries(Mu).map(([o,i])=>[o,new RegExp(i)]));var V={patterns:{pathKey:"^[A-Za-z_][A-Za-z0-9_]*$(?![\\s\\S])",stateKey:"^[A-Za-z_][A-Za-z0-9_]{0,63}$(?![\\s\\S])",boundKey:"^(?:[A-Za-z_][A-Za-z0-9_]{0,63}|(?=[^{]*\\{)(?:[A-Za-z0-9_]|\\{(?:route\\.[A-Za-z_][A-Za-z0-9_]*|index|(?!route\\.)[A-Za-z_][A-Za-z0-9_]{0,63}\\.[A-Za-z_][A-Za-z0-9_]{0,63})\\})+)$(?![\\s\\S])",color:"^#(?:[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$(?![\\s\\S])",blankText:"^[\\u0009-\\u000D\\u0020\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]*$(?![\\s\\S])",numberToken:"^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$(?![\\s\\S])",pointer:"^(?:/(?:[^~/]|~[01])*)+$(?![\\s\\S])",currencyCode:"^[A-Z]{3}$(?![\\s\\S])",formatLocale:"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$(?![\\s\\S])",formatTimeZone:"^[A-Za-z_]+([/+-][A-Za-z0-9_+-]+)*$(?![\\s\\S])",stringKey:"^[A-Za-z_][A-Za-z0-9_.-]{0,63}$",localeTag:"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",uploadDisposition:'^[^\\u0000-\\u001F\\u007F-\\u009F"]+$(?![\\s\\S])',uploadContentType:"^[!#$%&'*+.^_`|~0-9A-Za-z-]+/[!#$%&'*+.^_`|~0-9A-Za-z-]+$(?![\\s\\S])",openUrl:"^(?:https?|mailto|tel|sms|geo|maps):[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",reservedEmail:"^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)*(?:example\\.test|example\\.com|[A-Za-z0-9-]+\\.invalid)$(?![\\s\\S])",mediaUrl:"^https?://[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",decimalAmount:"^(?:0|[1-9][0-9]{0,8})(?:\\.[0-9]{1,2})?$(?![\\s\\S])",isoPeriod:"^P[1-9][0-9]{0,2}[DWMY]$(?![\\s\\S])",webViewUrl:"^https://[^\\u0000-\\u0020\\u007F-\\u009F]+$(?![\\s\\S])",webOrigin:"^https://[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::(?!443(?![\\s\\S]))(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$(?![\\s\\S])"},limits:{MIN_PROTOTYPE_TIMER_MS:100,MAX_PROTOTYPE_TIMER_MS:3600000,MAX_PROTOTYPE_TIMERS:8,MAX_PROTOTYPE_TIMER_RUNS:1e4,MAX_PROTOTYPE_TIMER_ID_LENGTH:64,MAX_PROTOTYPE_NODES:2000,MAX_PROTOTYPE_DEPTH:24,MAX_PROTOTYPE_IMAGES:32,MAX_PROTOTYPE_SPEC_BYTES:1048576,MAX_PROTOTYPE_EMIT_PAYLOAD_BYTES:4096,MAX_PROTOTYPE_EMIT_PAYLOAD_DEPTH:24,MAX_PROTOTYPE_SELECTOR_DEPTH:8,MAX_PROTOTYPE_CONDITION_DEPTH:8,MAX_PROTOTYPE_DATA_BYTES:786432,MAX_PROTOTYPE_DATA_DEPTH:8,MAX_PROTOTYPE_DATA_ARRAY_ITEMS:2000,MAX_PROTOTYPE_DATA_POINTER_LENGTH:256,MAX_PROTOTYPE_REPEAT_PATH_CELLS:65536,MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH:16384,MAX_PROTOTYPE_SUBSTITUTED_TEXT_TOTAL:4194304,MAX_PROTOTYPE_PATCH_OPS:64,MAX_PROTOTYPE_PAGER_DP:1e4,MAX_PROTOTYPE_TEXT_SPANS:64,MAX_PROTOTYPE_STACK_SCREENS:32,MAX_PROTOTYPE_STACK_DEPTH:32,MAX_PROTOTYPE_EMIT_CONTEXT_ENTRIES:16,MAX_PROTOTYPE_CHECK_VALUE_LENGTH:4096,MAX_PROTOTYPE_DATA_WRITE_BYTES:786432,MAX_PROTOTYPE_STORAGE_BYTES:262144,MAX_PROTOTYPE_STORAGE_KEYS:64,MAX_PROTOTYPE_SECURE_VALUE_BYTES:4096,DEFAULT_PROTOTYPE_REQUEST_TIMEOUT_MS:1e4,MAX_PROTOTYPE_REQUEST_TIMEOUT_MS:30000,MAX_PROTOTYPE_RESPONSE_BYTES:262144,MAX_PROTOTYPE_REQUESTS_IN_FLIGHT:4,MAX_PROTOTYPE_ACTION_DEPTH:4,MAX_PROTOTYPE_PLATFORM_STATE_BYTES:65536,DEFAULT_PROTOTYPE_PLATFORM_TIMEOUT_MS:1e4,MAX_PROTOTYPE_PLATFORM_TIMEOUT_MS:300000,MAX_PROTOTYPE_PLATFORM_CALLS_IN_FLIGHT:4,MAX_PROTOTYPE_PLATFORM_HANDLERS:32,MAX_PROTOTYPE_PLATFORM_ARGS:16,MAX_PROTOTYPE_CHECK_QUANTIFIER_BOUND:100,MAX_PROTOTYPE_CHECK_VARIABLE_QUANTIFIERS:2,MAX_PROTOTYPE_SCROLL_BINDINGS:16,MAX_PROTOTYPE_EFFECTS:64,MAX_PROTOTYPE_ANIMATED_EFFECTS:8,MAX_PROTOTYPE_STRING_LOCALES:16,MAX_PROTOTYPE_STRING_KEYS:512,MAX_PROTOTYPE_STRING_LENGTH:2048,MAX_PROTOTYPE_LIST_ITEMS:2000,MAX_PROTOTYPE_CHANNELS:4,MAX_PROTOTYPE_CHANNEL_FRAME_BYTES:65536,MAX_PROTOTYPE_CHANNEL_SEND_BYTES:16384,MAX_PROTOTYPE_CHANNELS_OPEN:8,PROTOTYPE_CHANNEL_FLUSH_MS:50,MAX_PROTOTYPE_MEDIA_ITEMS:64,MAX_PROTOTYPE_MEDIA_TOTAL_BYTES:536870912,MAX_PROTOTYPE_MEDIA_IMAGE_BYTES:33554432,MAX_PROTOTYPE_MEDIA_VIDEO_BYTES:268435456,MAX_PROTOTYPE_MEDIA_AUDIO_BYTES:33554432,MAX_PROTOTYPE_CLIPBOARD_TEXT_BYTES:65536,MAX_PROTOTYPE_SHARE_TEXT_BYTES:65536,MAX_PROTOTYPE_SHARE_IMAGES:10,MAX_PROTOTYPE_SHARE_FILES:4,MAX_PROTOTYPE_UPLOAD_BYTES:10485760,MAX_PROTOTYPE_UPLOAD_PARTS:16,MAX_PROTOTYPE_KEYFRAME_NODES:16,MAX_PROTOTYPE_MEDIA_PLAYERS:4,MAX_PROTOTYPE_VIDEO_NODES:64,MAX_PROTOTYPE_ACTIVE_DECODERS:3,MAX_PROTOTYPE_LOOPS:8,MAX_PROTOTYPE_NOTIFICATION_CHANNELS:8,MAX_PROTOTYPE_NOTIFICATION_ACTIONS:3,MAX_PROTOTYPE_NOTIFICATION_ID_LENGTH:128,MAX_PROTOTYPE_NOTIFICATION_TITLE_LENGTH:128,MAX_PROTOTYPE_NOTIFICATION_BODY_LENGTH:1024,MAX_PROTOTYPE_NOTIFICATION_DATA_BYTES:1024,MAX_PROTOTYPE_NOTIFICATION_REPLY_BYTES:1024,MAX_PROTOTYPE_NOTIFICATION_BYTES:5120,MAX_PROTOTYPE_NOTIFICATION_BADGE:9999,MAX_PROTOTYPE_NOTIFICATIONS_ACTIVE:24,MAX_PROTOTYPE_NOTIFICATION_UPDATES_PER_SECOND:4},definitions:{authAccount:{kind:"object",fields:{id:{rule:{kind:"string",pattern:"stateKey",max:64},optional:!1},name:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},email:{rule:{kind:"string",pattern:"reservedEmail",max:254},optional:!1},avatar:{rule:{kind:"string",pattern:"stateKey",max:64},optional:!0}}},authBlock:{kind:"object",fields:{provider:{rule:{kind:"enum",values:["fake"]},optional:!1},accounts:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"authAccount"}},optional:!1},sessionTtlSeconds:{rule:{kind:"number",integer:!0,min:60,max:2592000},optional:!0}}},locationBlock:{kind:"object",fields:{accuracy:{rule:{kind:"enum",values:["precise","approximate"]},optional:!0},minIntervalMs:{rule:{kind:"number",integer:!0,min:1000,max:3600000},optional:!0},minDistanceM:{rule:{kind:"number",min:0,max:1e5},optional:!0}}},iconEffectTrigger:{kind:"object",exactlyOne:["key","data"],fields:{key:{rule:{kind:"key"},optional:!0},data:{rule:{kind:"pointer"},optional:!0}}},iconEffectRepeat:{kind:"choice",options:[{kind:"enum",values:["infinite"]},{kind:"number",integer:!0,min:1,max:20}]},iconEffect:{kind:"object",atMostOne:["trigger","repeat"],fields:{type:{rule:{kind:"enum",values:["bounce","pulse","scale","variableColor","wiggle","rotate","breathe","replace","drawOn"]},optional:!1},trigger:{rule:{kind:"ref",name:"iconEffectTrigger"},optional:!0},repeat:{rule:{kind:"ref",name:"iconEffectRepeat"},optional:!0}}},offset:{kind:"object",fields:{x:{rule:{kind:"number",integer:!1,min:-1e4,max:1e4},optional:!1},y:{rule:{kind:"number",integer:!1,min:-1e4,max:1e4},optional:!1}}},bounds:{kind:"object",fields:{x:{rule:{kind:"number",integer:!1,min:-1e4,max:1e4},optional:!1},y:{rule:{kind:"number",integer:!1,min:-1e4,max:1e4},optional:!1},width:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!1},height:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!1}}},selector:{kind:"object",fields:{elementId:{rule:{kind:"string"},optional:!0},text:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},container:{rule:{kind:"ref",name:"container"},optional:!0}},atLeastOne:!0},condition:{kind:"object",exactlyOne:["key","data","platform","all","any","not","valid"],dependents:{"key|data|platform":["equals","notEquals","gt","lt","empty","contains","startsWith","lengthGt","lengthLt"],key:["contains","startsWith","lengthGt","lengthLt"]},fields:{key:{rule:{kind:"boundKey"},optional:!0},equals:{rule:{kind:"scalar"},optional:!0},notEquals:{rule:{kind:"scalar"},optional:!0},gt:{rule:{kind:"number",integer:!1},optional:!0},lt:{rule:{kind:"number",integer:!1},optional:!0},empty:{rule:{kind:"boolean"},optional:!0},all:{rule:{kind:"array",item:{kind:"ref",name:"condition"},min:1,max:16,unique:!1},optional:!0},any:{rule:{kind:"array",item:{kind:"ref",name:"condition"},min:1,max:16,unique:!1},optional:!0},not:{rule:{kind:"ref",name:"condition"},optional:!0},data:{rule:{kind:"pointer"},optional:!0},valid:{rule:{kind:"choice",options:[{kind:"boundKey"},{kind:"array",min:1,max:8,item:{kind:"boundKey"}}]},optional:!0},platform:{rule:{kind:"pointer"},optional:!0},contains:{rule:{kind:"string",max:256},optional:!0},startsWith:{rule:{kind:"string",max:256},optional:!0},lengthGt:{rule:{kind:"number",integer:!0,min:0,max:1e5},optional:!0},lengthLt:{rule:{kind:"number",integer:!0,min:0,max:1e5},optional:!0}}},sheetCondition:{kind:"object",fields:{key:{rule:{kind:"boundKey"},optional:!1},equals:{rule:{kind:"boolean"},optional:!1}}},safeAreaPadding:{kind:"object",fields:{edges:{rule:{kind:"array",item:{kind:"enum",values:["top","bottom","start","end"]},min:1,unique:!0,max:4},optional:!1},types:{rule:{kind:"array",item:{kind:"enum",values:["systemBars","cutout","ime"]},min:1,unique:!0,max:3},optional:!1}}},dimension:{kind:"choice",options:[{kind:"enum",values:["fill","wrap"]},{kind:"object",fields:{dp:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!1}}}]},detent:{kind:"choice",options:[{kind:"enum",values:["half","full"]},{kind:"object",fields:{dp:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!1}}}]},padding:{kind:"object",fields:{top:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},bottom:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},start:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},end:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0}}},border:{kind:"object",fields:{width:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!1},color:{rule:{kind:"ref",name:"colorValue"},optional:!0},gradient:{rule:{kind:"ref",name:"gradient"},optional:!0}},exactlyOne:["color","gradient"]},gradientStop:{kind:"object",fields:{color:{rule:{kind:"ref",name:"colorValue"},optional:!1},position:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},gradient:{kind:"tagged",variants:{linear:{kind:"object",fields:{type:{rule:{kind:"enum",values:["linear"]},optional:!1},angle:{rule:{kind:"number",integer:!1},optional:!1},stops:{rule:{kind:"array",item:{kind:"ref",name:"gradientStop"},min:2,max:4},optional:!1}}},radial:{kind:"object",fields:{type:{rule:{kind:"enum",values:["radial"]},optional:!1},stops:{rule:{kind:"array",item:{kind:"ref",name:"gradientStop"},min:2,max:4},optional:!1}}}}},colorRole:{kind:"enum",values:["primary","onPrimary","primaryContainer","onPrimaryContainer","inversePrimary","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","surfaceTint","inverseSurface","inverseOnSurface","error","onError","errorContainer","onErrorContainer","outline","outlineVariant","scrim","surfaceBright","surfaceDim","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest","surfaceContainerLow","surfaceContainerLowest"]},colorToken:{kind:"choice",options:[{kind:"color"},{kind:"ref",name:"colorRole"}]},colorValue:{kind:"choice",options:[{kind:"ref",name:"colorToken"},{kind:"object",fields:{light:{rule:{kind:"ref",name:"colorToken"},optional:!1},dark:{rule:{kind:"ref",name:"colorToken"},optional:!1}}}]},imageAsset:{kind:"choice",options:[{kind:"string"},{kind:"object",fields:{light:{rule:{kind:"string"},optional:!1},dark:{rule:{kind:"string"},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}}]},cornerRadius:{kind:"choice",options:[{kind:"number",integer:!1,min:0,max:1e4},{kind:"enum",values:["none","extraSmall","small","medium","large","extraLarge","full"]},{kind:"object",fields:{topStart:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},topEnd:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},bottomEnd:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},bottomStart:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0}}}]},style:{kind:"object",fields:{width:{rule:{kind:"ref",name:"dimension"},optional:!0},height:{rule:{kind:"ref",name:"dimension"},optional:!0},weight:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!0},minWidth:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},maxWidth:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},minHeight:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},maxHeight:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},padding:{rule:{kind:"ref",name:"padding"},optional:!0},background:{rule:{kind:"ref",name:"colorValue"},optional:!0},cornerRadius:{rule:{kind:"ref",name:"cornerRadius"},optional:!0},border:{rule:{kind:"ref",name:"border"},optional:!0},elevation:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!0},shadowColor:{rule:{kind:"ref",name:"colorValue"},optional:!0},gradient:{rule:{kind:"ref",name:"gradient"},optional:!0},aspectRatio:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!0},offset:{rule:{kind:"ref",name:"offset"},optional:!0},alpha:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},pressScale:{rule:{kind:"number",integer:!1,min:0.5,max:1},optional:!0},shimmer:{rule:{kind:"boolean"},optional:!0},alignment:{rule:{kind:"enum",values:["topStart","topCenter","topEnd","centerStart","center","centerEnd","bottomStart","bottomCenter","bottomEnd"]},optional:!0},arrangement:{rule:{kind:"enum",values:["start","center","end","spaceBetween","spaceAround","spaceEvenly"]},optional:!0},spacing:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},runSpacing:{rule:{kind:"number",integer:!1,min:0,max:1e4},optional:!0},textSize:{rule:{kind:"number",integer:!1,min:0.000001,max:1000},optional:!0},fontWeight:{rule:{kind:"number",integer:!0,min:100,max:900},optional:!0},color:{rule:{kind:"ref",name:"colorValue"},optional:!0},textAlign:{rule:{kind:"enum",values:["start","center","end","justify"]},optional:!0},maxLines:{rule:{kind:"number",integer:!0,min:1,max:2147483647},optional:!0},lineHeight:{rule:{kind:"number",integer:!1,min:0.000001,max:1000},optional:!0},letterSpacing:{rule:{kind:"number",integer:!1,min:-1000,max:1000},optional:!0},textDecoration:{rule:{kind:"enum",values:["none","underline","lineThrough","underlineLineThrough"]},optional:!0},fontStyle:{rule:{kind:"enum",values:["normal","italic"]},optional:!0},overflow:{rule:{kind:"enum",values:["clip","ellipsis","visible"]},optional:!0},fontFamily:{rule:{kind:"choice",options:[{kind:"enum",values:["default","sansSerif","serif","monospace"]},{kind:"object",fields:{asset:{rule:{kind:"string"},optional:!1}}}]},optional:!0},textStyle:{rule:{kind:"enum",values:["displayLarge","displayMedium","displaySmall","headlineLarge","headlineMedium","headlineSmall","titleLarge","titleMedium","titleSmall","bodyLarge","bodyMedium","bodySmall","labelLarge","labelMedium","labelSmall"]},optional:!0},scale:{rule:{kind:"number",integer:!1,min:0,max:4},optional:!0},rotation:{rule:{kind:"number",integer:!1,min:-360,max:360},optional:!0},shader:{rule:{kind:"ref",name:"shader"},optional:!0},shadows:{rule:{kind:"array",item:{kind:"ref",name:"shadow"},min:1,max:3},optional:!0},cornerStyle:{rule:{kind:"enum",values:["circular","continuous"]},optional:!0},effects:{rule:{kind:"array",item:{kind:"ref",name:"effect"},min:1,max:4},optional:!0},surface:{rule:{kind:"enum",values:["glass"]},optional:!0},glass:{rule:{kind:"ref",name:"glass"},optional:!0}}},styleWhenEntry:{kind:"object",fields:{when:{rule:{kind:"ref",name:"condition"},optional:!1},style:{rule:{kind:"ref",name:"style"},optional:!1}}},item:{kind:"object",fields:{label:{rule:{kind:"string"},optional:!1},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},image:{rule:{kind:"ref",name:"imageAsset"},optional:!0}}},anchor:{kind:"tagged",variants:{bounds:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bounds"]},optional:!1},bounds:{rule:{kind:"ref",name:"bounds"},optional:!1},alignment:{rule:{kind:"enum",values:["cover","top","bottom","start","end"]},optional:!0},offset:{rule:{kind:"ref",name:"offset"},optional:!0}}},element:{kind:"object",fields:{type:{rule:{kind:"enum",values:["element"]},optional:!1},selector:{rule:{kind:"ref",name:"selector"},optional:!1},alignment:{rule:{kind:"enum",values:["cover","top","bottom","start","end"]},optional:!1},offset:{rule:{kind:"ref",name:"offset"},optional:!0}}}}},placement:{kind:"tagged",variants:{fullscreen:{kind:"object",fields:{type:{rule:{kind:"enum",values:["fullscreen"]},optional:!1},scrim:{rule:{kind:"ref",name:"colorValue"},optional:!0}}},sheet:{kind:"object",fields:{type:{rule:{kind:"enum",values:["sheet"]},optional:!1},edge:{rule:{kind:"enum",values:["top","bottom"]},optional:!1},height:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!1}}},floating:{kind:"object",fields:{type:{rule:{kind:"enum",values:["floating"]},optional:!1},gravity:{rule:{kind:"enum",values:["topStart","topCenter","topEnd","centerStart","center","centerEnd","bottomStart","bottomCenter","bottomEnd"]},optional:!1},offset:{rule:{kind:"ref",name:"offset"},optional:!1}}}}},action:{kind:"tagged",variants:{emit:{kind:"object",fields:{type:{rule:{kind:"enum",values:["emit"]},optional:!1},name:{rule:{kind:"string"},optional:!1},payload:{rule:{kind:"json",maxBytes:4096,maxDepth:24},optional:!0},context:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{page:{rule:{kind:"string"},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}}]}},optional:!0},requireValid:{rule:{kind:"array",min:1,max:8,item:{kind:"boundKey"}},optional:!0}}},setPage:{kind:"object",fields:{type:{rule:{kind:"enum",values:["setPage"]},optional:!1},pager:{rule:{kind:"string"},optional:!1},page:{rule:{kind:"choice",options:[{kind:"enum",values:["next","prev"]},{kind:"number",integer:!0,min:0,max:2147483647}]},optional:!1}}},setState:{kind:"object",fields:{type:{rule:{kind:"enum",values:["setState"]},optional:!1},key:{rule:{kind:"boundKey"},optional:!1},value:{rule:{kind:"choice",options:[{kind:"scalar"},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},optional:!1}}},toggle:{kind:"object",fields:{type:{rule:{kind:"enum",values:["toggle"]},optional:!1},key:{rule:{kind:"boundKey"},optional:!1}}},increment:{kind:"object",fields:{type:{rule:{kind:"enum",values:["increment"]},optional:!1},key:{rule:{kind:"boundKey"},optional:!1},by:{rule:{kind:"number",integer:!1},optional:!0}}},dismiss:{kind:"object",fields:{type:{rule:{kind:"enum",values:["dismiss"]},optional:!1}}},hideKeyboard:{kind:"object",fields:{type:{rule:{kind:"enum",values:["hideKeyboard"]},optional:!1}}},decrement:{kind:"object",fields:{type:{rule:{kind:"enum",values:["decrement"]},optional:!1},key:{rule:{kind:"boundKey"},optional:!1},by:{rule:{kind:"number",integer:!1},optional:!0}}},push:{kind:"object",fields:{type:{rule:{kind:"enum",values:["push"]},optional:!1},stack:{rule:{kind:"string"},optional:!1},screen:{rule:{kind:"string"},optional:!1},transition:{rule:{kind:"ref",name:"stackTransition"},optional:!0},source:{rule:{kind:"string",min:1},optional:!0},params:{rule:{kind:"ref",name:"routeParams"},optional:!0}}},pop:{kind:"object",fields:{type:{rule:{kind:"enum",values:["pop"]},optional:!1},stack:{rule:{kind:"string"},optional:!1},force:{rule:{kind:"boolean"},optional:!0}}},popToRoot:{kind:"object",fields:{type:{rule:{kind:"enum",values:["popToRoot"]},optional:!1},stack:{rule:{kind:"string"},optional:!1}}},replace:{kind:"object",fields:{type:{rule:{kind:"enum",values:["replace"]},optional:!1},stack:{rule:{kind:"string"},optional:!1},screen:{rule:{kind:"string"},optional:!1},transition:{rule:{kind:"ref",name:"stackTransition"},optional:!0},source:{rule:{kind:"string",min:1},optional:!0},params:{rule:{kind:"ref",name:"routeParams"},optional:!0}}},setData:{kind:"object",fields:{type:{rule:{kind:"enum",values:["setData"]},optional:!1},path:{rule:{kind:"string",max:261},optional:!1},value:{rule:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},optional:!1}}},appendData:{kind:"object",fields:{type:{rule:{kind:"enum",values:["appendData"]},optional:!1},path:{rule:{kind:"string",max:261},optional:!1},value:{rule:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},optional:!1},maxItems:{rule:{kind:"number",integer:!0,min:1,max:2000},optional:!0}}},removeData:{kind:"object",fields:{type:{rule:{kind:"enum",values:["removeData"]},optional:!1},path:{rule:{kind:"string",max:261},optional:!1}}},request:{kind:"object",fields:{type:{rule:{kind:"enum",values:["request"]},optional:!1},method:{rule:{kind:"enum",values:["GET","POST","PUT","PATCH","DELETE","HEAD"]},optional:!0},url:{rule:{kind:"string",max:2048},optional:!1},headers:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"string",empty:!0,max:4096},{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}}]}},optional:!0},query:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"string",empty:!0,max:4096},{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}}]}},optional:!0},body:{rule:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{file:{rule:{kind:"ref",name:"requestUploadFile"},optional:!1},contentType:{rule:{kind:"string",max:256,pattern:"uploadContentType"},optional:!1}}},{kind:"object",fields:{multipart:{rule:{kind:"array",min:1,max:16,item:{kind:"ref",name:"requestUploadPart"}},optional:!1}}},{kind:"object",fields:{form:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}}]},minEntries:1},optional:!1}}}],preferMatchingFields:!0},optional:!0},into:{rule:{kind:"string",max:261},optional:!0},statusKey:{rule:{kind:"boundKey"},optional:!0},via:{rule:{kind:"enum",values:["host","device"]},optional:!0},allowSecureInRequest:{rule:{kind:"boolean"},optional:!0},timeoutMs:{rule:{kind:"number",integer:!0,min:1,max:30000},optional:!0},onSuccess:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},onError:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},append:{rule:{kind:"object",fields:{from:{rule:{kind:"pointer"},optional:!1},to:{rule:{kind:"string",max:261},optional:!1}}},optional:!0},progressKey:{rule:{kind:"key"},optional:!0}}},platform:{kind:"object",fields:{type:{rule:{kind:"enum",values:["platform"]},optional:!1},call:{rule:{kind:"string",max:64},optional:!1},args:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}},{kind:"string",max:64}]}},optional:!0},into:{rule:{kind:"string",max:261},optional:!0},statusKey:{rule:{kind:"boundKey"},optional:!0},timeoutMs:{rule:{kind:"number",integer:!0,min:1,max:300000},optional:!0},onSuccess:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},onError:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0}}},startTimer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["startTimer"]},optional:!1},id:{rule:{kind:"string",max:64},optional:!1},afterMs:{rule:{kind:"number",integer:!0,min:100,max:3600000},optional:!1},everyMs:{rule:{kind:"number",integer:!0,min:100,max:3600000},optional:!0},maxRuns:{rule:{kind:"number",integer:!0,min:1,max:1e4},optional:!0},actions:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!1}}},cancelTimer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["cancelTimer"]},optional:!1},id:{rule:{kind:"string",max:64},optional:!1}}},scrollTo:{kind:"object",fields:{type:{rule:{kind:"enum",values:["scrollTo"]},optional:!1},scroll:{rule:{kind:"string"},optional:!1},to:{rule:{kind:"choice",options:[{kind:"enum",values:["start","end"]},{kind:"object",fields:{key:{rule:{kind:"scalar"},optional:!1}}}]},optional:!1},animated:{rule:{kind:"boolean"},optional:!0}}},prependData:{kind:"object",fields:{type:{rule:{kind:"enum",values:["prependData"]},optional:!1},path:{rule:{kind:"string",max:261},optional:!1},value:{rule:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},optional:!1}}},upsertData:{kind:"object",fields:{type:{rule:{kind:"enum",values:["upsertData"]},optional:!1},path:{rule:{kind:"string",max:261},optional:!1},value:{rule:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{match:{rule:{kind:"enum",values:["text","kind"]},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},optional:!1},maxItems:{rule:{kind:"number",integer:!0,min:1,max:2000},optional:!0},key:{rule:{kind:"pointer"},optional:!1}}},setStack:{kind:"object",fields:{type:{rule:{kind:"enum",values:["setStack"]},optional:!1},stack:{rule:{kind:"string"},optional:!1},path:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"routeEntry"}},optional:!1}}}}},node:{kind:"tagged",variants:{box:{kind:"object",fields:{type:{rule:{kind:"enum",values:["box"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},stagger:{rule:{kind:"ref",name:"stagger"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},row:{kind:"object",fields:{type:{rule:{kind:"enum",values:["row"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},swipeActions:{rule:{kind:"ref",name:"swipeActions"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},stagger:{rule:{kind:"ref",name:"stagger"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},column:{kind:"object",fields:{type:{rule:{kind:"enum",values:["column"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},stagger:{rule:{kind:"ref",name:"stagger"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},flow:{kind:"object",fields:{type:{rule:{kind:"enum",values:["flow"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},maxLines:{rule:{kind:"number",integer:!0,min:1},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},grid:{kind:"object",fields:{type:{rule:{kind:"enum",values:["grid"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},columns:{rule:{kind:"choice",options:[{kind:"number",integer:!0,min:1,max:12},{kind:"object",fields:{minWidth:{rule:{kind:"number",integer:!1,min:0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005},optional:!1}}}]},optional:!1},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},carousel:{kind:"object",fields:{type:{rule:{kind:"enum",values:["carousel"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:1,unique:!1},optional:!1},repeat:{rule:{kind:"ref",name:"repeat"},optional:!0},variant:{rule:{kind:"enum",values:["multiBrowse","hero","uncontained"]},optional:!0},itemWidth:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!1},itemSpacing:{rule:{kind:"ref",name:"pagerDp"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},text:{kind:"object",fields:{type:{rule:{kind:"enum",values:["text"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},text:{rule:{kind:"string",empty:!0},optional:!0},spans:{rule:{kind:"array",item:{kind:"ref",name:"textSpan"},min:1,max:64,unique:!1},optional:!0},linkify:{rule:{kind:"ref",name:"linkify"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},contentTransition:{rule:{kind:"enum",values:["numeric","crossfade","none"]},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}},exactlyOne:["text","spans"]},image:{kind:"object",fields:{type:{rule:{kind:"enum",values:["image"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},asset:{rule:{kind:"ref",name:"imageAsset"},optional:!1},contentScale:{rule:{kind:"enum",values:["fit","crop","fill"]},optional:!0},zoomable:{rule:{kind:"ref",name:"zoomable"},optional:!0},filter:{rule:{kind:"ref",name:"imageFilter"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},icon:{kind:"object",fields:{type:{rule:{kind:"enum",values:["icon"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},effect:{rule:{kind:"ref",name:"iconEffect"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},name:{rule:{kind:"ref",name:"iconName"},optional:!1},variant:{rule:{kind:"ref",name:"iconVariant"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},spacer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["spacer"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},textField:{kind:"object",fields:{type:{rule:{kind:"enum",values:["textField"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},placeholder:{rule:{kind:"string",empty:!0},optional:!0},label:{rule:{kind:"string"},optional:!0},variant:{rule:{kind:"enum",values:["filled","outlined"]},optional:!0},supportingText:{rule:{kind:"string"},optional:!0},keyboardType:{rule:{kind:"enum",values:["text","number","decimal","email","phone","url","password"]},optional:!0},secure:{rule:{kind:"boolean"},optional:!0},multiline:{rule:{kind:"boolean"},optional:!0},minLines:{rule:{kind:"number",integer:!0,min:1,max:20},optional:!0},maxLines:{rule:{kind:"number",integer:!0,min:1,max:20},optional:!0},maxLength:{rule:{kind:"number",integer:!0,min:1,max:1e4},optional:!0},leadingIcon:{rule:{kind:"ref",name:"iconName"},optional:!0},trailingIcon:{rule:{kind:"ref",name:"appBarAction"},optional:!0},imeAction:{rule:{kind:"enum",values:["done","next","search","send","go"]},optional:!0},onSubmit:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},errorWhen:{rule:{kind:"ref",name:"condition"},optional:!0},errorText:{rule:{kind:"string",max:256},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}},dependents:{errorWhen:["errorText"]}},switch:{kind:"object",fields:{type:{rule:{kind:"enum",values:["switch"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},label:{rule:{kind:"string"},optional:!0},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},checkbox:{kind:"object",fields:{type:{rule:{kind:"enum",values:["checkbox"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},label:{rule:{kind:"string"},optional:!0},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},button:{kind:"object",fields:{type:{rule:{kind:"enum",values:["button"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},label:{rule:{kind:"string"},optional:!1},variant:{rule:{kind:"enum",values:["filled","tonal","elevated","outlined","text"]},optional:!0},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},radioGroup:{kind:"object",fields:{type:{rule:{kind:"enum",values:["radioGroup"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},options:{rule:{kind:"array",item:{kind:"ref",name:"radioOption"},min:2,max:16,unique:!1},optional:!1},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},select:{kind:"object",fields:{type:{rule:{kind:"enum",values:["select"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},options:{rule:{kind:"array",item:{kind:"ref",name:"radioOption"},min:2,max:32,unique:!1},optional:!1},label:{rule:{kind:"string"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},listItem:{kind:"object",fields:{type:{rule:{kind:"enum",values:["listItem"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},headline:{rule:{kind:"string"},optional:!1},supporting:{rule:{kind:"string"},optional:!0},leadingIcon:{rule:{kind:"ref",name:"iconName"},optional:!0},trailing:{rule:{kind:"ref",name:"listItemTrailing"},optional:!0},swipeActions:{rule:{kind:"ref",name:"swipeActions"},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},slider:{kind:"object",fields:{type:{rule:{kind:"enum",values:["slider"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},label:{rule:{kind:"string"},optional:!0},min:{rule:{kind:"number",integer:!1},optional:!1},max:{rule:{kind:"number",integer:!1},optional:!1},step:{rule:{kind:"number",integer:!1},optional:!0},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},chip:{kind:"object",fields:{type:{rule:{kind:"enum",values:["chip"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},label:{rule:{kind:"string"},optional:!1},variant:{rule:{kind:"enum",values:["assist","filter","input","suggestion"]},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},card:{kind:"object",fields:{type:{rule:{kind:"enum",values:["card"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onLongPress:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onDoubleTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},variant:{rule:{kind:"enum",values:["filled","elevated","outlined"]},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:0,unique:!1},optional:!1},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},iconButton:{kind:"object",fields:{type:{rule:{kind:"enum",values:["iconButton"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},icon:{rule:{kind:"ref",name:"iconName"},optional:!1},variant:{rule:{kind:"enum",values:["standard","filled","tonal","outlined"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},fab:{kind:"object",fields:{type:{rule:{kind:"enum",values:["fab"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},icon:{rule:{kind:"ref",name:"iconName"},optional:!1},label:{rule:{kind:"string"},optional:!0},size:{rule:{kind:"enum",values:["small","regular","large"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},segmentedButton:{kind:"object",fields:{type:{rule:{kind:"enum",values:["segmentedButton"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},options:{rule:{kind:"array",item:{kind:"ref",name:"radioOption"},min:2,max:5,unique:!1},optional:!1},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},topAppBar:{kind:"object",fields:{type:{rule:{kind:"enum",values:["topAppBar"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},title:{rule:{kind:"string"},optional:!1},variant:{rule:{kind:"enum",values:["small","centerAligned","medium","large"]},optional:!0},navigationIcon:{rule:{kind:"ref",name:"appBarAction"},optional:!0},actions:{rule:{kind:"array",item:{kind:"ref",name:"appBarAction"},min:1,max:3,unique:!1},optional:!0},onScroll:{rule:{kind:"enum",values:["pinned","enterAlways","exitUntilCollapsed"]},optional:!0},scroll:{rule:{kind:"string"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},divider:{kind:"object",fields:{type:{rule:{kind:"enum",values:["divider"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},orientation:{rule:{kind:"enum",values:["horizontal","vertical"]},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},badge:{kind:"object",fields:{type:{rule:{kind:"enum",values:["badge"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},text:{rule:{kind:"string"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},progress:{kind:"object",fields:{type:{rule:{kind:"enum",values:["progress"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},variant:{rule:{kind:"enum",values:["linear","circular"]},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!0},max:{rule:{kind:"number",integer:!1},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},dialog:{kind:"object",fields:{type:{rule:{kind:"enum",values:["dialog"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},title:{rule:{kind:"string"},optional:!0},text:{rule:{kind:"string"},optional:!0},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},confirm:{rule:{kind:"ref",name:"dialogButton"},optional:!1},dismiss:{rule:{kind:"ref",name:"dialogButton"},optional:!0},child:{rule:{kind:"ref",name:"node"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},menu:{kind:"object",fields:{type:{rule:{kind:"enum",values:["menu"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},items:{rule:{kind:"array",item:{kind:"ref",name:"menuItem"},min:1,max:16,unique:!1},optional:!1},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},snackbar:{kind:"object",fields:{type:{rule:{kind:"enum",values:["snackbar"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},text:{rule:{kind:"string"},optional:!1},action:{rule:{kind:"ref",name:"dialogButton"},optional:!0},durationMs:{rule:{kind:"number",integer:!0,min:1,max:600000},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},timePicker:{kind:"object",fields:{type:{rule:{kind:"enum",values:["timePicker"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},hourKey:{rule:{kind:"boundKey"},optional:!1},minuteKey:{rule:{kind:"boundKey"},optional:!1},is24Hour:{rule:{kind:"boolean"},optional:!0},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},datePicker:{kind:"object",fields:{type:{rule:{kind:"enum",values:["datePicker"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},checks:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"check"}},optional:!0},validateOn:{rule:{kind:"enum",values:["change","blur","submit"]},optional:!0},enabledWhen:{rule:{kind:"ref",name:"condition"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},scroll:{kind:"object",fields:{type:{rule:{kind:"enum",values:["scroll"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},axis:{rule:{kind:"enum",values:["vertical","horizontal"]},optional:!0},refresh:{rule:{kind:"ref",name:"scrollRefresh"},optional:!0},reverse:{rule:{kind:"boolean"},optional:!0},stickToEnd:{rule:{kind:"boolean"},optional:!0},atEndKey:{rule:{kind:"boundKey"},optional:!0},onStartReached:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},child:{rule:{kind:"ref",name:"node"},optional:!1},fadeEdges:{rule:{kind:"ref",name:"fadeEdges"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},edgeEffect:{rule:{kind:"enum",values:["soft","hard","none"]},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},pager:{kind:"object",fields:{type:{rule:{kind:"enum",values:["pager"]},optional:!1},id:{rule:{kind:"string"},optional:!1},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:1,unique:!1},optional:!1},axis:{rule:{kind:"enum",values:["horizontal","vertical"]},optional:!0},pageSpacing:{rule:{kind:"ref",name:"pagerDp"},optional:!0},peek:{rule:{kind:"object",fields:{start:{rule:{kind:"ref",name:"pagerDp"},optional:!0},end:{rule:{kind:"ref",name:"pagerDp"},optional:!0}}},optional:!0},pageSize:{rule:{kind:"ref",name:"pagerPageSize"},optional:!0},indicator:{rule:{kind:"enum",values:["none","dots"]},optional:!0},indicatorPlacement:{rule:{kind:"enum",values:["over","below"]},optional:!0},stateKey:{rule:{kind:"key"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},tabBar:{kind:"object",fields:{type:{rule:{kind:"enum",values:["tabBar"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},items:{rule:{kind:"array",item:{kind:"ref",name:"item"},min:1,unique:!1,max:32},optional:!1},pager:{rule:{kind:"string"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!0},scrollable:{rule:{kind:"boolean"},optional:!0},onScroll:{rule:{kind:"enum",values:["none","hide","minimize"]},optional:!0},scroll:{rule:{kind:"string"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}},binding:!0},bottomNav:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bottomNav"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},items:{rule:{kind:"array",item:{kind:"ref",name:"item"},min:2,unique:!1,max:5},optional:!1},pager:{rule:{kind:"string"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!0},onScroll:{rule:{kind:"enum",values:["none","hide","minimize"]},optional:!0},scroll:{rule:{kind:"string"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}},binding:!0},bottomSheet:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bottomSheet"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},child:{rule:{kind:"ref",name:"node"},optional:!1},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},detents:{rule:{kind:"array",item:{kind:"ref",name:"detent"},min:1,unique:!0,max:8},optional:!1},scrim:{rule:{kind:"ref",name:"colorValue"},optional:!0},dragHandle:{rule:{kind:"boolean"},optional:!0},dismissOnSwipe:{rule:{kind:"boolean"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},searchBar:{kind:"object",fields:{type:{rule:{kind:"enum",values:["searchBar"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},stateKey:{rule:{kind:"boundKey"},optional:!1},placeholder:{rule:{kind:"string",empty:!0},optional:!0},leadingIcon:{rule:{kind:"ref",name:"iconName"},optional:!0},trailingActions:{rule:{kind:"array",item:{kind:"ref",name:"appBarAction"},min:1,max:2,unique:!1},optional:!0},activeKey:{rule:{kind:"boundKey"},optional:!0},variant:{rule:{kind:"enum",values:["bar","docked"]},optional:!0},onSubmit:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},child:{rule:{kind:"ref",name:"node"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},stack:{kind:"object",fields:{type:{rule:{kind:"enum",values:["stack"]},optional:!1},id:{rule:{kind:"string"},optional:!1},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"ref",name:"stackTransition"},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},start:{rule:{kind:"string"},optional:!1},screens:{rule:{kind:"screenMap",min:1,max:32,item:{kind:"ref",name:"node"}},optional:!1},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},routes:{rule:{kind:"record",maxEntries:32,item:{kind:"ref",name:"route"}},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},chart:{kind:"object",fields:{type:{rule:{kind:"enum",values:["chart"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},variant:{rule:{kind:"enum",values:["line","area","bar","ring"]},optional:!1},series:{rule:{kind:"array",item:{kind:"ref",name:"chartSeries"},min:1,max:4,unique:!1},optional:!1},yRange:{rule:{kind:"ref",name:"chartRange"},optional:!0},xLabels:{rule:{kind:"enum",values:["none","ends","all"]},optional:!0},goal:{rule:{kind:"number",integer:!1},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},tooltip:{kind:"object",exactlyOne:["anchorTo","anchor"],fields:{type:{rule:{kind:"enum",values:["tooltip"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},text:{rule:{kind:"string",nonblank:!0},optional:!1},anchorTo:{rule:{kind:"string"},optional:!0},caret:{rule:{kind:"ref",name:"tooltipCaret"},optional:!0},spotlight:{rule:{kind:"ref",name:"tooltipSpotlight"},optional:!0},onDismiss:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},drawer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["drawer"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},child:{rule:{kind:"ref",name:"node"},optional:!1},edge:{rule:{kind:"ref",name:"drawerEdge"},optional:!1},openWhen:{rule:{kind:"ref",name:"sheetCondition"},optional:!1},scrim:{rule:{kind:"ref",name:"colorValue"},optional:!0},dismissOnSwipe:{rule:{kind:"boolean"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},list:{kind:"object",fields:{type:{rule:{kind:"enum",values:["list"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},axis:{rule:{kind:"enum",values:["vertical","horizontal"]},optional:!0},refresh:{rule:{kind:"ref",name:"scrollRefresh"},optional:!0},repeat:{rule:{kind:"ref",name:"listRepeat"},optional:!1},children:{rule:{kind:"array",item:{kind:"ref",name:"node"},min:1,max:1,unique:!1},optional:!1},header:{rule:{kind:"ref",name:"node"},optional:!0},footer:{rule:{kind:"ref",name:"node"},optional:!0},spacing:{rule:{kind:"number",integer:!1,min:0},optional:!0},contentPadding:{rule:{kind:"number",integer:!1,min:0},optional:!0},onEndReached:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},endThreshold:{rule:{kind:"number",integer:!0,min:1,max:50},optional:!0},maxItems:{rule:{kind:"number",integer:!0,min:1,max:2000},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},pasteButton:{kind:"object",fields:{type:{rule:{kind:"enum",values:["pasteButton"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},into:{rule:{kind:"pointer"},optional:!1},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0}}},adaptive:{kind:"object",fields:{type:{rule:{kind:"enum",values:["adaptive"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},kind:{rule:{kind:"enum",values:["listDetail","navigationSuite","supporting"]},optional:!1},list:{rule:{kind:"ref",name:"node"},optional:!0},detail:{rule:{kind:"ref",name:"node"},optional:!0},content:{rule:{kind:"ref",name:"node"},optional:!0},main:{rule:{kind:"ref",name:"node"},optional:!0},supporting:{rule:{kind:"ref",name:"node"},optional:!0},selectionKey:{rule:{kind:"key"},optional:!0},stateKey:{rule:{kind:"key"},optional:!0},openKey:{rule:{kind:"key"},optional:!0},items:{rule:{kind:"array",item:{kind:"ref",name:"radioOption"},min:1,max:8,unique:!1},optional:!0}}},videoPlayer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["videoPlayer"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},player:{rule:{kind:"key"},optional:!0},source:{rule:{kind:"ref",name:"mediaSource"},optional:!0},poster:{rule:{kind:"string",max:128},optional:!0},controls:{rule:{kind:"enum",values:["builtin","none"]},optional:!0},contentScale:{rule:{kind:"enum",values:["fit","crop","fill"]},optional:!0},autoplay:{rule:{kind:"enum",values:[!0,!1,"whenVisible"]},optional:!0},muted:{rule:{kind:"boolean"},optional:!0},loop:{rule:{kind:"boolean"},optional:!0},startMs:{rule:{kind:"number",integer:!0,min:0,max:86400000},optional:!0},positionKey:{rule:{kind:"key"},optional:!0},visibleThreshold:{rule:{kind:"number",min:0.1,max:1},optional:!0},resumePosition:{rule:{kind:"boolean"},optional:!0},captions:{rule:{kind:"array",item:{kind:"ref",name:"mediaCaption"},min:1,max:8,unique:!1},optional:!0}}},map:{kind:"object",fields:{type:{rule:{kind:"enum",values:["map"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},mapStyle:{rule:{kind:"enum",values:["plain","streets"]},optional:!0},backend:{rule:{kind:"enum",values:["auto","google","maplibre"]},optional:!0},camera:{rule:{kind:"ref",name:"mapCamera"},optional:!0},fit:{rule:{kind:"enum",values:["none","markers","route"]},optional:!0},markers:{rule:{kind:"ref",name:"mapMarkers"},optional:!0},polylines:{rule:{kind:"array",item:{kind:"ref",name:"mapPolyline"},min:1,max:8,unique:!1},optional:!0},showUserLocation:{rule:{kind:"boolean"},optional:!0},onMarkerTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onCameraIdle:{rule:{kind:"object",fields:{into:{rule:{kind:"pointer"},optional:!1}}},optional:!0}}},webView:{kind:"object",fields:{type:{rule:{kind:"enum",values:["webView"]},optional:!1},id:{rule:{kind:"key"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},url:{rule:{kind:"string",pattern:"webViewUrl",max:2048},optional:!1},allowedOrigins:{rule:{kind:"array",item:{kind:"string",pattern:"webOrigin",max:256},min:1,max:8,unique:!0},optional:!1},javaScript:{rule:{kind:"boolean"},optional:!0},navigationStateKey:{rule:{kind:"key"},optional:!0},titleKey:{rule:{kind:"key"},optional:!0},canGoBackKey:{rule:{kind:"key"},optional:!0},onNavigate:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},onBlockedNavigation:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0}}},castButton:{kind:"object",fields:{type:{rule:{kind:"enum",values:["castButton"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},player:{rule:{kind:"key"},optional:!1},protocols:{rule:{kind:"array",item:{kind:"enum",values:["googleCast","airplay"]},min:1,max:2,unique:!0},optional:!0}}},cameraPreview:{kind:"object",fields:{type:{rule:{kind:"enum",values:["cameraPreview"]},optional:!1},id:{rule:{kind:"string"},optional:!0},testTag:{rule:{kind:"string"},optional:!0},contentDescription:{rule:{kind:"string"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},style:{rule:{kind:"ref",name:"style"},optional:!0},styleWhen:{rule:{kind:"array",item:{kind:"ref",name:"styleWhenEntry"},min:1,max:8,unique:!1},optional:!0},visibleWhen:{rule:{kind:"ref",name:"condition"},optional:!0},sharedKey:{rule:{kind:"key"},optional:!0},shared:{rule:{kind:"ref",name:"shared"},optional:!0},transition:{rule:{kind:"choice",options:[{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},{kind:"object",fields:{type:{rule:{kind:"enum",values:["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]},optional:!1},delayMs:{rule:{kind:"number",integer:!0,min:0,max:600},optional:!0}}}]},optional:!0},animate:{rule:{kind:"ref",name:"animate"},optional:!0},anchor:{rule:{kind:"ref",name:"anchor"},optional:!0},span:{rule:{kind:"number",integer:!0,min:1},optional:!0},safeAreaPadding:{rule:{kind:"ref",name:"safeAreaPadding"},optional:!0},scrollTransition:{rule:{kind:"ref",name:"scrollTransition"},optional:!0},scrollLinked:{rule:{kind:"ref",name:"scrollLinked"},optional:!0},onAppear:{optional:!0,rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},semantics:{rule:{kind:"ref",name:"semantics"},optional:!0},ios:{rule:{kind:"ref",name:"iosNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},press:{rule:{kind:"ref",name:"press"},optional:!0},keyframes:{rule:{kind:"ref",name:"keyframes"},optional:!0},attentionLoop:{rule:{kind:"ref",name:"loop"},optional:!0},lensKey:{rule:{kind:"key"},optional:!0},flashKey:{rule:{kind:"key"},optional:!0},zoomKey:{rule:{kind:"key"},optional:!0},aspectRatio:{rule:{kind:"enum",values:["4:3","16:9","1:1"]},optional:!0},contentScale:{rule:{kind:"enum",values:["fit","crop","fill"]},optional:!0},tapToFocus:{rule:{kind:"boolean"},optional:!0},pinchToZoom:{rule:{kind:"boolean"},optional:!0},mode:{rule:{kind:"enum",values:["photo","video"]},optional:!0}}}}},window:{kind:"object",fields:{placement:{rule:{kind:"ref",name:"placement"},optional:!1},opacity:{rule:{kind:"number",integer:!0,min:0,max:100},optional:!0},layer:{rule:{kind:"enum",values:["app","system"]},optional:!0},persistence:{rule:{kind:"enum",values:["session","device"]},optional:!0},chrome:{rule:{kind:"enum",values:["bar","none"]},optional:!0},ios:{rule:{kind:"ref",name:"iosPresentationNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},backdrop:{rule:{kind:"ref",name:"backdrop"},optional:!0},deadTaps:{rule:{kind:"boolean"},optional:!0},layoutDirection:{rule:{kind:"enum",values:["ltr","rtl"]},optional:!0},keepScreenOn:{rule:{kind:"boolean"},optional:!0},brightness:{rule:{kind:"choice",options:[{kind:"enum",values:["system"]},{kind:"number",integer:!0,min:0,max:100}]},optional:!0},orientation:{rule:{kind:"enum",values:["portrait","landscape","unlocked"]},optional:!0},statusBar:{rule:{kind:"enum",values:["light","dark","auto"]},optional:!0},transition:{rule:{kind:"enum",values:["auto","none","fade","slide","scale"]},optional:!0}}},spec:{kind:"object",fields:{id:{rule:{kind:"string"},optional:!1},window:{rule:{kind:"ref",name:"window"},optional:!1},theme:{rule:{kind:"ref",name:"theme"},optional:!0},state:{rule:{kind:"map",item:{kind:"scalar"}},optional:!0},motion:{rule:{kind:"enum",values:["none","standard","reduced","expressive"]},optional:!0},root:{rule:{kind:"ref",name:"node"},optional:!1},data:{rule:{kind:"data"},optional:!0},storage:{rule:{kind:"ref",name:"storage"},optional:!0},requires:{rule:{kind:"ref",name:"platformRequires"},optional:!0},platform:{rule:{kind:"ref",name:"platformHandlers"},optional:!0},derive:{rule:{kind:"map",maxEntries:32,item:{kind:"ref",name:"derivedEntry"}},optional:!0},strings:{rule:{kind:"strings"},optional:!0},auth:{rule:{kind:"ref",name:"authBlock"},optional:!0},commerce:{rule:{kind:"ref",name:"commerceBlock"},optional:!0},location:{rule:{kind:"ref",name:"locationBlock"},optional:!0},sensors:{rule:{kind:"ref",name:"sensorsBlock"},optional:!0},notifications:{rule:{kind:"ref",name:"notificationsBlock"},optional:!0},channels:{rule:{kind:"map",maxEntries:4,item:{kind:"ref",name:"channel"}},optional:!0},media:{rule:{kind:"ref",name:"media"},optional:!0}}},storage:{kind:"object",fields:{version:{rule:{kind:"number",integer:!0,min:1,max:2147483647},optional:!1},keys:{rule:{kind:"array",item:{kind:"string",max:261},min:1,unique:!0,max:64},optional:!1},secure:{rule:{kind:"array",item:{kind:"string",max:261},min:1,unique:!0,max:8},optional:!0},secureAuth:{rule:{kind:"record",maxEntries:8,item:{kind:"enum",values:["biometric"]}},optional:!0}}},container:{kind:"object",fields:{elementId:{rule:{kind:"string"},optional:!0},text:{rule:{kind:"string",nonblank:!0},optional:!0},index:{rule:{kind:"number",integer:!0,min:0,max:2147483647},optional:!0},selectionStrategy:{rule:{kind:"enum",values:["unique"]},optional:!0},container:{rule:{kind:"ref",name:"container"},optional:!0}},exclusive:["elementId","text"]},iconName:{kind:"enum",values:["ac_unit","access_alarm","access_time","accessibility","accessible","account_balance","account_balance_wallet","account_box","account_circle","add","add_a_photo","add_alarm","add_box","add_circle","add_circle_outline","add_photo_alternate","add_shopping_cart","airplay","alarm","alarm_add","album","analytics","android","apps","archive","arrow_back","arrow_back_ios","arrow_downward","arrow_drop_down","arrow_forward","arrow_forward_ios","arrow_left","arrow_right","arrow_upward","article","assignment","attach_file","attach_money","audiotrack","autorenew","backspace","backup","bar_chart","battery_alert","battery_charging_full","battery_full","battery_std","bedtime","block","bluetooth","bluetooth_connected","bluetooth_disabled","book","bookmark","bookmark_border","bookmarks","broken_image","brush","build","cached","calculate","calendar_month","calendar_today","call","call_end","camera","camera_alt","campaign","cancel","category","chat","chat_bubble","chat_bubble_outline","check","check_box","check_box_outline_blank","check_circle","chevron_left","chevron_right","circle","clear","close","cloud","cloud_done","cloud_download","cloud_upload","code","collections","color_lens","comment","compare_arrows","computer","contacts","content_copy","content_cut","content_paste","create","credit_card","crop","crop_169","crop_free","dark_mode","dashboard","date_range","delete","delete_forever","delete_outline","delivery_dining","description","devices","dialpad","directions","directions_bike","directions_bus","directions_car","directions_run","directions_walk","done","download","drag_handle","drag_indicator","eco","edit","edit_note","email","emoji_emotions","equalizer","error","error_outline","event","event_available","event_busy","event_note","exit_to_app","expand_less","expand_more","explore","exposure_neg_1","face","fast_forward","fast_rewind","favorite","favorite_border","feedback","file_copy","file_download","file_upload","filter_alt","filter_list","fitness_center","flag","flight","folder","folder_open","format_align_left","format_bold","format_list_bulleted","format_list_numbered","forum","fullscreen","fullscreen_exit","gps_fixed","graphic_eq","grid_view","group","group_add","groups","headphones","headset","help","help_outline","highlight_off","history","home","hotel","hourglass_empty","hourglass_full","house","image","inbox","info","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","layers","library_add","library_music","light_mode","link","list","local_hospital","local_movies","location_on","lock","logout","mail","mail_outline","menu","mic","mic_off","monitor_heart","more_horiz","more_vert","music_note","notifications","notifications_off","pause","person","phone","phone_iphone","photo","photo_album","photo_camera","place","play_arrow","play_circle","psychology","public","push_pin","qr_code_scanner","radio_button_checked","radio_button_unchecked","receipt","receipt_long","redo","refresh","remove","repeat","replay","reply","report_problem","restaurant","rocket_launch","satellite","save","save_alt","schedule","school","science","search","security","sell","send","sensors","settings","share","shopping_bag","shopping_basket","shopping_cart","shuffle","skip_next","skip_previous","slideshow","sms","sort","speaker","speed","star","star_border","star_half","stop","storage","store","storefront","support","swap_horiz","swap_vert","sync","system_update_alt","thumb_down","thumb_up","timer","today","toggle_off","toggle_on","touch_app","translate","trending_down","trending_up","tune","undo","update","upload","verified","verified_user","videocam","videocam_off","visibility","visibility_off","volume_down","volume_off","volume_up","wallet","warning","wifi","work","work_outline","zoom_in","zoom_out"]},iconVariant:{kind:"enum",values:["filled","outlined","rounded","sharp","twoTone"]},themeColors:{kind:"object",fields:{seed:{rule:{kind:"color"},optional:!0},source:{rule:{kind:"enum",values:["device"]},optional:!0},light:{rule:{kind:"ref",name:"themeModeColors"},optional:!0},dark:{rule:{kind:"ref",name:"themeModeColors"},optional:!0},primary:{rule:{kind:"color"},optional:!0},onPrimary:{rule:{kind:"color"},optional:!0},primaryContainer:{rule:{kind:"color"},optional:!0},onPrimaryContainer:{rule:{kind:"color"},optional:!0},inversePrimary:{rule:{kind:"color"},optional:!0},secondary:{rule:{kind:"color"},optional:!0},onSecondary:{rule:{kind:"color"},optional:!0},secondaryContainer:{rule:{kind:"color"},optional:!0},onSecondaryContainer:{rule:{kind:"color"},optional:!0},tertiary:{rule:{kind:"color"},optional:!0},onTertiary:{rule:{kind:"color"},optional:!0},tertiaryContainer:{rule:{kind:"color"},optional:!0},onTertiaryContainer:{rule:{kind:"color"},optional:!0},background:{rule:{kind:"color"},optional:!0},onBackground:{rule:{kind:"color"},optional:!0},surface:{rule:{kind:"color"},optional:!0},onSurface:{rule:{kind:"color"},optional:!0},surfaceVariant:{rule:{kind:"color"},optional:!0},onSurfaceVariant:{rule:{kind:"color"},optional:!0},surfaceTint:{rule:{kind:"color"},optional:!0},inverseSurface:{rule:{kind:"color"},optional:!0},inverseOnSurface:{rule:{kind:"color"},optional:!0},error:{rule:{kind:"color"},optional:!0},onError:{rule:{kind:"color"},optional:!0},errorContainer:{rule:{kind:"color"},optional:!0},onErrorContainer:{rule:{kind:"color"},optional:!0},outline:{rule:{kind:"color"},optional:!0},outlineVariant:{rule:{kind:"color"},optional:!0},scrim:{rule:{kind:"color"},optional:!0},surfaceBright:{rule:{kind:"color"},optional:!0},surfaceDim:{rule:{kind:"color"},optional:!0},surfaceContainer:{rule:{kind:"color"},optional:!0},surfaceContainerHigh:{rule:{kind:"color"},optional:!0},surfaceContainerHighest:{rule:{kind:"color"},optional:!0},surfaceContainerLow:{rule:{kind:"color"},optional:!0},surfaceContainerLowest:{rule:{kind:"color"},optional:!0}},atLeastOne:!0},themeModeColors:{kind:"object",fields:{primary:{rule:{kind:"color"},optional:!0},onPrimary:{rule:{kind:"color"},optional:!0},primaryContainer:{rule:{kind:"color"},optional:!0},onPrimaryContainer:{rule:{kind:"color"},optional:!0},inversePrimary:{rule:{kind:"color"},optional:!0},secondary:{rule:{kind:"color"},optional:!0},onSecondary:{rule:{kind:"color"},optional:!0},secondaryContainer:{rule:{kind:"color"},optional:!0},onSecondaryContainer:{rule:{kind:"color"},optional:!0},tertiary:{rule:{kind:"color"},optional:!0},onTertiary:{rule:{kind:"color"},optional:!0},tertiaryContainer:{rule:{kind:"color"},optional:!0},onTertiaryContainer:{rule:{kind:"color"},optional:!0},background:{rule:{kind:"color"},optional:!0},onBackground:{rule:{kind:"color"},optional:!0},surface:{rule:{kind:"color"},optional:!0},onSurface:{rule:{kind:"color"},optional:!0},surfaceVariant:{rule:{kind:"color"},optional:!0},onSurfaceVariant:{rule:{kind:"color"},optional:!0},surfaceTint:{rule:{kind:"color"},optional:!0},inverseSurface:{rule:{kind:"color"},optional:!0},inverseOnSurface:{rule:{kind:"color"},optional:!0},error:{rule:{kind:"color"},optional:!0},onError:{rule:{kind:"color"},optional:!0},errorContainer:{rule:{kind:"color"},optional:!0},onErrorContainer:{rule:{kind:"color"},optional:!0},outline:{rule:{kind:"color"},optional:!0},outlineVariant:{rule:{kind:"color"},optional:!0},scrim:{rule:{kind:"color"},optional:!0},surfaceBright:{rule:{kind:"color"},optional:!0},surfaceDim:{rule:{kind:"color"},optional:!0},surfaceContainer:{rule:{kind:"color"},optional:!0},surfaceContainerHigh:{rule:{kind:"color"},optional:!0},surfaceContainerHighest:{rule:{kind:"color"},optional:!0},surfaceContainerLow:{rule:{kind:"color"},optional:!0},surfaceContainerLowest:{rule:{kind:"color"},optional:!0}},atLeastOne:!0},theme:{kind:"object",fields:{mode:{rule:{kind:"enum",values:["light","dark","system"]},optional:!0},colors:{rule:{kind:"ref",name:"themeColors"},optional:!0},typography:{rule:{kind:"ref",name:"themeTypography"},optional:!0},shapes:{rule:{kind:"ref",name:"themeShapes"},optional:!0},ios:{rule:{kind:"ref",name:"iosPresentationNamespace"},optional:!0},android:{rule:{kind:"ref",name:"androidNamespace"},optional:!0},design:{rule:{kind:"enum",values:["material","platform"]},optional:!0}},atLeastOne:!0},themeTypography:{kind:"object",fields:{scale:{rule:{kind:"number",integer:!1,min:0.75,max:1.5},optional:!0},fontFamily:{rule:{kind:"enum",values:["sans","serif","mono"]},optional:!0}},atLeastOne:!0},themeShapes:{kind:"object",fields:{corner:{rule:{kind:"enum",values:["none","small","medium","large","full"]},optional:!0}},atLeastOne:!0},radioOption:{kind:"object",fields:{value:{rule:{kind:"string"},optional:!1},label:{rule:{kind:"string"},optional:!1}}},listItemTrailing:{kind:"tagged",variants:{switch:{kind:"object",fields:{type:{rule:{kind:"enum",values:["switch"]},optional:!1},stateKey:{rule:{kind:"boundKey"},optional:!1}}},checkbox:{kind:"object",fields:{type:{rule:{kind:"enum",values:["checkbox"]},optional:!1},stateKey:{rule:{kind:"boundKey"},optional:!1}}},icon:{kind:"object",fields:{type:{rule:{kind:"enum",values:["icon"]},optional:!1},name:{rule:{kind:"ref",name:"iconName"},optional:!1}}}}},repeat:{kind:"object",fields:{items:{rule:{kind:"choice",options:[{kind:"array",item:{kind:"map",item:{kind:"scalar"}},min:1,max:128,unique:!1},{kind:"object",fields:{path:{rule:{kind:"pointer"},optional:!1}}}]},optional:!1},as:{rule:{kind:"key"},optional:!1},key:{rule:{kind:"key"},optional:!0},derive:{rule:{kind:"map",maxEntries:8,item:{kind:"ref",name:"repeatDerivedEntry"}},optional:!0},stagger:{rule:{kind:"number",integer:!0,min:0,max:100},optional:!0}}},appBarAction:{kind:"object",fields:{icon:{rule:{kind:"ref",name:"iconName"},optional:!1},label:{rule:{kind:"string"},optional:!1},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0}}},menuItem:{kind:"choice",options:[{kind:"object",fields:{label:{rule:{kind:"string"},optional:!1},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},trailingText:{rule:{kind:"string"},optional:!0},enabled:{rule:{kind:"boolean"},optional:!0}}},{kind:"object",fields:{type:{rule:{kind:"enum",values:["divider"]},optional:!1}}}]},dialogButton:{kind:"object",fields:{label:{rule:{kind:"string"},optional:!1},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0}}},scrollRefresh:{kind:"object",fields:{stateKey:{rule:{kind:"boundKey"},optional:!1},onRefresh:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!1}}},pagerDp:{kind:"number",integer:!1,min:0,max:1e4},swipeAction:{kind:"object",fields:{label:{rule:{kind:"string"},optional:!1},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},role:{rule:{kind:"enum",values:["default","destructive"]},optional:!0},color:{rule:{kind:"ref",name:"colorToken"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!1}}},swipeActions:{kind:"object",fields:{start:{rule:{kind:"array",item:{kind:"ref",name:"swipeAction"},min:1,unique:!1,max:3},optional:!0},end:{rule:{kind:"array",item:{kind:"ref",name:"swipeAction"},min:1,unique:!1,max:3},optional:!0},fullSwipe:{rule:{kind:"boolean"},optional:!0}}},pagerPageSize:{kind:"choice",options:[{kind:"enum",values:["fill"]},{kind:"object",fields:{dp:{rule:{kind:"number",integer:!1,min:0.000001,max:1e4},optional:!1}}}]},textSpanStyle:{kind:"object",fields:{color:{rule:{kind:"ref",name:"colorValue"},optional:!0},fontWeight:{rule:{kind:"number",integer:!0,min:100,max:900},optional:!0},fontStyle:{rule:{kind:"enum",values:["normal","italic"]},optional:!0},textDecoration:{rule:{kind:"enum",values:["none","underline","lineThrough","underlineLineThrough"]},optional:!0},textSize:{rule:{kind:"number",integer:!1,min:0.000001,max:1000},optional:!0},letterSpacing:{rule:{kind:"number",integer:!1,min:-1000,max:1000},optional:!0},fontFamily:{rule:{kind:"choice",options:[{kind:"enum",values:["default","sansSerif","serif","monospace"]},{kind:"object",fields:{asset:{rule:{kind:"string"},optional:!1}}}]},optional:!0},background:{rule:{kind:"ref",name:"colorValue"},optional:!0},stagger:{rule:{kind:"number",integer:!0,min:0,max:100},optional:!0}}},textSpan:{kind:"object",fields:{text:{rule:{kind:"string"},optional:!1},style:{rule:{kind:"ref",name:"textSpanStyle"},optional:!0},onTap:{rule:{kind:"array",item:{kind:"ref",name:"action"},min:1,unique:!1,max:32},optional:!0}}},check:{kind:"object",exactlyOne:["required","minLength","maxLength","min","max","format","pattern"],fields:{message:{rule:{kind:"string"},optional:!1},required:{rule:{kind:"true"},optional:!0},minLength:{rule:{kind:"number",integer:!0,min:0},optional:!0},maxLength:{rule:{kind:"number",integer:!0,min:0},optional:!0},min:{rule:{kind:"number",integer:!1},optional:!0},max:{rule:{kind:"number",integer:!1},optional:!0},format:{rule:{kind:"enum",values:["email","phone","digits","decimal","url"]},optional:!0},pattern:{rule:{kind:"string",empty:!0,max:128},optional:!0}}},chartSeries:{kind:"object",fields:{path:{rule:{kind:"pointer"},optional:!1},x:{rule:{kind:"key"},optional:!0},y:{rule:{kind:"key"},optional:!1},label:{rule:{kind:"string"},optional:!1},color:{rule:{kind:"ref",name:"colorValue"},optional:!0}}},chartRange:{kind:"object",fields:{min:{rule:{kind:"number",integer:!1},optional:!1},max:{rule:{kind:"number",integer:!1},optional:!1}}},linkify:{kind:"object",fields:{kinds:{rule:{kind:"array",min:1,max:3,unique:!0,item:{kind:"enum",values:["mention","hashtag","url"]}},optional:!1},style:{rule:{kind:"ref",name:"textSpanStyle"},optional:!0},onTap:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!1}}},animate:{kind:"object",fields:{durationMs:{rule:{kind:"number",integer:!0,min:0,max:2000},optional:!0},easing:{rule:{kind:"enum",values:["standard","emphasized","linear","spring"]},optional:!0},tempo:{rule:{kind:"enum",values:["fast","default","slow"]},optional:!0}}},zoomable:{kind:"object",fields:{maxScale:{rule:{kind:"number",integer:!1,min:1,max:8},optional:!1}}},platformBinding:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{platform:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1}}}]},platformPermission:{kind:"object",fields:{name:{rule:{kind:"enum",values:["camera","microphone","location","locationBackground","notifications","photos","photosAdd","contacts","calendar","bluetooth","nearbyWifi","motion","speech"]},optional:!1},purpose:{rule:{kind:"string",nonblank:!0,max:512},optional:!1}}},platformRequires:{kind:"object",fields:{platform:{rule:{kind:"array",min:1,max:32,unique:!0,item:{kind:"string",max:64}},optional:!0},permissions:{rule:{kind:"array",min:1,max:16,item:{kind:"ref",name:"platformPermission"}},optional:!0},background:{rule:{kind:"array",min:1,max:8,unique:!0,item:{kind:"enum",values:["audio","location","call","connectedDevice","transfer","camera","microphone","remoteNotification"]}},optional:!0}}},platformHandlers:{kind:"object",fields:{on:{rule:{kind:"record",maxEntries:32,item:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}}},optional:!1}}},stagger:{kind:"object",fields:{ms:{rule:{kind:"number",integer:!0,min:0,max:100},optional:!1},order:{rule:{kind:"enum",values:["forward","reverse","center"]},optional:!0}}},valueFormat:{kind:"object",fields:{number:{rule:{kind:"object",fields:{minFraction:{rule:{kind:"number",integer:!0,min:0,max:20},optional:!0},maxFraction:{rule:{kind:"number",integer:!0,min:0,max:20},optional:!0},grouping:{rule:{kind:"boolean"},optional:!0}}},optional:!0},compact:{rule:{kind:"object",fields:{style:{rule:{kind:"enum",values:["short","long"]},optional:!0}}},optional:!0},currency:{rule:{kind:"object",fields:{code:{rule:{kind:"string",pattern:"currencyCode"},optional:!1}}},optional:!0},percent:{rule:{kind:"object",fields:{minFraction:{rule:{kind:"number",integer:!0,min:0,max:20},optional:!0},maxFraction:{rule:{kind:"number",integer:!0,min:0,max:20},optional:!0}}},optional:!0},date:{rule:{kind:"object",fields:{style:{rule:{kind:"enum",values:["short","medium","long"]},optional:!0}}},optional:!0},time:{rule:{kind:"object",fields:{style:{rule:{kind:"enum",values:["short","medium","long"]},optional:!0}}},optional:!0},relative:{rule:{kind:"object",fields:{style:{rule:{kind:"enum",values:["narrow","short","long"]},optional:!0}}},optional:!0}},exactlyOne:["number","compact","currency","percent","date","time","relative"]},derivedEntry:{kind:"object",fields:{of:{rule:{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!0},state:{rule:{kind:"key"},optional:!0},value:{rule:{kind:"choice",options:[{kind:"number"},{kind:"string",empty:!0}]},optional:!0}},exactlyOne:["data","state","value"]},optional:!1},format:{rule:{kind:"ref",name:"valueFormat"},optional:!1},locale:{rule:{kind:"string",max:35,pattern:"formatLocale"},optional:!0},timeZone:{rule:{kind:"string",max:128,pattern:"formatTimeZone"},optional:!0}}},repeatDerivedEntry:{kind:"object",fields:{of:{rule:{kind:"object",fields:{item:{rule:{kind:"key"},optional:!0},value:{rule:{kind:"choice",options:[{kind:"number"},{kind:"string",empty:!0}]},optional:!0}},exactlyOne:["item","value"]},optional:!1},format:{rule:{kind:"ref",name:"valueFormat"},optional:!1},locale:{rule:{kind:"string",max:35,pattern:"formatLocale"},optional:!0},timeZone:{rule:{kind:"string",max:128,pattern:"formatTimeZone"},optional:!0}}},semantics:{kind:"object",atLeastOne:!0,fields:{heading:{rule:{kind:"boolean"},optional:!0},group:{rule:{kind:"boolean"},optional:!0},liveRegion:{rule:{kind:"enum",values:["polite","assertive"]},optional:!0},label:{rule:{kind:"string"},optional:!0},hint:{rule:{kind:"string"},optional:!0},traits:{rule:{kind:"array",min:1,max:3,unique:!0,item:{kind:"enum",values:["button","image","selected"]}},optional:!0}}},listRepeat:{kind:"object",fields:{items:{rule:{kind:"object",fields:{path:{rule:{kind:"pointer"},optional:!1}}},optional:!1},as:{rule:{kind:"key"},optional:!1},key:{rule:{kind:"key"},optional:!1}}},stackTransition:{kind:"enum",values:["platform","slide","fade","none","sharedAxisX","sharedAxisY","fadeThrough","zoom"]},shader:{kind:"object",fields:{asset:{rule:{kind:"string",max:256},optional:!1},uniforms:{rule:{kind:"record",maxEntries:16,keyPattern:"pathKey",item:{kind:"number",integer:!1,min:-1e6,max:1e6}},optional:!0}}},scrollEdge:{kind:"object",fields:{scale:{rule:{kind:"number",integer:!1},optional:!0},alpha:{rule:{kind:"number",integer:!1},optional:!0},rotation:{rule:{kind:"number",integer:!1},optional:!0}}},scrollTransition:{kind:"object",fields:{axis:{rule:{kind:"enum",values:["horizontal","vertical"]},optional:!1},edge:{rule:{kind:"ref",name:"scrollEdge"},optional:!1}}},scrollLinked:{kind:"object",fields:{source:{rule:{kind:"string"},optional:!1},range:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!1},alpha:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!0},scale:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!0},offsetY:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!0},offsetX:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!0},blur:{rule:{kind:"array",item:{kind:"number",integer:!1},min:2,max:2,unique:!1},optional:!0}}},effectAnimate:{kind:"object",fields:{periodMs:{rule:{kind:"number",integer:!0,min:400,max:20000},optional:!1}}},effectCenter:{kind:"object",fields:{x:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!1},y:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!1}}},effect:{kind:"tagged",variants:{noise:{kind:"object",fields:{type:{rule:{kind:"enum",values:["noise"]},optional:!1},amount:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},grain:{rule:{kind:"number",integer:!1,min:0.5,max:8},optional:!0},seed:{rule:{kind:"number",integer:!0,min:0,max:65535},optional:!0},monochrome:{rule:{kind:"boolean"},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},gradientMesh:{kind:"object",fields:{type:{rule:{kind:"enum",values:["gradientMesh"]},optional:!1},colors:{rule:{kind:"array",item:{kind:"ref",name:"colorValue"},min:4,max:4},optional:!1},softness:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},shimmer:{kind:"object",fields:{type:{rule:{kind:"enum",values:["shimmer"]},optional:!1},color:{rule:{kind:"ref",name:"colorValue"},optional:!0},angle:{rule:{kind:"number",integer:!1,min:-360,max:360},optional:!0},width:{rule:{kind:"number",integer:!1,min:0.05,max:1},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},glow:{kind:"object",fields:{type:{rule:{kind:"enum",values:["glow"]},optional:!1},color:{rule:{kind:"ref",name:"colorValue"},optional:!1},radius:{rule:{kind:"number",integer:!1,min:0,max:48},optional:!0},intensity:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},vignette:{kind:"object",fields:{type:{rule:{kind:"enum",values:["vignette"]},optional:!1},color:{rule:{kind:"ref",name:"colorValue"},optional:!0},intensity:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},radius:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},blur:{kind:"object",fields:{type:{rule:{kind:"enum",values:["blur"]},optional:!1},radius:{rule:{kind:"number",integer:!1,min:0,max:25},optional:!1},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},pixelate:{kind:"object",fields:{type:{rule:{kind:"enum",values:["pixelate"]},optional:!1},cell:{rule:{kind:"number",integer:!1,min:1,max:64},optional:!1},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},chromaticAberration:{kind:"object",fields:{type:{rule:{kind:"enum",values:["chromaticAberration"]},optional:!1},offset:{rule:{kind:"number",integer:!1,min:0,max:8},optional:!0},angle:{rule:{kind:"number",integer:!1,min:-360,max:360},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},wave:{kind:"object",fields:{type:{rule:{kind:"enum",values:["wave"]},optional:!1},amplitude:{rule:{kind:"number",integer:!1,min:0,max:16},optional:!0},wavelength:{rule:{kind:"number",integer:!1,min:8,max:400},optional:!0},angle:{rule:{kind:"number",integer:!1,min:-360,max:360},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}},ripple:{kind:"object",fields:{type:{rule:{kind:"enum",values:["ripple"]},optional:!1},amplitude:{rule:{kind:"number",integer:!1,min:0,max:16},optional:!0},wavelength:{rule:{kind:"number",integer:!1,min:8,max:400},optional:!0},center:{rule:{kind:"ref",name:"effectCenter"},optional:!0},animate:{rule:{kind:"ref",name:"effectAnimate"},optional:!0},phase:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!0}}}}},shadow:{kind:"object",fields:{color:{rule:{kind:"ref",name:"colorValue"},optional:!1},radius:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!1},spread:{rule:{kind:"number",integer:!1,min:-1000,max:1000},optional:!0},offset:{rule:{kind:"object",fields:{x:{rule:{kind:"number",integer:!1,min:-1000,max:1000},optional:!1},y:{rule:{kind:"number",integer:!1,min:-1000,max:1000},optional:!1}}},optional:!0},inner:{rule:{kind:"boolean"},optional:!0}}},fadeEdges:{kind:"object",fields:{top:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!0},bottom:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!0},start:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!0},end:{rule:{kind:"number",integer:!1,min:0,max:1000},optional:!0}}},imageFilter:{kind:"object",fields:{saturation:{rule:{kind:"number",integer:!1,min:0,max:2},optional:!0},tint:{rule:{kind:"ref",name:"colorValue"},optional:!0}}},backdrop:{kind:"object",fields:{material:{rule:{kind:"enum",values:["ultraThin","thin","regular","thick","glass"]},optional:!1},blur:{rule:{kind:"number",integer:!0,min:0,max:150},optional:!0},tint:{rule:{kind:"ref",name:"colorToken"},optional:!0}}},tooltipSpotlight:{kind:"object",fields:{padding:{rule:{kind:"number",integer:!0,min:0,max:64},optional:!0},cornerRadius:{rule:{kind:"number",integer:!0,min:0,max:64},optional:!0}}},tooltipCaret:{kind:"enum",values:["auto","top","bottom","start","end"]},drawerEdge:{kind:"enum",values:["start","end"]},iosPresentationNamespace:{kind:"object",fields:{buttonStyle:{rule:{kind:"enum",values:["glass","glassProminent"]},optional:!0},tab:{rule:{kind:"object",fields:{role:{rule:{kind:"enum",values:["search"]},optional:!1}}},optional:!0},sheet:{rule:{kind:"object",fields:{sizing:{rule:{kind:"enum",values:["form","page","fitted"]},optional:!1}}},optional:!0},hover:{rule:{kind:"enum",values:["lift","highlight"]},optional:!0},navigationTitle:{rule:{kind:"enum",values:["large","inline"]},optional:!0},glassGroup:{rule:{kind:"ref",name:"glassGroup"},optional:!0},glassUnion:{rule:{kind:"string",max:64,pattern:"stateKey"},optional:!0},glassTransition:{rule:{kind:"enum",values:["matchedGeometry","materialize","identity"]},optional:!0},backgroundExtension:{rule:{kind:"enum",values:[!0]},optional:!0}}},iosNamespace:{kind:"object",fields:{buttonStyle:{rule:{kind:"enum",values:["glass","glassProminent"]},optional:!0},bottomAccessory:{rule:{kind:"ref",name:"node"},optional:!0},tab:{rule:{kind:"object",fields:{role:{rule:{kind:"enum",values:["search"]},optional:!1}}},optional:!0},sheet:{rule:{kind:"object",fields:{sizing:{rule:{kind:"enum",values:["form","page","fitted"]},optional:!1}}},optional:!0},hover:{rule:{kind:"enum",values:["lift","highlight"]},optional:!0},navigationTitle:{rule:{kind:"enum",values:["large","inline"]},optional:!0},glassGroup:{rule:{kind:"ref",name:"glassGroup"},optional:!0},glassUnion:{rule:{kind:"string",max:64,pattern:"stateKey"},optional:!0},glassTransition:{rule:{kind:"enum",values:["matchedGeometry","materialize","identity"]},optional:!0},backgroundExtension:{rule:{kind:"enum",values:[!0]},optional:!0}}},androidNamespace:{kind:"object",fields:{predictiveBack:{rule:{kind:"object",fields:{style:{rule:{kind:"enum",values:["default","crossActivity","none"]},optional:!1}}},optional:!0},indication:{rule:{kind:"enum",values:["ripple","none"]},optional:!0}}},channelWhen:{kind:"choice",options:[{kind:"object",fields:{pointer:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1},equals:{rule:{kind:"json",maxDepth:24},optional:!1}}},{kind:"object",fields:{pointer:{rule:{kind:"choice",options:[{kind:"enum",values:[""]},{kind:"pointer"}]},optional:!1},exists:{rule:{kind:"boolean"},optional:!1}}},{kind:"object",fields:{event:{rule:{kind:"string"},optional:!1}}}]},channelRoute:{kind:"object",fields:{when:{rule:{kind:"ref",name:"channelWhen"},optional:!0},actions:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!1}}},channelReconnect:{kind:"object",fields:{maxAttempts:{rule:{kind:"number",integer:!0,min:0,max:20},optional:!1},initialDelayMs:{rule:{kind:"number",integer:!0,min:100,max:60000},optional:!1},maxDelayMs:{rule:{kind:"number",integer:!0,min:100,max:60000},optional:!1}}},channel:{kind:"object",fields:{kind:{rule:{kind:"enum",values:["websocket","sse"]},optional:!1},url:{rule:{kind:"string",max:2048},optional:!1},protocols:{rule:{kind:"array",min:0,max:4,item:{kind:"string"}},optional:!0},headers:{rule:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"string",empty:!0,max:4096},{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}}]}},optional:!0},via:{rule:{kind:"enum",values:["host","device"]},optional:!0},connect:{rule:{kind:"enum",values:["onShow","manual"]},optional:!0},statusKey:{rule:{kind:"key"},optional:!0},reconnect:{rule:{kind:"ref",name:"channelReconnect"},optional:!0},decode:{rule:{kind:"enum",values:["json","text"]},optional:!0},routes:{rule:{kind:"array",min:0,max:16,item:{kind:"ref",name:"channelRoute"}},optional:!0},onOpen:{rule:{kind:"array",min:0,max:32,item:{kind:"ref",name:"action"}},optional:!0},onClose:{rule:{kind:"array",min:0,max:32,item:{kind:"ref",name:"action"}},optional:!0},onError:{rule:{kind:"array",min:0,max:32,item:{kind:"ref",name:"action"}},optional:!0}}},shared:{kind:"object",fields:{key:{rule:{kind:"string",min:1,max:256},optional:!1},as:{rule:{kind:"enum",values:["element","bounds"]},optional:!1}}},routeParams:{kind:"record",maxEntries:16,item:{kind:"choice",options:[{kind:"scalar"},{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}}]}},routeEntry:{kind:"object",fields:{screen:{rule:{kind:"string"},optional:!1},params:{rule:{kind:"ref",name:"routeParams"},optional:!0}}},route:{kind:"object",fields:{params:{rule:{kind:"record",maxEntries:16,item:{kind:"enum",values:["string","number","boolean"]}},optional:!0},onEnter:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0},onBack:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"action"}},optional:!0}}},press:{kind:"object",atLeastOne:!0,fields:{scale:{rule:{kind:"number",integer:!1,min:0.85,max:1},optional:!0},alpha:{rule:{kind:"number",integer:!1,min:0.5,max:1},optional:!0}}},requestUploadFile:{kind:"object",fields:{asset:{rule:{kind:"string",max:256},optional:!1}}},requestUploadPart:{kind:"object",exactlyOne:["value","file"],fields:{name:{rule:{kind:"string",max:256,pattern:"uploadDisposition"},optional:!1},value:{rule:{kind:"ref",name:"requestUploadValue"},optional:!0},file:{rule:{kind:"ref",name:"requestUploadFile"},optional:!0},filename:{rule:{kind:"string",max:256,pattern:"uploadDisposition"},optional:!0},contentType:{rule:{kind:"string",max:256,pattern:"uploadContentType"},optional:!0}},exactlyOneAtObject:!0},requestUploadValue:{kind:"choice",options:[{kind:"object",fields:{state:{rule:{kind:"boundKey"},optional:!1}}},{kind:"object",fields:{item:{rule:{kind:"key"},optional:!1}}},{kind:"object",fields:{index:{rule:{kind:"enum",values:[!0]},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{value:{rule:{kind:"json",maxDepth:24},optional:!1}}}]},glass:{kind:"object",fields:{variant:{rule:{kind:"enum",values:["regular","clear"]},optional:!0},tint:{rule:{kind:"ref",name:"colorValue"},optional:!0},interactive:{rule:{kind:"boolean"},optional:!0}}},glassGroup:{kind:"object",fields:{spacing:{rule:{kind:"number",integer:!1,min:0,max:200},optional:!1}}},keyframePoints:{kind:"array",min:2,max:8,item:{kind:"array",min:2,max:2,item:{kind:"number",integer:!1}}},keyframeTrack:{kind:"choice",options:[{kind:"array",min:2,max:8,item:{kind:"array",min:2,max:2,item:{kind:"number",integer:!1}}},{kind:"object",fields:{points:{rule:{kind:"ref",name:"keyframePoints"},optional:!1},curve:{rule:{kind:"enum",values:["linear","standard","spring"]},optional:!0}}}]},keyframes:{kind:"object",fields:{trigger:{rule:{kind:"object",exactlyOne:["key","data"],fields:{key:{rule:{kind:"key"},optional:!0},data:{rule:{kind:"pointer"},optional:!0}}},optional:!1},durationMs:{rule:{kind:"number",integer:!0,min:100,max:3000},optional:!1},tracks:{rule:{kind:"object",atLeastOne:!0,fields:{scale:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},scaleX:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},scaleY:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},rotation:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},offsetX:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},offsetY:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0},alpha:{rule:{kind:"ref",name:"keyframeTrack"},optional:!0}}},optional:!1}}},mediaSource:{kind:"choice",options:[{kind:"object",fields:{asset:{rule:{kind:"string",max:128},optional:!1}}},{kind:"object",fields:{url:{rule:{kind:"string",pattern:"mediaUrl",max:2048},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}},{kind:"object",fields:{sample:{rule:{kind:"enum",values:["tone440","silence","colorBars","countdown"]},optional:!1}}}]},mediaCaptionCue:{kind:"object",fields:{startMs:{rule:{kind:"number",integer:!0,min:0,max:86400000},optional:!1},endMs:{rule:{kind:"number",integer:!0,min:0,max:86400000},optional:!1},text:{rule:{kind:"string",nonblank:!0,max:512},optional:!1}}},mediaCaption:{kind:"object",fields:{id:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},language:{rule:{kind:"string",nonblank:!0,max:35},optional:!1},label:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},source:{rule:{kind:"choice",options:[{kind:"object",fields:{asset:{rule:{kind:"string",max:128},optional:!1}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}}]},optional:!1}}},mediaPlayer:{kind:"object",fields:{kind:{rule:{kind:"enum",values:["video","audio"]},optional:!1},source:{rule:{kind:"ref",name:"mediaSource"},optional:!0},loop:{rule:{kind:"boolean"},optional:!0},queue:{rule:{kind:"pointer"},optional:!0}}},media:{kind:"object",fields:{players:{rule:{kind:"map",maxEntries:4,item:{kind:"ref",name:"mediaPlayer"}},optional:!1}}},notificationChannel:{kind:"object",fields:{id:{rule:{kind:"string",pattern:"stateKey",max:64},optional:!1},name:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},importance:{rule:{kind:"enum",values:["min","low","default","high"]},optional:!1},description:{rule:{kind:"string",max:256},optional:!0},showBadge:{rule:{kind:"boolean"},optional:!0}}},notificationsBlock:{kind:"object",fields:{channels:{rule:{kind:"array",min:1,max:8,item:{kind:"ref",name:"notificationChannel"}},optional:!1}}},mediaQueueItem:{kind:"object",fields:{id:{rule:{kind:"string",nonblank:!0,max:128},optional:!1},title:{rule:{kind:"string",nonblank:!0,max:256},optional:!1},artist:{rule:{kind:"string",max:256},optional:!0},album:{rule:{kind:"string",max:256},optional:!0},artwork:{rule:{kind:"string",max:128},optional:!0},source:{rule:{kind:"ref",name:"mediaSource"},optional:!1},durationMs:{rule:{kind:"number",integer:!0,min:0,max:86400000},optional:!0}}},mapCamera:{kind:"choice",options:[{kind:"object",fields:{lat:{rule:{kind:"number",integer:!1,min:-90,max:90},optional:!1},lng:{rule:{kind:"number",integer:!1,min:-180,max:180},optional:!1},zoom:{rule:{kind:"number",integer:!1,min:0,max:22},optional:!1},bearing:{rule:{kind:"number",integer:!1,min:0,max:360},optional:!0},tilt:{rule:{kind:"number",integer:!1,min:0,max:60},optional:!0}}},{kind:"object",fields:{data:{rule:{kind:"pointer"},optional:!1}}}]},mapMarkers:{kind:"object",fields:{path:{rule:{kind:"pointer"},optional:!1},as:{rule:{kind:"key"},optional:!1},id:{rule:{kind:"string",nonblank:!0,max:256},optional:!1},lat:{rule:{kind:"string",nonblank:!0,max:256},optional:!1},lng:{rule:{kind:"string",nonblank:!0,max:256},optional:!1},title:{rule:{kind:"string",nonblank:!0,max:256},optional:!1},icon:{rule:{kind:"ref",name:"iconName"},optional:!0},heading:{rule:{kind:"string",nonblank:!0,max:256},optional:!0},animateMs:{rule:{kind:"number",integer:!0,min:0,max:2000},optional:!0}}},mapPolyline:{kind:"object",fields:{path:{rule:{kind:"pointer"},optional:!1},width:{rule:{kind:"number",integer:!1,min:1,max:16},optional:!0},color:{rule:{kind:"ref",name:"colorValue"},optional:!0}}},sensorsBlock:{kind:"object",fields:{shake:{rule:{kind:"object",fields:{}},optional:!0},orientation:{rule:{kind:"object",fields:{rateHz:{rule:{kind:"number",integer:!0,min:1,max:30},optional:!0}}},optional:!0},steps:{rule:{kind:"object",fields:{}},optional:!0},proximity:{rule:{kind:"object",fields:{}},optional:!0},light:{rule:{kind:"object",fields:{rateHz:{rule:{kind:"number",integer:!0,min:1,max:30},optional:!0}}},optional:!0}}},commerceBlock:{kind:"object",fields:{backend:{rule:{kind:"enum",values:["fake"]},optional:!1},products:{rule:{kind:"array",min:1,max:32,item:{kind:"ref",name:"commerceProduct"}},optional:!1}}},commerceProduct:{kind:"object",fields:{id:{rule:{kind:"string",pattern:"stateKey",max:64},optional:!1},title:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},kind:{rule:{kind:"enum",values:["consumable","nonConsumable","subscription"]},optional:!1},price:{rule:{kind:"ref",name:"commercePrice"},optional:!1},period:{rule:{kind:"string",pattern:"isoPeriod",max:8},optional:!0},trialPeriod:{rule:{kind:"string",pattern:"isoPeriod",max:8},optional:!0}}},commercePrice:{kind:"object",fields:{amount:{rule:{kind:"string",pattern:"decimalAmount",max:12},optional:!1},currency:{rule:{kind:"string",pattern:"currencyCode",max:3},optional:!1}}},loop:{kind:"object",fields:{effect:{rule:{kind:"enum",values:["pulse","spin"]},optional:!1},periodMs:{rule:{kind:"number",integer:!0,min:400,max:4000},optional:!1},iterations:{rule:{kind:"ref",name:"iconEffectRepeat"},optional:!0}}}},eventKinds:["emit","page_changed","dismissed","appearance_changed","screen_changed","change","validation_failed"],platformModules:{test:{capability:"prototype_platform_test_v1",placeholder:!0,calls:{echo:{args:{message:{optional:!1,value:{kind:"json",maxBytes:1024}},delayMs:{optional:!0,value:{kind:"number",integer:!0,min:0,max:60000}}},permissions:[],background:[],sensitive:!1},protected:{args:{},permissions:["camera"],background:["audio"],sensitive:!0}},events:{tick:{sensitive:!1}}},device:{capability:"prototype_platform_device_v1",calls:{},events:{changed:{sensitive:!1,debounceMs:250}},state:{os:{platforms:["android","ios"],value:{kind:"enum",values:["android","ios"]}},osVersion:{platforms:["android","ios"],value:{kind:"string",max:64}},idiom:{platforms:["android","ios"],value:{kind:"enum",values:["phone","tablet","foldable","desktop"]}},widthClass:{platforms:["android","ios"],value:{kind:"enum",values:["compact","medium","expanded"]},breakpoints:[600,840],valueByPlatform:{ios:{kind:"enum",values:["compact","regular"]}}},heightClass:{platforms:["android"],value:{kind:"enum",values:["compact","medium","expanded"]},breakpoints:[480,900]},windowWidth:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:65535}},windowHeight:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:65535}},posture:{platforms:["android"],value:{kind:"enum",values:["flat","tabletop","book"]}},pointer:{platforms:["android","ios"],value:{kind:"boolean"}}}},realtime:{capability:"prototype_platform_realtime_v1",deviceCapability:"prototype_platform_realtime_device_v1",calls:{connect:{args:{channel:{optional:!1,value:{kind:"string",empty:!1,maxBytes:64}}},permissions:[],background:[],sensitive:!1},disconnect:{args:{channel:{optional:!1,value:{kind:"string",empty:!1,maxBytes:64}}},permissions:[],background:[],sensitive:!1},send:{args:{channel:{optional:!1,value:{kind:"string",empty:!1,maxBytes:64}},body:{optional:!1,value:{kind:"json",maxDepth:24,maxBytes:1048576}}},permissions:[],background:[],sensitive:!1}},events:{status:{sensitive:!1},frame:{sensitive:!1}},state:{status:{platforms:["android","ios"],value:{kind:"enum",values:["idle","connecting","open","reconnecting","closed","error"]}},attempt:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:20}},framesIn:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:9007199254740991}},framesDropped:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:9007199254740991}},closeCode:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:65535}},closeReason:{platforms:["android","ios"],value:{kind:"string",max:4096,empty:!0}},error:{platforms:["android","ios"],value:{kind:"json",maxDepth:2}}}},haptics:{capability:"prototype_platform_haptics_v1",calls:{perform:{args:{effect:{optional:!1,value:{kind:"enum",values:["click","tick","heavyClick","doubleClick","selection","success","warning","error","impactLight","impactMedium","impactHeavy","longPress"]}}},permissions:[],background:[],sensitive:!1}},events:{},state:{}},sound:{capability:"prototype_platform_sound_v1",calls:{play:{args:{sound:{optional:!1,value:{kind:"enum",values:["click","send","receive","shutter"]}},volume:{optional:!0,value:{kind:"number",integer:!0,min:0,max:100}}},permissions:[],background:[],sensitive:!1}},events:{},state:{}},clipboard:{capability:"prototype_platform_clipboard_v1",calls:{copy:{args:{text:{optional:!1,value:{kind:"string",empty:!0,maxBytes:65536}},sensitive:{optional:!0,value:{kind:"boolean"}},label:{optional:!0,value:{kind:"string",empty:!0}}},permissions:[],background:[],sensitive:!0},paste:{args:{},permissions:[],background:[],sensitive:!0},hasText:{args:{},permissions:[],background:[],sensitive:!0}},events:{},state:{}},share:{capability:"prototype_platform_share_v1",calls:{open:{args:{text:{optional:!0,value:{kind:"string",empty:!0,maxBytes:65536}},url:{optional:!0,value:{kind:"string",empty:!0,maxBytes:65536}},subject:{optional:!0,value:{kind:"string",empty:!0,maxBytes:65536}},images:{optional:!0,value:{kind:"json",maxBytes:786432}},files:{optional:!0,value:{kind:"json",maxBytes:786432}},contact:{optional:!0,value:{kind:"json",maxBytes:786432}}},permissions:[],background:[],sensitive:!0,userGesture:!0}},events:{},state:{},rateLimit:{calls:5,windowMs:1e4}},battery:{capability:"prototype_platform_battery_v1",calls:{},events:{changed:{sensitive:!1,debounceMs:500}},state:{level:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:100}},state:{platforms:["android","ios"],value:{kind:"enum",values:["charging","full","unplugged","unknown"]}}}},power:{capability:"prototype_platform_power_v1",calls:{},events:{changed:{sensitive:!1,debounceMs:500}},state:{saver:{platforms:["android","ios"],value:{kind:"boolean"}},thermal:{platforms:["android","ios"],value:{kind:"enum",values:["nominal","fair","serious","critical"]}}}},audio:{capability:"prototype_platform_audio_v1",calls:{},events:{changed:{sensitive:!1,debounceMs:500}},state:{volume:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:100}},muted:{platforms:["android","ios"],value:{kind:"boolean"}},route:{platforms:["android","ios"],value:{kind:"enum",values:["speaker","wired","bluetooth","usb","airplay","cast","other"]}},ringer:{platforms:["android"],value:{kind:"enum",values:["normal","vibrate","silent"]}}}},connectivity:{capability:"prototype_platform_connectivity_v1",calls:{},events:{changed:{sensitive:!1,debounceMs:500}},state:{online:{platforms:["android","ios"],value:{kind:"boolean"}},transport:{platforms:["android","ios"],value:{kind:"enum",values:["wifi","cellular","ethernet","vpn","other","none"]}},metered:{platforms:["android","ios"],value:{kind:"boolean"}},constrained:{platforms:["android","ios"],value:{kind:"boolean"}}}},biometric:{capability:"prototype_platform_biometric_v1",calls:{authenticate:{args:{title:{optional:!1,value:{kind:"string",nonblank:!0,max:64}},subtitle:{optional:!0,value:{kind:"string",nonblank:!0,max:128}},allowDeviceCredential:{optional:!0,value:{kind:"boolean"}}},permissions:[],background:[],sensitive:!1}},events:{attemptFailed:{sensitive:!1}},state:{}},settings:{capability:"prototype_platform_settings_v1",calls:{open:{args:{page:{optional:!1,value:{kind:"enum",values:["app","notifications","location","wifi","bluetooth","display"]}}},permissions:[],background:[],sensitive:!1}},events:{},state:{}},contacts:{capability:"prototype_platform_contacts_v1",calls:{pick:{args:{fields:{optional:!0,value:{kind:"array",item:{kind:"enum",values:["name","phone","email"]},min:1,max:3,unique:!0}},multiple:{optional:!0,value:{kind:"boolean"}}},permissions:[],background:[],sensitive:!0}},events:{},state:{}},calendar:{capability:"prototype_platform_calendar_v1",calls:{insert:{args:{title:{optional:!1,value:{kind:"string",nonblank:!0,max:256}},start:{optional:!1,value:{kind:"number",integer:!0,min:0,max:253402300799000}},end:{optional:!1,value:{kind:"number",integer:!0,min:0,max:253402300799000}},allDay:{optional:!0,value:{kind:"boolean"}},location:{optional:!0,value:{kind:"string",nonblank:!0,max:256}},notes:{optional:!0,value:{kind:"string",nonblank:!0,max:2048}}},permissions:[],background:[],sensitive:!1}},events:{},state:{}},links:{capability:"prototype_platform_links_v1",calls:{open:{args:{url:{optional:!1,value:{kind:"string",pattern:"openUrl",max:2048}},mode:{optional:!0,value:{kind:"enum",values:["external","inApp","auto"]}}},permissions:[],background:[],sensitive:!1}},events:{},state:{}},mediaLibrary:{capability:"prototype_platform_mediaLibrary_v1",calls:{pick:{args:{media:{optional:!1,value:{kind:"enum",values:["images","videos","imagesAndVideos"]}},maxItems:{optional:!0,value:{kind:"number",integer:!0,min:1,max:64}}},permissions:[],background:[],sensitive:!0},query:{args:{media:{optional:!1,value:{kind:"enum",values:["images","videos","imagesAndVideos"]}},limit:{optional:!0,value:{kind:"number",integer:!0,min:1,max:64}}},permissions:["photos"],background:[],sensitive:!0,capability:"prototype_platform_mediaLibrary_query_v1"},manageLimitedSelection:{args:{},permissions:["photos"],background:[],sensitive:!1,capability:"prototype_platform_mediaLibrary_query_v1"},save:{args:{media:{optional:!1,value:{kind:"json",maxBytes:786432}},album:{optional:!0,value:{kind:"string",empty:!1,maxBytes:256}}},permissions:["photosAdd"],background:[],sensitive:!1,capability:"prototype_platform_mediaLibrary_save_v1"}},events:{},state:{}},camera:{capability:"prototype_platform_camera_v1",calls:{capture:{args:{media:{optional:!1,value:{kind:"enum",values:["image","video"]}},maxDurationMs:{optional:!0,value:{kind:"number",integer:!0,min:1,max:600000}}},permissions:[],background:[],sensitive:!0,capability:"prototype_platform_camera_capture_v1"},takePhoto:{args:{preview:{optional:!1,value:{kind:"key"}}},permissions:["camera"],background:[],sensitive:!0},startRecording:{args:{preview:{optional:!1,value:{kind:"key"}},audio:{optional:!0,value:{kind:"boolean"}},maxDurationMs:{optional:!0,value:{kind:"number",integer:!0,min:1,max:600000}}},permissions:["camera"],background:[],sensitive:!0,capability:"prototype_platform_camera_video_v1"},stopRecording:{args:{preview:{optional:!1,value:{kind:"key"}}},permissions:["camera"],background:[],sensitive:!0,capability:"prototype_platform_camera_video_v1"}},events:{statusChanged:{sensitive:!1}},state:{status:{platforms:["android","ios"],value:{kind:"enum",values:["starting","ready","capturing","recording","unavailable","permission_denied","error"]}},flashAvailable:{platforms:["android","ios"],value:{kind:"boolean"}},recordingMs:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:600000}},source:{platforms:["android","ios"],value:{kind:"enum",values:["camera","injected"]}}}},auth:{capability:"prototype_platform_auth_v1",calls:{signIn:{args:{style:{optional:!0,value:{kind:"enum",values:["chooser","button"]}}},permissions:[],background:[],sensitive:!0},signOut:{args:{},permissions:[],background:[],sensitive:!1}},events:{sessionExpired:{sensitive:!1}},state:{signedIn:{platforms:["android","ios"],value:{kind:"boolean"}},userId:{platforms:["android","ios"],value:{kind:"string",max:64},sensitive:!0}}},location:{capability:"prototype_platform_location_v1",calls:{request:{args:{accuracy:{optional:!0,value:{kind:"enum",values:["precise","approximate"]}},maxAgeMs:{optional:!0,value:{kind:"number",integer:!0,min:0,max:86400000}}},permissions:["location"],background:[],sensitive:!0}},events:{updated:{sensitive:!0}},state:{current:{platforms:["android","ios"],value:{kind:"json",maxDepth:1},sensitive:!0},servicesEnabled:{platforms:["android","ios"],value:{kind:"boolean"}}}},commerce:{capability:"prototype_platform_commerce_v1",calls:{purchase:{args:{productId:{optional:!1,value:{kind:"string",pattern:"stateKey",max:64}}},permissions:[],background:[],sensitive:!1},restore:{args:{},permissions:[],background:[],sensitive:!1}},events:{entitlementsChanged:{sensitive:!1}},state:{entitlements:{platforms:["android","ios"],value:{kind:"json",maxDepth:1}},lastTransaction:{platforms:["android","ios"],value:{kind:"json",maxDepth:1}}}},secureStorage:{capability:"prototype_platform_secureStorage_v1",calls:{},events:{},state:{locked:{platforms:["android","ios"],value:{kind:"boolean"}}}},sensors:{capability:"prototype_platform_sensors_v1",calls:{},events:{shake:{sensitive:!1}},state:{pitchDeg:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:-180,max:180}},rollDeg:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:-180,max:180}},headingDeg:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:359}},steps:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:9007199254740991}},proximityNear:{platforms:["android","ios"],value:{kind:"boolean"}},lightLux:{platforms:["android"],value:{kind:"number",integer:!0,min:0,max:1e6}}}},map:{capability:"prototype_platform_map_v1",backends:{google:{capability:"prototype_platform_map_google_v1"},maplibre:{capability:"prototype_platform_map_maplibre_v1"}},calls:{},events:{markerTap:{sensitive:!1,userInitiated:!0,emitContext:["markerId"]},cameraIdle:{sensitive:!1}},state:{}},webview:{capability:"prototype_platform_webview_v1",calls:{back:{args:{node:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1},reload:{args:{node:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1}},events:{navigate:{sensitive:!1}},state:{}},audioRecorder:{capability:"prototype_platform_audioRecorder_v1",calls:{start:{args:{maxDurationMs:{optional:!0,value:{kind:"number",integer:!0,min:1,max:300000}}},permissions:["microphone"],background:[],sensitive:!0},stop:{args:{},permissions:["microphone"],background:[],sensitive:!0},cancel:{args:{},permissions:["microphone"],background:[],sensitive:!1}},events:{statusChanged:{sensitive:!1}},state:{status:{platforms:["android","ios"],value:{kind:"enum",values:["recording","stopped","permission_denied","unavailable","error"]}},level:{platforms:["android","ios"],value:{kind:"number",min:0,max:1}},elapsedMs:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:300000}}}},notifications:{capability:"prototype_platform_notifications_v1",calls:{post:{args:{id:{optional:!1,value:{kind:"string",max:128}},channel:{optional:!1,value:{kind:"string",pattern:"stateKey"}},title:{optional:!1,value:{kind:"string",nonblank:!0,max:128}},body:{optional:!0,value:{kind:"string",max:1024}},largeImage:{optional:!0,value:{kind:"string",max:128}},style:{optional:!0,value:{kind:"tagged",variants:{bigText:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bigText"]},optional:!1}}},bigPicture:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bigPicture"]},optional:!1},image:{rule:{kind:"string",max:128},optional:!1}}},inbox:{kind:"object",fields:{type:{rule:{kind:"enum",values:["inbox"]},optional:!1},lines:{rule:{kind:"array",min:1,max:6,item:{kind:"string",max:256}},optional:!1},summary:{rule:{kind:"string",max:128},optional:!0}}},messaging:{kind:"object",fields:{type:{rule:{kind:"enum",values:["messaging"]},optional:!1},self:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},conversationTitle:{rule:{kind:"string",max:128},optional:!0},messages:{rule:{kind:"array",min:1,max:7,item:{kind:"object",fields:{from:{rule:{kind:"string",nonblank:!0,max:64},optional:!0},text:{rule:{kind:"string",max:1024},optional:!1},image:{rule:{kind:"string",max:128},optional:!0}}}},optional:!1}}}}}},group:{optional:!0,value:{kind:"string",max:128}},badge:{optional:!0,value:{kind:"number",integer:!0,min:0,max:9999}},data:{optional:!0,value:{kind:"json",maxBytes:1024}},actions:{optional:!0,value:{kind:"array",min:1,max:3,item:{kind:"object",fields:{id:{rule:{kind:"string",pattern:"stateKey"},optional:!1},label:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},opensApp:{rule:{kind:"boolean"},optional:!0},reply:{rule:{kind:"object",fields:{placeholder:{rule:{kind:"string",max:64},optional:!0}}},optional:!0}}}}},progress:{optional:!0,value:{kind:"choice",options:[{kind:"object",fields:{value:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!1}}},{kind:"object",fields:{indeterminate:{rule:{kind:"true"},optional:!1}}}]}},silent:{optional:!0,value:{kind:"boolean"}},ongoing:{optional:!0,value:{kind:"boolean"}}},permissions:["notifications"],background:[],sensitive:!1,userGesture:!0},cancel:{args:{id:{optional:!0,value:{kind:"string",max:128}},group:{optional:!0,value:{kind:"string",max:128}},all:{optional:!0,value:{kind:"true"}}},permissions:[],background:[],sensitive:!1},setBadge:{args:{count:{optional:!1,value:{kind:"number",integer:!0,min:0,max:9999}}},permissions:["notifications"],background:[],sensitive:!1,userGesture:!0},schedule:{args:{id:{optional:!1,value:{kind:"string",max:128}},channel:{optional:!1,value:{kind:"string",pattern:"stateKey"}},title:{optional:!1,value:{kind:"string",nonblank:!0,max:128}},body:{optional:!0,value:{kind:"string",max:1024}},largeImage:{optional:!0,value:{kind:"string",max:128}},style:{optional:!0,value:{kind:"tagged",variants:{bigText:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bigText"]},optional:!1}}},bigPicture:{kind:"object",fields:{type:{rule:{kind:"enum",values:["bigPicture"]},optional:!1},image:{rule:{kind:"string",max:128},optional:!1}}},inbox:{kind:"object",fields:{type:{rule:{kind:"enum",values:["inbox"]},optional:!1},lines:{rule:{kind:"array",min:1,max:6,item:{kind:"string",max:256}},optional:!1},summary:{rule:{kind:"string",max:128},optional:!0}}},messaging:{kind:"object",fields:{type:{rule:{kind:"enum",values:["messaging"]},optional:!1},self:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},conversationTitle:{rule:{kind:"string",max:128},optional:!0},messages:{rule:{kind:"array",min:1,max:7,item:{kind:"object",fields:{from:{rule:{kind:"string",nonblank:!0,max:64},optional:!0},text:{rule:{kind:"string",max:1024},optional:!1},image:{rule:{kind:"string",max:128},optional:!0}}}},optional:!1}}}}}},group:{optional:!0,value:{kind:"string",max:128}},badge:{optional:!0,value:{kind:"number",integer:!0,min:0,max:9999}},data:{optional:!0,value:{kind:"json",maxBytes:1024}},actions:{optional:!0,value:{kind:"array",min:1,max:3,item:{kind:"object",fields:{id:{rule:{kind:"string",pattern:"stateKey"},optional:!1},label:{rule:{kind:"string",nonblank:!0,max:64},optional:!1},opensApp:{rule:{kind:"boolean"},optional:!0},reply:{rule:{kind:"object",fields:{placeholder:{rule:{kind:"string",max:64},optional:!0}}},optional:!0}}}}},progress:{optional:!0,value:{kind:"choice",options:[{kind:"object",fields:{value:{rule:{kind:"number",integer:!1,min:0,max:1},optional:!1}}},{kind:"object",fields:{indeterminate:{rule:{kind:"true"},optional:!1}}}]}},silent:{optional:!0,value:{kind:"boolean"}},ongoing:{optional:!0,value:{kind:"boolean"}},delaySeconds:{optional:!1,value:{kind:"number",integer:!0,min:1,max:604800}}},permissions:["notifications"],background:[],sensitive:!1,capability:"prototype_platform_notifications_scheduled_v1",userGesture:!0}},events:{opened:{sensitive:!1,userInitiated:!0},action:{sensitive:!1,userInitiated:!0},reply:{sensitive:!0,userInitiated:!0},dismissed:{sensitive:!1},scheduledFired:{sensitive:!1},push:{sensitive:!1,capability:"prototype_platform_push_v1"}},state:{badge:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:9999}},active:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:24}},pending:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:64}},authorization:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},blocked:{platforms:["android","ios"],value:{kind:"boolean"}}},rateLimit:{calls:10,windowMs:60000}},media:{capability:"prototype_platform_media_v1",calls:{play:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1},pause:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1},toggle:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1},stop:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1},seek:{args:{player:{optional:!1,value:{kind:"key"}},positionMs:{optional:!1,value:{kind:"number",integer:!0,min:0,max:86400000}}},permissions:[],background:[],sensitive:!1},seekBy:{args:{player:{optional:!1,value:{kind:"key"}},deltaMs:{optional:!1,value:{kind:"number",integer:!0,min:-86400000,max:86400000}}},permissions:[],background:[],sensitive:!1},setRate:{args:{player:{optional:!1,value:{kind:"key"}},rate:{optional:!1,value:{kind:"number",min:0.25,max:4}}},permissions:[],background:[],sensitive:!1},setVolume:{args:{player:{optional:!1,value:{kind:"key"}},volume:{optional:!1,value:{kind:"number",min:0,max:1}}},permissions:[],background:[],sensitive:!1},setMuted:{args:{player:{optional:!1,value:{kind:"key"}},muted:{optional:!1,value:{kind:"boolean"}}},permissions:[],background:[],sensitive:!1},setLoop:{args:{player:{optional:!1,value:{kind:"key"}},loop:{optional:!1,value:{kind:"boolean"}}},permissions:[],background:[],sensitive:!1},setCaptions:{args:{player:{optional:!1,value:{kind:"key"}},track:{optional:!1,value:{kind:"string",empty:!0,maxBytes:192}}},permissions:[],background:[],sensitive:!1},next:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"},previous:{args:{player:{optional:!1,value:{kind:"key"}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"},skipTo:{args:{player:{optional:!1,value:{kind:"key"}},itemId:{optional:!1,value:{kind:"string",empty:!1,maxBytes:384}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"},setShuffle:{args:{player:{optional:!1,value:{kind:"key"}},shuffle:{optional:!1,value:{kind:"boolean"}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"},setRepeat:{args:{player:{optional:!1,value:{kind:"key"}},repeat:{optional:!1,value:{kind:"enum",values:["off","one","all"]}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"},setSleepTimer:{args:{player:{optional:!1,value:{kind:"key"}},timer:{optional:!1,value:{kind:"choice",options:[{kind:"object",fields:{ms:{rule:{kind:"number",integer:!0,min:0,max:86400000},optional:!1}}},{kind:"object",fields:{endOfItem:{rule:{kind:"true"},optional:!1}}}]}}},permissions:[],background:[],sensitive:!1,capability:"prototype_platform_media_queue_v1"}},events:{statusChanged:{sensitive:!1},ended:{sensitive:!1},error:{sensitive:!1},itemChanged:{sensitive:!1}},state:{playing:{platforms:["android","ios"],value:{kind:"boolean"}},positionMs:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:86400000}},durationMs:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:-1,max:86400000}},buffering:{platforms:["android","ios"],value:{kind:"boolean"}},status:{platforms:["android","ios"],value:{kind:"enum",values:["idle","loading","ready","ended","error"]}},error:{platforms:["android","ios"],value:{kind:"enum",values:["source_not_found","decode","network","unsupported_format","blocked_egress"]}},captionTrack:{platforms:["android","ios"],value:{kind:"string",empty:!0,max:64}},currentItemId:{platforms:["android","ios"],value:{kind:"string",empty:!0,max:128}},currentIndex:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:-1,max:4096}},rate:{platforms:["android","ios"],value:{kind:"number",min:0.25,max:4}},sleepRemainingMs:{platforms:["android","ios"],value:{kind:"number",integer:!0,min:0,max:86400000}},shuffle:{platforms:["android","ios"],value:{kind:"boolean"}},repeat:{platforms:["android","ios"],value:{kind:"enum",values:["off","one","all"]}}}},cast:{capability:"prototype_platform_cast_v1",calls:{disconnect:{args:{},permissions:[],background:[],sensitive:!1},stop:{args:{},permissions:[],background:[],sensitive:!1},setVolume:{args:{volume:{optional:!1,value:{kind:"number",min:0,max:1}}},permissions:[],background:[],sensitive:!1}},events:{routesChanged:{sensitive:!1},sessionStarting:{sensitive:!1},sessionStarted:{sensitive:!1},sessionEnded:{sensitive:!1},sessionFailed:{sensitive:!1},remoteVolume:{sensitive:!1}},state:{state:{platforms:["android","ios"],value:{kind:"enum",values:["unavailable","noDevices","notConnected","connecting","connected"]}},deviceName:{platforms:["android","ios"],value:{kind:"string",empty:!0,max:256}},protocol:{platforms:["android","ios"],value:{kind:"enum",values:["googleCast","airplay"]}},protocols:{platforms:["android","ios"],value:{kind:"array",item:{kind:"enum",values:["googleCast","airplay"]},min:0,max:2,unique:!0}},player:{platforms:["android","ios"],value:{kind:"string",empty:!0,max:64}},volume:{platforms:["android","ios"],value:{kind:"number",min:0,max:1}}}},permissions:{capability:"prototype_platform_permissions_v1",calls:{request:{args:{names:{optional:!1,value:{kind:"array",item:{kind:"enum",values:["camera","microphone","location","locationBackground","notifications","photos","photosAdd","contacts","calendar","bluetooth","nearbyWifi","motion","speech"]},min:1,max:16,unique:!0}}},permissions:[],background:[],sensitive:!1}},events:{changed:{sensitive:!1}},state:{camera:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},microphone:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},location:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},locationBackground:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},notifications:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},photos:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},photosAdd:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},contacts:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},calendar:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},bluetooth:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},nearbyWifi:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},motion:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}},speech:{platforms:["android","ios"],value:{kind:"enum",values:["granted","denied","blocked","notDetermined","limited","restricted","unavailable"]}}}}},platformNamespaces:{ios:{buttonStyle:{why:"Native iOS glass button treatments have no portable renderer equivalent.",requires:"prototype_platform_namespace_v1"},bottomAccessory:{why:"The iOS tab bar bottom accessory has no Android navigation equivalent.",requires:"prototype_platform_namespace_v1"},"tab.role":{why:"The search tab role is an iOS tab navigation convention.",requires:"prototype_platform_namespace_v1"},"sheet.sizing":{why:"Native iOS sheet sizing modes have no matching Android presentation contract.",requires:"prototype_platform_namespace_v1"},hover:{why:"Native iOS lift and highlight hover effects have no portable equivalent.",requires:"prototype_platform_namespace_v1"},navigationTitle:{why:"Large and inline navigation titles are iOS navigation chrome conventions.",requires:"prototype_platform_namespace_v1"},glassGroup:{why:"iOS Liquid Glass composition has no Android equivalent.",requires:"prototype_glass_v1"},glassUnion:{why:"iOS Liquid Glass composition has no Android equivalent.",requires:"prototype_glass_v1"},glassTransition:{why:"iOS Liquid Glass composition has no Android equivalent.",requires:"prototype_glass_v1"},backgroundExtension:{why:"iOS Liquid Glass composition has no Android equivalent.",requires:"prototype_glass_v1"}},android:{"predictiveBack.style":{why:"Android predictive back previews depend on the Android activity navigation model.",requires:"prototype_platform_namespace_v1"},indication:{why:"Android ripple indication is a native interaction feedback treatment.",requires:"prototype_platform_namespace_v1"}}},checkControls:{minLength:["textField"],maxLength:["textField"],format:["textField"],pattern:["textField"],min:["slider","datePicker","timePicker"],max:["slider","datePicker","timePicker"]},designCoverage:{box:{ios:"neutral",android:"neutral"},row:{ios:"neutral",android:"neutral"},column:{ios:"neutral",android:"neutral"},flow:{ios:"neutral",android:"neutral"},grid:{ios:"neutral",android:"neutral"},carousel:{ios:"neutral",android:"neutral"},text:{ios:"neutral",android:"neutral"},image:{ios:"neutral",android:"neutral"},icon:{ios:"neutral",android:"neutral"},spacer:{ios:"neutral",android:"neutral"},textField:{ios:"material",android:"material"},switch:{ios:"material",android:"material"},checkbox:{ios:"material",android:"material"},button:{ios:"native",android:"material"},radioGroup:{ios:"material",android:"material"},select:{ios:"material",android:"material"},listItem:{ios:"material",android:"material"},slider:{ios:"native",android:"material"},chip:{ios:"material",android:"material"},card:{ios:"material",android:"material"},iconButton:{ios:"material",android:"material"},fab:{ios:"material",android:"material"},segmentedButton:{ios:"material",android:"material"},topAppBar:{ios:"material",android:"material"},divider:{ios:"neutral",android:"neutral"},badge:{ios:"material",android:"material"},progress:{ios:"material",android:"material"},dialog:{ios:"material",android:"material"},menu:{ios:"material",android:"material"},snackbar:{ios:"material",android:"material"},timePicker:{ios:"native",android:"material"},datePicker:{ios:"native",android:"material"},scroll:{ios:"neutral",android:"neutral"},pager:{ios:"neutral",android:"neutral"},tabBar:{ios:"material",android:"material"},bottomNav:{ios:"material",android:"material"},bottomSheet:{ios:"material",android:"material"},searchBar:{ios:"material",android:"material"},stack:{ios:"neutral",android:"neutral"},chart:{ios:"material",android:"material"},tooltip:{ios:"material",android:"material"},drawer:{ios:"material",android:"material"},list:{ios:"material",android:"material"},pasteButton:{ios:"native",android:"material"},adaptive:{ios:"material",android:"material"},videoPlayer:{ios:"material",android:"material"},castButton:{ios:"material",android:"material"},map:{ios:"neutral",android:"neutral"},webView:{ios:"neutral",android:"neutral"},cameraPreview:{ios:"material",android:"material"}},stringFields:["text","label","placeholder","headline","title","supportingText","errorText","supporting","trailingText","message","semantics.label","semantics.hint"],stringOpaqueFields:["context","data","state","assets","theme","storage","value","repeat","payload","body","headers","query","strings"],eventPayloads:{screen_changed:{kind:"object",fields:{screen:{rule:{kind:"string"},optional:!1},depth:{rule:{kind:"number",integer:!0,min:1,max:32},optional:!1},params:{rule:{kind:"record",maxEntries:16,item:{kind:"scalar"}},optional:!0}}}},motionTokens:{standard:{spatial:{fast:{dampingRatio:0.9,stiffness:1400},default:{dampingRatio:0.9,stiffness:700},slow:{dampingRatio:0.9,stiffness:300}},effects:{fast:{dampingRatio:1,stiffness:3800},default:{dampingRatio:1,stiffness:1600},slow:{dampingRatio:1,stiffness:800}}},expressive:{spatial:{fast:{dampingRatio:0.6,stiffness:800},default:{dampingRatio:0.8,stiffness:380},slow:{dampingRatio:0.8,stiffness:200}},effects:{fast:{dampingRatio:1,stiffness:3800},default:{dampingRatio:1,stiffness:1600},slow:{dampingRatio:1,stiffness:800}}}}};var Pg,Bo=Wr(()=>Pg??=Ne([Y3(),y(),A().finite(),Z(),z(Bo),kt(Bo)])),dd=so((o)=>Bo.safeParse(o).success),rY=kt(dd).and(hr());var Sg=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function kr(o){let i=c(c(o)?.channels)??{};return Object.keys(i).sort().flatMap((l)=>{let u=c(i[l])??{},d=Sg("channels",l),m=["onOpen","onClose","onError"].filter((_)=>u[_]!==void 0).map((_)=>({value:u[_],path:`${d}.${_}`})),k=Array.isArray(u.routes)?u.routes:[];return[...m,...k.map((_,x)=>({value:c(_)?.actions,path:`${d}.routes[${x}].actions`}))]})}var ao=ae.stateKey,Xt=ae.boundKey;function c(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)?o:void 0}function wg(o,i){if(i.index&&o==="index")return{kind:"index"};let l=`${i.alias}.`,u=o.slice(l.length);return o.startsWith(l)&&(i.alias==="route"?ae.pathKey.test(u):ao.test(u))?{kind:"field",name:u}:void 0}function Ce(o,i){let l=[],u="",d=0;while(d<o.length){let m=o[d]==="{"?o.indexOf("}",d+1):-1,k=m<0?void 0:wg(o.slice(d+1,m),i);if(k){if(u)l.push({kind:"literal",text:u});u="",l.push(k),d=m+1}else u+=o[d],d++}if(u)l.push({kind:"literal",text:u});return l}function pt(o,i){return Ce(o,i).flatMap((l)=>l.kind==="field"?[l.name]:[])}function mp(o){return typeof o==="number"&&Number.isInteger(o)?BigInt(o).toString():String(o)}function ld(o,i){let{alias:l}=i.binding;return Ce(o,i.binding).map((u)=>{if(u.kind==="literal")return u.text;if(u.kind==="index")return String(i.index??0);return Object.hasOwn(i.values,u.name)?mp(i.values[u.name]):`{${l}.${u.name}}`}).join("")}function JB(o,i){if(typeof o!=="string")return o;let l=Ce(o,i.binding),u=l.length===1?l[0]:void 0;if(u?.kind==="index")return i.index??0;if(u?.kind==="field"&&Object.hasOwn(i.values,u.name))return i.values[u.name];return ld(o,i)}var Yo=(o)=>o==="dataPath"||o==="requestInto";function B(o,i,l,{kind:u,visit:d}){if(o[i]!==void 0)o[i]=d(o[i],`${l}.${i}`,u)}function ge(o,i,l,u){if(Array.isArray(o[i]))o[i]=o[i].map((d,m)=>{let k=c(d);return k?u({...k},`${l}.${i}[${m}]`):d})}function Ae(o,i,l,u){let d=c(o[i]);if(d)o[i]=u({...d},`${l}.${i}`)}function qu(o,i,l,u){let d=o[i];if(Array.isArray(d))o[i]=d.map((m,k)=>u(m,`${l}.${i}[${k}]`,"key"));else B(o,i,l,{kind:"key",visit:u})}function Zt(o,i,l){B(o,"data",i,{kind:"routePointer",visit:l}),B(o,"key",i,{kind:"key",visit:l}),qu(o,"valid",i,l);let u=(d,m,k)=>l(d,m,k,Object.hasOwn(o,"data"));B(o,"equals",i,{kind:"operand",visit:u}),B(o,"notEquals",i,{kind:"operand",visit:u}),B(o,"contains",i,{kind:"substring",visit:u}),B(o,"startsWith",i,{kind:"substring",visit:u}),Ae(o,"not",i,(d,m)=>Zt(d,m,l));for(let d of["all","any"])ge(o,d,i,(m,k)=>Zt(m,k,l));return o}function gt(o,i,l){let u=c(o);if(u&&typeof u.data==="string")l(u.data,`${i}.data`,"routePointer");return u&&Object.hasOwn(u,"state")?{...u,state:l(u.state,`${i}.state`,"key")}:l(o,i,"emitBinding")}function Rg(o,i,l){if(B(o,"name",i,{kind:"emitName",visit:l}),B(o,"context",i,{kind:"emitContext",visit:l}),c(o.context))o.context=Object.fromEntries(Object.entries(c(o.context)).map(([u,d])=>{let m=ae.pathKey.test(u)?`${i}.context.${u}`:`${i}.context[${JSON.stringify(u)}]`;return[u,gt(d,m,l)]}));qu(o,"requireValid",i,l)}function Og(o,i,l){if(o.type==="prependData")l(o,i,"prependData");if(B(o,"path",i,{kind:"dataPath",visit:l}),o.type!=="removeData"&&o.value!==void 0)o.value=gt(o.value,`${i}.value`,l)}function $g(o,i,l){if(o.type!=="startTimer"&&o.type!=="cancelTimer")return;if(l(o,i,"timer"),o.type==="startTimer")ge(o,"actions",i,(u,d)=>qe(u,d,l))}function Mg(o,i,l){if(["push","replace","setStack"].includes(String(o.type))){if(o.type==="setStack"||o.params!==void 0)l(o,i,"routeFeature");let d=(o.type==="setStack"&&Array.isArray(o.path)?o.path:[o]).map((m,k)=>{let _=c(m)?{...c(m)}:void 0;if(!_||!c(_.params))return m;let x=o.type==="setStack"?`${i}.path[${k}].params`:`${i}.params`;return _.params=Object.fromEntries(Object.entries(c(_.params)).map(([v,T])=>[v,typeof T==="string"?l(T,Ut(x,v),"operand"):gt(T,Ut(x,v),l)])),_});if(o.type==="setStack")o.path=d;else o.params=c(d[0])?.params}if(o.type==="pop"&&o.force!==void 0)l(o,i,"routeFeature")}function qe(o,i,l){if(Mg(o,i,l),["setData","appendData","prependData","upsertData","removeData"].includes(String(o.type)))return Og(o,i,l),o;switch(o.type){case"setState":B(o,"key",i,{kind:"key",visit:l}),B(o,"value",i,{kind:"operand",visit:l});break;case"emit":Rg(o,i,l);break;case"toggle":case"increment":case"decrement":B(o,"key",i,{kind:"key",visit:l});break;case"request":Ng(o,i,l);break;case"platform":qg(o,i,l);break;case"scrollTo":l(o,i,"scrollTo");break;case"hideKeyboard":l(o,i,"hideKeyboard");break;default:$g(o,i,l),jg(o,i,l);break}return o}function jg(o,i,l){if(o.type==="push"||o.type==="replace")B(o,"transition",i,{kind:"stackTransition",visit:l}),B(o,"source",i,{kind:"stackSource",visit:l})}var Ut=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function Lu(o,i,l,u){let d=c(o[i]);if(d)o[i]=Object.fromEntries(Object.entries(d).map(([m,k])=>{let _=Ut(`${l}.${i}`,m);return[m,typeof k==="string"?u(k,_,"text"):gt(k,_,u)]}))}function Ng(o,i,l){if(l(o,i,"request"),o.via==="device")l(o,i,"deviceRequest");let u=c(o.body);if(o.progressKey!==void 0||u&&["multipart","form","file"].some((m)=>Object.hasOwn(u,m)))l(o,i,"uploadRequest");if(B(o,"url",i,{kind:"text",visit:l}),Lu(o,"headers",i,l),Lu(o,"query",i,l),o.body!==void 0)o.body=Lg(o.body,`${i}.body`,l);B(o,"into",i,{kind:"requestInto",visit:l});let d=c(o.append);if(d)B(d,"to",`${i}.append`,{kind:"requestInto",visit:l});B(o,"statusKey",i,{kind:"key",visit:l});for(let m of["onSuccess","onError"])ge(o,m,i,(k,_)=>qe(k,_,l))}function Lg(o,i,l){let u=c(o);if(Array.isArray(u?.multipart))return{...u,multipart:u.multipart.map((m,k)=>{let _=c(m);return _?.value===void 0?m:{..._,value:gt(_.value,`${i}.multipart[${k}].value`,l)}})};let d=c(u?.form);if(d)return{...u,form:Object.fromEntries(Object.entries(d).map(([m,k])=>[m,gt(k,Ut(`${i}.form`,m),l)]))};return u?.file===void 0?gt(o,i,l):o}function qg(o,i,l){let u=c(o.args);if(u)o.args=Object.fromEntries(Object.entries(u).map(([d,m])=>[d,gt(m,Ut(`${i}.args`,d),l)]));B(o,"into",i,{kind:"requestInto",visit:l}),B(o,"statusKey",i,{kind:"key",visit:l});for(let d of["onSuccess","onError"])ge(o,d,i,(m,k)=>qe(m,k,l))}function br(o,i,l){for(let u of["onTap","onLongPress","onDoubleTap","onEndReached","onStartReached","onAppear"])ge(o,u,i,(d,m)=>qe(d,m,l))}function ct(o,i,l){return B(o,"label",i,{kind:"text",visit:l}),br(o,i,l),o}var zg={image:(o,i,l)=>B(o,"asset",i,{kind:"text",visit:l}),button:(o,i,l)=>B(o,"label",i,{kind:"text",visit:l}),fab:(o,i,l)=>B(o,"label",i,{kind:"text",visit:l}),segmentedButton:(o,i,l)=>ge(o,"options",i,(u,d)=>(B(u,"label",d,{kind:"text",visit:l}),u)),topAppBar:(o,i,l)=>{B(o,"title",i,{kind:"text",visit:l}),Ae(o,"navigationIcon",i,(u,d)=>ct(u,d,l)),ge(o,"actions",i,(u,d)=>ct(u,d,l))},textField:(o,i,l)=>{Ae(o,"trailingIcon",i,(u,d)=>ct(u,d,l)),ge(o,"onSubmit",i,(u,d)=>qe(u,d,l))},searchBar:(o,i,l)=>{B(o,"placeholder",i,{kind:"text",visit:l}),ge(o,"trailingActions",i,(u,d)=>ct(u,d,l)),ge(o,"onSubmit",i,(u,d)=>qe(u,d,l))},tooltip:(o,i,l)=>{B(o,"text",i,{kind:"text",visit:l}),ge(o,"onDismiss",i,(u,d)=>qe(u,d,l))},dialog:(o,i,l)=>{B(o,"title",i,{kind:"text",visit:l}),B(o,"text",i,{kind:"text",visit:l}),Ae(o,"confirm",i,(u,d)=>ct(u,d,l)),Ae(o,"dismiss",i,(u,d)=>ct(u,d,l))},menu:(o,i,l)=>{ge(o,"items",i,(u,d)=>(B(u,"trailingText",d,{kind:"text",visit:l}),ct(u,d,l)))},select:(o,i,l)=>{B(o,"label",i,{kind:"text",visit:l}),ge(o,"options",i,(u,d)=>(B(u,"label",d,{kind:"text",visit:l}),u))},snackbar:(o,i,l)=>{B(o,"text",i,{kind:"text",visit:l}),Ae(o,"action",i,(u,d)=>ct(u,d,l))},map:(o,i,l)=>ge(o,"onMarkerTap",i,(u,d)=>qe(u,d,l)),webView:(o,i,l)=>{B(o,"url",i,{kind:"text",visit:l});for(let u of["navigationStateKey","titleKey","canGoBackKey"])B(o,u,i,{kind:"key",visit:l});for(let u of["onNavigate","onBlockedNavigation"])ge(o,u,i,(d,m)=>qe(d,m,l))}};function Bg(o,i,l){for(let u of["stateKey","activeKey","hourKey","minuteKey","atEndKey"])B(o,u,i,{kind:"key",visit:l});for(let u of["trailing","openWhen","refresh"])Ae(o,u,i,(d,m)=>(B(d,u==="openWhen"?"key":"stateKey",m,{kind:"key",visit:l}),d))}function cr(o,i,l,u=!1){let d=(_,x,v,T)=>v==="routePointer"&&!u?_:l(_,x,v,T),m={...o};if(Ae(m,"semantics",i,(_,x)=>(B(_,"label",x,{kind:"text",visit:d}),B(_,"hint",x,{kind:"text",visit:d}),_)),Ae(m,"shared",i,(_,x)=>(B(_,"key",x,{kind:"operand",visit:d}),_)),m.type==="text")B(m,"text",i,{kind:"text",visit:d}),Ae(m,"linkify",i,(_,x)=>(br(_,x,d),_)),ge(m,"spans",i,(_,x)=>(B(_,"text",x,{kind:"text",visit:d}),br(_,x,d),_));if((typeof m.type==="string"?zg[m.type]:void 0)?.(m,i,d),B(m,"errorText",i,{kind:"text",visit:d}),Ae(m,"errorWhen",i,(_,x)=>Zt(_,x,d)),Ae(m,"enabledWhen",i,(_,x)=>Zt(_,x,d)),ge(m,"checks",i,(_,x)=>(B(_,"message",x,{kind:"text",visit:d}),_)),Ae(m,"visibleWhen",i,(_,x)=>Zt(_,x,d)),ge(m,"styleWhen",i,(_,x)=>(Ae(_,"when",x,(v,T)=>Zt(v,T,d)),_)),br(m,i,d),Ae(m,"swipeActions",i,(_,x)=>{for(let v of["start","end"])ge(_,v,x,(T,R)=>ct(T,R,d));return _}),Ae(m,"refresh",i,(_,x)=>(ge(_,"onRefresh",x,(v,T)=>qe(v,T,d)),_)),Bg(m,i,d),m.type==="stack"){let _=c(m.routes);if(_)m.routes=Object.fromEntries(Object.entries(_).sort(([x],[v])=>x<v?-1:x>v?1:0).map(([x,v])=>{let T={...c(v)},R=Ut(`${i}.routes`,x);for(let O of["onEnter","onBack"])ge(T,O,R,(L,Q)=>qe(L,Q,d));return[x,T]}))}return m}function zu(o,i,l){return cr(o,i,(u,d,m)=>{if(m==="emitBinding"&&l.binding.index){let k=c(u);if(typeof k?.item==="string")return{value:l.values[k.item]};if(k?.index===!0)return{value:l.index}}if(typeof u!=="string")return u;return m==="operand"?JB(u,l):ld(u,l)})}function Fo(o){let i=[];return cr(o,"",(l,u,d)=>{if(d==="key")i.push(l);return l}),[...i,...Array.isArray(o.requireValid)?o.requireValid:[],o.key,o.stateKey,o.statusKey,o.activeKey,o.hourKey,o.minuteKey,c(o.trailing)?.stateKey,c(o.openWhen)?.key,c(o.refresh)?.stateKey]}function Du(o,i){let l=cr(o,"",(_,x,v)=>v==="key"&&typeof _==="string"?ld(_,i):_);if(Array.isArray(l.requireValid))l.requireValid=l.requireValid.map((_)=>typeof _==="string"?ld(_,i):_);let u=(_)=>typeof _==="string"?ld(_,i):_;for(let _ of["key","stateKey","statusKey","activeKey","hourKey","minuteKey","atEndKey"])if(l[_]!==void 0)l[_]=u(l[_]);let d=c(l.trailing);if(d?.stateKey!==void 0)l.trailing={...d,stateKey:u(d.stateKey)};let m=c(l.openWhen);if(m?.key!==void 0)l.openWhen={...m,key:u(m.key)};let k=c(l.refresh);if(k?.stateKey!==void 0)l.refresh={...k,stateKey:u(k.stateKey)};return l}function Ke(o,i){for(let u of kr(o))if(Array.isArray(u.value))u.value.forEach((d,m)=>{let k=c(d);if(k)qe(k,`${u.path}[${m}]`,i)});let l=c(c(c(o)?.platform)?.on);for(let u of Object.keys(l??{}).sort()){let d=l[u];if(!Array.isArray(d))continue;d.forEach((m,k)=>{let _=c(m);if(_)qe({..._},`platform.on[${JSON.stringify(u)}][${k}]`,i)})}}var H=y().regex(ae.stateKey),Y=y().regex(Xt),W=y().min(1).max(V.limits.MAX_PROTOTYPE_DATA_POINTER_LENGTH).regex(ae.pointer),Fe=Ne([f({state:Y}).strict(),f({item:H}).strict(),f({index:ee(!0)}).strict(),f({data:W}).strict(),f({value:dd}).strict()]),Vo=f({match:P(["text","kind"])}).strict(),Wo=y().min(1).max(V.limits.MAX_PROTOTYPE_DATA_POINTER_LENGTH+5),Rn={path:Wo,value:Ne([...Fe.options,Vo,f({event:Ne([ee(""),W])}).strict(),f({platform:W}).strict()])},Bu=f({type:P(["appendData"]),...Rn,maxItems:A().int().min(1).max(V.limits.MAX_PROTOTYPE_DATA_ARRAY_ITEMS).optional()}).strict(),Yu=f({type:P(["upsertData"]),...Rn,key:W,maxItems:A().int().min(1).max(V.limits.MAX_PROTOTYPE_DATA_ARRAY_ITEMS).optional()}).strict(),Yg=Ne([...Fe.options,f({page:y().min(1)}).strict(),Vo]),Ku=kt(y().min(1),Yg).and(hr()).refine((o)=>Object.keys(o).length<=V.limits.MAX_PROTOTYPE_EMIT_CONTEXT_ENTRIES);function _r(o){return z(o).min(1).max(32)}var Fu=Ne([y(),A().finite(),Z(),Vo,f({event:Ne([ee(""),W])}).strict(),f({platform:W}).strict()]);function or(o){let i=[],l=(u,d)=>{if(c(u))i.push({value:u,suffix:d})};for(let[u,d]of Object.entries(o)){if(o.type==="adaptive"&&["list","detail","content","main","supporting"].includes(u)||u==="child"||o.type==="list"&&["header","footer"].includes(u))l(d,`.${u}`);if(u==="children"&&Array.isArray(d))d.forEach((k,_)=>l(k,`.children[${_}]`));let m=u==="screens"?c(d):void 0;if(m)for(let[k,_]of Object.entries(m))l(_,`.screens[${JSON.stringify(k)}]`)}return i}function Mr(o){let i=c(o);if(!i)return[];let l=[];if(Object.hasOwn(i,"root"))l.push({node:i.root,path:"root"});for(let[u,d]of Object.entries(c(i.components)??{})){let m=c(d);if(m&&Object.hasOwn(m,"root"))l.push({node:m.root,path:`components.${u}.root`})}return l}function X(o,i){let l=Mr(o).reverse();while(l.length){let{node:u,path:d}=l.pop(),m=c(u);if(!m)continue;i(m,d);let k=or(m);for(let _=k.length-1;_>=0;_--){let x=k[_];l.push({node:x.value,path:`${d}${x.suffix}`})}}}var Jm="prototype_patch_v1",yl="prototype_saved_v1",nY=["pin_unsupported","device_locked","pin_failed","invalid_id","invalid_label","spec_too_large","invalid_spec","invalid_asset_id","duplicate_asset_id","unsupported_mime_type","empty_asset","asset_too_large","count_limit","total_limit","missing_asset","saved_count_limit","storage_failure","unsupported_existing","not_found","unsupported_format","internal_error","render_failed"];function XB(o){return typeof o==="string"&&nY.includes(o)}var _R=["emit","page_changed","screen_changed","dismissed","appearance_changed","change","validation_failed"],ZB="unknown";var ud="prototype_timers_v1",Kg=["show_prototype","dismiss_prototype","put_prototype_asset","remove_prototype_asset","discover_keystore","export_attestation","reset_keystore","get_sdk_capabilities","set_hierarchy_interval","request_activate_accessibility_link","request_insert_text_state","request_insert_text","request_commit_text","request_cancel_ime_commit","request_set_keyboard_profile","request_list_keyboard_profiles"],ib="prototype_display_id_v2",xR="prototype_window_options_v1",Zz="prototype_platform_namespace_v1",CR="prototype_window_chrome_v1",$D="prototype_dead_tap_v1",iY="prototype_design_platform_v1",fp="prototype_persistence_replay_v1",Tg="prototype_show_in_place_v1",ob="prototype_multi_surface_v1",sb="prototype_anchor_v1",Qz="prototype_text_field_options_v1",ej="prototype_menus_v1",tj="prototype_emit_context_v1",rj="prototype_checks_v1",nj="prototype_data_model_v1",ij="prototype_data_actions_v1",oj="prototype_network_v1",sj="prototype_network_device_v1",aj="prototype_platform_v1",cj="prototype_search_bar_v1",dj="prototype_loading_states_v1",lj="prototype_string_conditions_v1",uj="prototype_backdrop_v1",Qre="prototype_platform_window_controls_v1",ene="prototype_layout_direction_v1",tne="prototype_hide_keyboard_v1",QB="prototype_platform_media_items_v1",rne="prototype_motion_v3",nne="prototype_window_motion_v1",pj="prototype_motion_v2",mj="prototype_icon_effects_v1",fj="prototype_choreography_v1",ine="prototype_motion_tokens_v1",oY="prototype_loops_v1",one="prototype_keyframes_v1",hj="prototype_effects_v1",gj="prototype_lazy_list_v1",yj="prototype_chart_v1",sY="prototype_routes_v1",vj="prototype_chat_scroll_v1",sne="prototype_scroll_motion_v1",bj="prototype_gestures_v1",Sj="prototype_swipe_actions_v1",wj="prototype_text_field_actions_v1",Rj="prototype_carousel_v1",Pj="prototype_text_field_leading_icon_v1",Aj="prototype_refresh_v1",Tj="prototype_reduced_motion_v1",kj="prototype_shared_element_v1",Ej="prototype_shared_element_v2",ane="prototype_zoom_transition_v1",cne="prototype_stack_patterns_v1",Ij="prototype_stack_transitions_v1",kg="prototype_stack_v1",UD="prototype_custom_shaders_v1",_j="prototype_flow_grid_v1",Ok="prototype_theme_modes_v1",xj="prototype_rich_text_v1",Cj="prototype_content_transition_v1",Dj="prototype_linkify_v1",dne="prototype_identifier_test_tag_only_v1",aY="prototype_text_field_material_style_v1",cY="prototype_bottom_sheet_drag_v1",lne="prototype_icon_set_material_v1",une="prototype_icon_sf_symbols_v1",pne="prototype_icon_variant_v1",DR="prototype_appearance_v1",dY="network_mock_rules_report_v1",Fg="prototype_window_metadata_v1",lY="sdk_capabilities_user_id_v1",Eg="screenshot_hide_prototype_v1",e$="multi_finger_gesture_v1",OR="stylus_input_v1",MR="hover_input_v1",Oj="semantic_node_actions_v1",uY="global_action_power_dialog_v1",pY="global_action_quick_settings_v1",mY="global_action_split_screen_v1",fY="global_action_lock_screen_v1",hY="global_action_screenshot_v1",gY="global_action_dismiss_notification_shade_v1",Vg=["node_selector_actions",Oj,uY,pY,mY,fY,hY,gY,"ime_key_events_v1","ime_clear_field_v1","ime_password_commit_v1","ime_inserted_text_v1","ime_commit_trace_v1","gesture_display_id_v1","tap_double_v1",e$,OR,MR,yl,ib,xR,fp,Tg,UD,kg,ob,sb,dY,Fg,lY,Eg],mne="full_command_set_v1",yY="request_id_echo_v1",fne=new Set(["screenshot","screenshot_error","swipe_result","tap_coordinates_result","drag_result","pinch_result","set_text_result","commit_text_result","cancel_ime_commit_result","set_keyboard_profile_result","set_network_mock_rules_result","keyboard_profiles_result","insert_text_state_result","insert_text_result","ime_action_result","select_all_result","action_result","clipboard_result","settings_get_result","settings_put_result","settings_list_result","installed_packages_result","package_info_result","launch_intent_result","ca_cert_result","device_owner_status_result","permission_result","current_focus_result","traversal_order_result","highlight_response","prototype_result","global_action_result","frame_context_validation_result","device_info_result","keystore_discovery","attestation_chain","keystore_reset","sdk_capabilities","preference_files","preferences","subscribe_storage_result","unsubscribe_storage_result","get_preference_result","set_preference_result","remove_preference_result","clear_preferences_result"]);function hne(o){return`Android service advertised request_id_echo_v1 but sent ${o} without a requestId`}var gne=new Set([].concat(Kg,Vg));var yne="prototype_pager_state_key_v1",Mj="prototype_bar_scroll_v1",Mk="prototype_pager_options_v1",Nj="prototype_style_polish_v2",Fj="prototype_tooltip_v1",Lj="prototype_drawer_v1",Bj="prototype_strings_v1",$j="prototype_semantics_v1",vne="prototype_format_v1",Uj="prototype_adaptive_v1";var HD=8,Vu={alias:"props",index:!1},Wg=new Set(["type","component","props"]);class Wu{roots=[];add(o,i){this.roots.push({expanded:o,authored:i})}locate=(o)=>{let i;for(let l of this.roots)if((o===l.expanded||o.startsWith(`${l.expanded}.`)||o.startsWith(`${l.expanded}[`))&&(!i||l.expanded.length>i.expanded.length))i=l;return i?i.authored+o.slice(i.expanded.length):o}}function Ve(o,i,l){return{path:o.locations.locate(i),message:l}}function Zg(o){return typeof o==="string"||typeof o==="boolean"||typeof o==="number"&&Number.isFinite(o)}function Zu(o){return or(o).flatMap(({value:i})=>{let l=c(i);return l?[l]:[]})}function Uu(o){let i=[];cr(o,"",(u)=>(i.push(u),u));let l=o.type==="use"?Object.values(c(o.props)??{}):[];return[...i,...l].filter((u)=>typeof u==="string").concat(Zu(o).flatMap(Uu))}function Ug(o){return new Set(Uu(o).flatMap((i)=>pt(i,Vu)))}function Xg(o,i){let l=i.references.get(o);if(!l)l=Ug(o),i.references.set(o,l);return l}function On(o,i){let l=zu(o,"",i),u=l.type==="use"?c(l.props):void 0;if(u)l.props=Object.fromEntries(Object.entries(u).map(([m,k])=>[m,JB(k,i)]));if(l.type==="stack")l.screens=Object.fromEntries(Object.entries(c(l.screens)??{}).map(([m,k])=>[m,c(k)?On(c(k),i):k]));let d=c(l.child);if(d)l.child=On(d,i);else if(Array.isArray(l.children))l.children=l.children.map((m)=>{let k=c(m);return k?On(k,i):m});if(l.type==="list"||l.type==="adaptive"){let m=o.type==="adaptive"?["list","detail","content","main","supporting"]:["header","footer"];for(let k of m){let _=c(l[k]);if(_)l[k]=On(_,i)}}return l}function Gg(o,i,l){let u=Object.keys(o).find((d)=>!Wg.has(d));if(u!==void 0)return Ve(l,`${i}.${u}`,"Unknown property");if(typeof o.component!=="string")return Ve(l,`${i}.component`,"Required property");if(o.props!==void 0&&!c(o.props))return Ve(l,`${i}.props`,"Expected object");for(let[d,m]of Object.entries(c(o.props)??{})){if(!ao.test(d))return Ve(l,`${i}.props[${JSON.stringify(d)}]`,"Invalid prop name");if(!Zg(m))return Ve(l,`${i}.props.${d}`,"Component prop must be a string, number or boolean")}return}function Hg(o,i,l,u){let d=Xg(i,u),m=[...d].find((_)=>!Object.hasOwn(o,_));if(m!==void 0)return Ve(u,`${l}.props`,`Missing component prop ${JSON.stringify(m)}`);let k=Object.keys(o).find((_)=>!d.has(_));return k===void 0?void 0:Ve(u,`${l}.props.${k}`,"Unused component prop")}function Jg(o,i,l,u){let d=Gg(o,i,u);if(d)return{error:d};let m=o.component,k=Object.hasOwn(u.components,m)?u.components[m]:void 0;if(!k)return{error:Ve(u,`${i}.component`,`Unknown component ${JSON.stringify(m)}`)};if(l.includes(m)){let T=[...l,m].join(" \u2192 ");return{error:Ve(u,`${i}.component`,`Component cycle: ${T}`)}}if(l.length+1>HD)return{error:Ve(u,i,"Component nesting depth limit exceeded")};let _=c(o.props)??{},x=c(k.root)??{},v=Hg(_,x,i,u);return v?{error:v}:{name:m,root:x,props:_}}function Qg(o,i,l,u){let d=Jg(o,i,l,u);if("error"in d)return{error:d.error};let{name:m,root:k,props:_}=d,x=`${u.locations.locate(i)} (use ${m}) \u2192 components.${m}.root`;u.locations.add(i,x);let v=On(k,{binding:Vu,values:_});return Gt(v,i,[...l,m],u)}function eh(o,i,l,u){let d={...o},m=o.type==="adaptive"?["list","detail","content","main","supporting"]:["header","footer"];for(let k of m){let _=c(d[k]);if(!_)continue;let x=Gt(_,`${i}.${k}`,l,u);if(x.error)return x;d[k]=x.node}return Xu(d,i,l,u)}function Xu(o,i,l,u){if(o.type==="stack"){let k={};for(let[_,x]of Object.entries(c(o.screens)??{})){let v=c(x),T=v?Gt(v,`${i}.screens[${JSON.stringify(_)}]`,l,u):{node:x};if(T.error)return{error:T.error};Object.defineProperty(k,_,{value:T.node,enumerable:!0})}return{node:{...o,screens:k}}}let d=c(o.child);if(d){let k=Gt(d,`${i}.child`,l,u);return k.error?k:{node:{...o,child:k.node}}}if(!Array.isArray(o.children))return{node:o};let m=[];for(let[k,_]of o.children.entries()){let x=c(_),v=x?Gt(x,`${i}.children[${k}]`,l,u):{node:_};if(v.error)return v;m.push(v.node)}return{node:{...o,children:m}}}function Gt(o,i,l,u){if(o.type==="use")return Qg(o,i,l,u);if(u.nodes++,u.nodes>gu.MAX_PROTOTYPE_NODES)return{error:Ve(u,i,"Expanded node limit exceeded")};return o.type==="list"||o.type==="adaptive"?eh(o,i,l,u):Xu(o,i,l,u)}function Gu(o){return o.type==="use"||Zu(o).some(Gu)}function th(o,i){let l=ao.test(o),u=l?`components.${o}`:`components[${JSON.stringify(o)}]`;if(!l)return{path:u,message:"Invalid component name"};let d=c(i);if(!d)return{path:u,message:"Expected object"};let m=Object.keys(d).find((k)=>k!=="root");if(m!==void 0)return{path:`${u}.${m}`,message:"Unknown property"};return c(d.root)?void 0:{path:`${u}.root`,message:"Expected object"}}function nh(o){if(o===void 0)return{};let i=c(o);if(!i)return{path:"components",message:"Expected object"};for(let[l,u]of Object.entries(i)){let d=th(l,u);if(d)return d}return i}function rh(o){return typeof o.path==="string"&&typeof o.message==="string"}function ws(o){let i=c(o),l=c(i?.root);if(!i||!l||i.components===void 0&&!Gu(l))return{success:!0,spec:o,expanded:!1,locate:(_)=>_};let u=nh(i.components);if(rh(u))return{success:!1,error:u};let d=new Wu,m=Gt(l,"root",[],{components:u,locations:d,nodes:0,references:new Map});if(m.error)return{success:!1,error:m.error};let k={...i};return delete k.components,{success:!0,spec:{...k,root:m.node},expanded:!0,locate:d.locate}}function Ig(o){let i=ws(o);return i.success?i.spec:o}function he(o){return typeof o==="string"&&o.length>0&&o.length<=gu.MAX_PROTOTYPE_DATA_POINTER_LENGTH&&ae.pointer.test(o)}function Us(o){if(typeof o!=="string"||!o.startsWith("/data/"))return;let i=o.slice(5);return he(i)?i:void 0}function _g(o){return he(o)?o.slice(1).split("/").map((i)=>i.replaceAll("~1","/").replaceAll("~0","~")):[]}function Pt(o,i){if(!he(i))return;let l=o;for(let u of _g(i))if(Array.isArray(l))l=/^(?:0|[1-9][0-9]*)$/.test(u)&&Number(u)<l.length?l[Number(u)]:void 0;else{let d=c(l);l=d&&Object.hasOwn(d,u)?d[u]:void 0}return l}function*Xm(o,i="data:",l=he){let u=0;while(u<o.length){if(o[u]!=="{"||!o.startsWith(i,u+1)){u++;continue}let d=Math.min(o.length,u+2+i.length+gu.MAX_PROTOTYPE_DATA_POINTER_LENGTH),m=u+1;while(m<d&&o[m]!=="}")m++;let k=m===d?"":o.slice(u+1,m),_=k.startsWith(i)?k.slice(i.length):"";if(l(_))yield{pointer:_,start:u,end:m+1},u=m+1;else u++}}function xr(o){return Array.from(Xm(o),({pointer:i})=>i)}function bne(o){return[...Xm(o),...Xm(o,"platform:"),...Xm(o,"derived:",(i)=>ao.test(i))].map(({start:i,end:l})=>({start:i,end:l})).sort((i,l)=>i.start-l.start)}function $n(o){return Array.from(Xm(o,"platform:"),({pointer:i})=>i)}function vY(o,i){let l=[],u=0;for(let d of Xm(o))l.push(o.slice(u,d.start),i(d.pointer)),u=d.end;return u===0?o:l.join("")+o.slice(u)}function Ju(o,i){return ao.test(o)&&(typeof i==="string"||typeof i==="boolean"||typeof i==="number"&&Number.isFinite(i))}function oh(o){return Object.fromEntries(Object.entries(o).filter(([i,l])=>Ju(i,l)))}class ht{data;renderings=new Map;sources=new Map;counts=new Map;projections=new Map;constructor(o){this.data=o}source(o){if(!this.sources.has(o))this.sources.set(o,Pt(this.data,o));return this.sources.get(o)}rendered(o){let i=this.renderings.get(o);if(i!==void 0)return i;let l=this.source(o),u=typeof l==="string"||typeof l==="boolean"||typeof l==="number"&&Number.isFinite(l)?mp(l):"";return this.renderings.set(o,u),u}text(o,i){let l=!1,u=0;for(let{pointer:d}of Xm(o))if(l=!0,u+=this.rendered(d).length,u>gu.MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH)return;if(!l)return o;if(!i(o.length+u))return;return vY(o,(d)=>this.rendered(d))}cells(o){let i=this.counts.get(o);if(i!==void 0)return i;let l=this.source(o),u=Array.isArray(l)?l.filter((m)=>c(m)!==void 0):[],d=0;for(let m of u.slice(0,Math.max(Cu,gu.MAX_PROTOTYPE_LIST_ITEMS))){let k=0;for(let[_,x]of Object.entries(m))if(Ju(_,x))k++;d+=Math.max(1,k)}return this.counts.set(o,d),d}items(o){let i=this.projections.get(o);if(i)return i;let l=this.source(o),u=Array.isArray(l)?l.filter((m)=>c(m)!==void 0):[],d=Object.freeze(u.map((m)=>Object.freeze(oh(m))));return this.projections.set(o,d),d}}function Ht(o,i,l){let u=c(o);if(!u)return;if(Object.hasOwn(u,"data"))l.add(`${i}.data`);Ht(u.not,`${i}.not`,l);for(let d of["all","any"]){let m=u[d];if(Array.isArray(m))m.forEach((k,_)=>Ht(k,`${i}.${d}[${_}]`,l))}}function ih(o,i,l){if(o.type==="icon"&&c(c(o.effect)?.trigger)?.data!==void 0)l.add(`${i}.effect.trigger.data`)}function ah(o,i){let l=new Set,u=c(o.repeat);if(c(u?.items))l.add(`${i}.repeat.items`);if(u&&Object.hasOwn(u,"key"))l.add(`${i}.repeat.key`);if(cr(o,i,(d,m,k)=>{if(k==="emitBinding"&&typeof c(d)?.data==="string")l.add(m);if(k==="text"&&typeof d==="string"&&xr(d).length)l.add(m);return d}),ih(o,i,l),o.type==="image"&&typeof c(o.asset)?.data==="string")l.add(`${i}.asset`);if((Array.isArray(o.items)?o.items:[]).forEach((d,m)=>{if(typeof c(c(d)?.image)?.data==="string")l.add(`${i}.items[${m}].image`)}),Ht(o.enabledWhen,`${i}.enabledWhen`,l),Ht(o.visibleWhen,`${i}.visibleWhen`,l),Ht(o.errorWhen,`${i}.errorWhen`,l),Array.isArray(o.styleWhen))o.styleWhen.forEach((d,m)=>Ht(c(d)?.when,`${i}.styleWhen[${m}].when`,l));return l}function Hu(o,i){let l=[],u=[{node:o,path:i}];while(u.length){let d=u.pop();if("field"in d){l.push(d.field);continue}let{path:m}=d,k=c(d.node);if(!k)continue;let _=ah(k,m),x=or(k),v=[];for(let[T,R]of Object.entries(k))if(["child","children","screens","header","footer"].includes(T)||k.type==="adaptive"&&["list","detail","content","main","supporting"].includes(T))v.push(...x.filter((O)=>O.suffix===`.${T}`||O.suffix.startsWith(`.${T}[`)).map((O)=>({node:O.value,path:`${m}${O.suffix}`})));else v.push(...Zo(R,`${m}.${T}`,_).map((O)=>({field:O})));u.push(...v.reverse())}return l}function Zo(o,i,l){if(l.has(i))return[i];if(Array.isArray(o))return o.flatMap((m,k)=>Zo(m,`${i}[${k}]`,l));let u=c(o);if(!u)return[];let d=l;return Object.entries(u).flatMap(([m,k])=>Zo(k,`${i}.${m}`,d))}function Sne(o){let i=ws(o),l=c(i.success?i.spec:o);if(!l)return[];let u=[...Object.hasOwn(l,"data")?["data"]:[],...Mr(l).flatMap(({node:m,path:k})=>Hu(m,k))],d=i.success&&i.expanded?Mr(o).filter(({path:m})=>m!=="root").flatMap(({node:m,path:k})=>Hu(m,k)):[];return[...u,...d.filter((m)=>!u.some((k)=>i.success&&i.locate(k).endsWith(` \u2192 ${m}`)))]}function wne(o,i){let l=o.length>1?` (and ${o.length-1} more)`:"",u=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",d=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy";return`The ${u} does not advertise ${nj}, so it cannot resolve the data binding at ${o[0]}${l}: a top-level data object, repeat.items {path}, repeat.key, {data: pointer} conditions and {data:/pointer} text placeholders. Nothing was shown. ${d}, or inline the content as literal repeat.items, state keys and literal text.`}function Rne(o){let i=[],l=Mr(o).reverse();while(l.length){let{node:u,path:d}=l.pop(),m=c(u);if(!m)continue;if(m.type==="menu"||m.type==="select")i.push(d);let k=or(m).sort((_,x)=>Number(x.suffix===".child")-Number(_.suffix===".child"));for(let _ of k.reverse())l.push({node:_.value,path:`${d}${_.suffix}`})}return i}function Pne(o,i){let l=o.length>1?` (and ${o.length-1} more)`:"",u=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",d=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy";return`The ${u} does not advertise ${ej}, so it cannot render the menu or select at ${o[0]}${l}. Nothing was shown. ${d}, or replace menu/select with buttons and radioGroup.`}function Uo(o,i,l){let u=c(o.append);if(typeof u?.to!=="string")return;let d=u.to,m=`${i}.append.to`,k=In(d,"request");if(k)return{path:m,message:k};if(typeof o.into==="string"&&(d===o.into||d.startsWith(`${o.into}/`)||o.into.startsWith(`${d}/`)))return{path:m,message:"append.to must not overlap into"};if(!d.split("/").includes("{index}")&&l!==void 0){let _=Pt(l,d.slice(5));if(_!==void 0&&!Array.isArray(_))return{path:m,message:"append.to must name an array"}}return}import{isIP as ed}from"net";var sh=[[0,16777215],[2130706432,2147483647],[2851995648,2852061183],[167772673,167772678],[167772930,167772930],[3758096384,4294967295]],lh=[[167772160,184549375],[2886729728,2887778303],[3232235520,3232301055],[1681915904,1686110207],[3221225472,3221225727],[3221225984,3221226239],[3325256704,3325256959],[3405803776,3405804031],[3323068416,3323199487]];function Xo(o){let i=o.reduce((l,u)=>l*256+u,0);if(sh.some(([l,u])=>i>=l&&i<=u))return"blocked";return lh.some(([l,u])=>i>=l&&i<=u)?"private":"public"}function uh(o){let i=new URL(`http://[${o}]/`).hostname.slice(1,-1),[l,u]=i.split("::"),d=l?l.split(":").map((k)=>Number.parseInt(k,16)):[];if(u===void 0)return d;let m=u?u.split(":").map((k)=>Number.parseInt(k,16)):[];return[...d,...Array(8-d.length-m.length).fill(0),...m]}var dh=[[0,0,0,0,0,0],[0,0,0,0,0,65535],[0,0,0,0,65535,0],[100,65435,0,0,0,0]],ch=[[6,7,9,10],[7,9,10,11],[9,10,11,12],[12,13,14,15]];function Qu(o){return o.flatMap((i)=>[i>>>8,i&255])}function ph(o){if(o[0]===100&&o[1]===65435&&o[2]===1){let u=Qu(o),d=ch.map((m)=>Xo(m.map((k)=>u[k])));return d.includes("blocked")?"blocked":d.includes("private")?"private":"public"}let i=dh.some((u)=>u.every((d,m)=>o[m]===d)),l=o[0]===8194?o.slice(1,3):i?o.slice(6,8):void 0;return l===void 0?void 0:Xo(Qu(l))}var mh=[[256,0,0,0],[8193,2,0],[8193,3512],[24320]];function fh(o){return(o[0]&65024)===64512||o[0]===16383&&(o[1]&61440)===0||mh.some((i)=>i.every((l,u)=>o[u]===l))}function yh(o){let i=ed(o);if(i===4)return Xo(o.split(".").map(Number));if(i!==6||o.includes("%"))return"blocked";let l=uh(o),u=ph(l);if(u!==void 0)return u;if(l[0]===8193&&l[1]===0||(l[0]&65472)===65216||(l[0]&65472)===65152||(l[0]&65280)===65280)return"blocked";return fh(l)?"private":"public"}class Nk{daemonPorts;constructor(o){this.daemonPorts=o}permitsHostname(o){let i=o.toLowerCase().replace(/\.$/,"");return i!=="localhost"&&!i.endsWith(".localhost")}permitsAddress(o,i){let l=yh(o);return l==="public"||l==="private"&&!this.daemonPorts.has(i)}}function Ane(o,i){let l=o.hostname.replace(/^\[|\]$/g,"");if(!i.permitsHostname(l))return"The destination is not permitted.";if(ed(l)&&!i.permitsAddress(l,bY(o)))return"The destination is not permitted.";return}function bY(o){return Number(o.port||(o.protocol==="https:"||o.protocol==="wss:"?443:80))}var gh=new Set(["host","connection","upgrade","transfer-encoding","content-length","te","trailer","keep-alive","cookie","origin","expect"]);function Hj(o={}){return Object.keys(o).find((i)=>{let l=i.toLowerCase();return gh.has(l)||l.startsWith("proxy-")})}var pd="prototype_storage_v1";function td(o){return{type:"clear_prototype_storage",requestId:o.requestId,id:o.id}}var hh=new Map([["request_tap_coordinates",["duration"]],["request_swipe",["duration"]],["request_two_finger_swipe",["duration"]],["request_pinch",["duration"]]]),kh=new Map([["request_drag",["pressDurationMs","dragDurationMs","holdDurationMs","holdTime","duration"]],["set_hierarchy_interval",["intervalMs"]]]);function SY(o,i){let l=hh.get(o),u=l??kh.get(o);if(!u)return i;return Object.fromEntries(Object.entries(i).map(([d,m])=>[d,u.includes(d)&&typeof m==="number"?l!==void 0||m>0?Math.max(1,Math.round(m)):Math.round(m):m]))}function Kn(o){return JSON.stringify(SY(o.type,{...o}))}var rr={requestHierarchy(o){return{type:"request_hierarchy",requestId:o.requestId,...o.displayId===void 0?{}:{displayId:o.displayId},disableAllFiltering:o.disableAllFiltering,maxDepth:o.maxDepth,maxNodes:o.maxNodes}},requestHierarchyIfStale(o){return{type:"request_hierarchy_if_stale",requestId:o.requestId,sinceTimestamp:o.sinceTimestamp}},setHierarchyInterval(o){return{type:"set_hierarchy_interval",intervalMs:o.intervalMs}},requestScreenshot(o){return{type:"request_screenshot",requestId:o.requestId,...o.displayId===void 0?{}:{displayId:o.displayId},...o.hidePrototypes===!0?{hidePrototypes:!0}:{}}},requestClickFocusedInput(o){return{type:"request_click_focused_input",requestId:o.requestId}},requestAction(o){return{type:"request_action",requestId:o.requestId,action:o.action,resourceId:o.resourceId,selector:o.selector,...o.customAction!==void 0?{customAction:o.customAction}:{},...o.progress!==void 0?{progress:o.progress}:{}}},requestActivateAccessibilityLink(o){return{type:"request_activate_accessibility_link",requestId:o.requestId,text:o.text,occurrence:o.occurrence,selector:o.selector}},requestClipboard(o){return{type:"request_clipboard",requestId:o.requestId,action:o.action,text:o.text}},requestSettingsGet(o){return{type:"request_settings_get",requestId:o.requestId,namespace:o.namespace,key:o.key}},requestSettingsPut(o){return{type:"request_settings_put",requestId:o.requestId,namespace:o.namespace,key:o.key,value:o.value,valueType:o.valueType}},requestSettingsList(o){return{type:"request_settings_list",requestId:o.requestId,namespace:o.namespace}},installCaCert(o){return{type:"install_ca_cert",requestId:o.requestId,certificate:o.certificate}},installCaCertFromPath(o){return{type:"install_ca_cert_from_path",requestId:o.requestId,devicePath:o.devicePath}},removeCaCert(o){return{type:"remove_ca_cert",requestId:o.requestId,alias:o.alias}},getDeviceOwnerStatus(o){return{type:"get_device_owner_status",requestId:o.requestId}},getPermission(o){return{type:"get_permission",requestId:o.requestId,permission:o.permission,requestPermission:o.requestPermission}},requestDeviceInfo(o){return{type:"request_device_info",requestId:o.requestId}},getCurrentFocus(o){return{type:"get_current_focus",requestId:o.requestId}},getTraversalOrder(o){return{type:"get_traversal_order",requestId:o.requestId}},showPrototype(o){return{type:"show_prototype",requestId:o.requestId,spec:o.spec,...o.displayId===void 0?{}:{displayId:o.displayId},...o.reset===!0?{reset:!0}:{},...o.replaceOthers===!1?{replaceOthers:!1}:{},...o.spec.strings&&o.locale!==void 0?{locale:o.locale}:{},...o.appearance===void 0?{}:{appearance:o.appearance}}},savePrototype(o){return{type:"save_prototype",requestId:o.requestId,spec:o.spec,label:o.label,...o.icon===void 0?{}:{icon:o.icon}}},pinSavedPrototype(o){return{type:"pin_saved_prototype",requestId:o.requestId,id:o.id,...o.icon===void 0?{}:{icon:o.icon}}},listSavedPrototypes(o){return{type:"list_saved_prototypes",requestId:o.requestId}},deleteSavedPrototype(o){return{type:"delete_saved_prototype",requestId:o.requestId,id:o.id}},advancePrototypeClock:(o)=>({type:"advance_prototype_clock",...o}),clearPrototypeStorage:td,patchPrototype(o){return{type:"patch_prototype",requestId:o.requestId,id:o.id,...o.baseRevision===void 0?{}:{baseRevision:o.baseRevision},ops:o.ops}},inspectPrototypes(o){return{type:"inspect_prototypes",requestId:o.requestId}},dismissPrototype(o){return o.id!==void 0?{type:"dismiss_prototype",requestId:o.requestId,id:o.id}:{type:"dismiss_prototype",requestId:o.requestId,all:o.all}},putPrototypeAsset(o){return{type:"put_prototype_asset",requestId:o.requestId,id:o.id,mimeType:o.mimeType,dataBase64:o.dataBase64}},removePrototypeAsset(o){return{type:"remove_prototype_asset",requestId:o.requestId,id:o.id}},addHighlight(o){let i={type:"add_highlight",requestId:o.requestId};if(o.id)i.id=o.id;if(o.shape)i.shape=o.shape;return i},listPreferenceFiles(o){return{type:"list_preference_files",requestId:o.requestId,packageName:o.packageName}},getPreferences(o){return{type:"get_preferences",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName}},resetKeystore(o){return{type:"reset_keystore",...o}},exportAttestation(o){return{type:"export_attestation",...o}},discoverKeystore(o){return{type:"discover_keystore",...o}},getSdkCapabilities(o){return{type:"get_sdk_capabilities",...o}},listDataStores(o){return{type:"list_data_stores",requestId:o.requestId,packageName:o.packageName,adapterName:o.adapterName}},getDataStore(o){return{type:"get_data_store",requestId:o.requestId,packageName:o.packageName,adapterName:o.adapterName,storeName:o.storeName}},subscribeStorage(o){return{type:"subscribe_storage",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName}},unsubscribeStorage(o){return{type:"unsubscribe_storage",requestId:o.requestId,subscriptionId:o.subscriptionId}},getPreference(o){return{type:"get_preference",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName,key:o.key}},setPreference(o){return{type:"set_preference",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName,key:o.key,value:o.value,valueType:o.valueType}},removePreference(o){return{type:"remove_preference",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName,key:o.key}},clearPreferences(o){return{type:"clear_preferences",requestId:o.requestId,packageName:o.packageName,fileName:o.fileName}},requestGlobalAction(o){return{type:"request_global_action",requestId:o.requestId,action:o.action,frameContext:o.frameContext}},validateFrameContext(o){return{type:"validate_frame_context",requestId:o.requestId,frameContext:o.frameContext}},setRecompositionTracking(o){return{type:"set_recomposition_tracking",requestId:o.requestId,enabled:o.enabled}},setAccessibilityFlags(o){return{type:"set_accessibility_flags",includeNotImportantViews:o.includeNotImportantViews,reportViewIds:o.reportViewIds,retrieveInteractiveWindows:o.retrieveInteractiveWindows,occlusionEnabled:o.occlusionEnabled}},setNetworkMockRules(o){return{type:"set_network_mock_rules",rules:o.rules}},setNetworkErrorSimulation(o){return{type:"set_network_error_simulation",enabled:o.enabled,errorType:o.errorType??null,limit:o.limit??null,expiresAtEpochMs:o.expiresAtEpochMs??null,remainingMs:o.remainingMs??null}},requestInstalledPackages(o){return{type:"request_installed_packages",requestId:o.requestId,includeSystem:o.includeSystem,userId:o.userId??null}},requestPackageInfo(o){return{type:"request_package_info",requestId:o.requestId,packageName:o.packageName,includePermissions:o.includePermissions}},requestLaunchIntent(o){return{type:"request_launch_intent",requestId:o.requestId,packageName:o.packageName}},startRecording(){return{type:"start_recording"}},stopRecording(){return{type:"stop_recording"}}};function Tne(o,i){let l=i==="android"?"connected CtrlProxy":"connected iOS prototype agent",u=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${tj}, so it cannot resolve emit.context at ${o[0]}${d}. Nothing was shown. ${u}, or omit emit.context.`}function kne(o){return vl(o,"emitContext")}function vl(o,i){let l=ws(o);if(!l.success)return[];let u=[],d=(k,_)=>{cr(k,_,(x,v,T)=>{if(T===i)u.push(v);return x})};X(l.spec,d),Ke(l.spec,(k,_,x)=>{if(x===i)u.push(_);return k});let m=u.map(l.locate);if(u.length=0,l.expanded)X({components:c(o)?.components},d);return[...m,...u.filter((k)=>!m.some((_)=>_.endsWith(` \u2192 ${k}`)))]}var{MAX_PROTOTYPE_PATCH_OPS:Fk}=V.limits;function pe(o,i){return Object.hasOwn(o,i)?o[i]:void 0}function vr(o,i,l){Object.defineProperty(o,i,{value:structuredClone(l),enumerable:!0,writable:!0,configurable:!0})}function oe(o,i){return{path:o,message:i}}function Cn(o,i){if(o===i)return!0;if(Array.isArray(o))return Array.isArray(i)&&o.length===i.length&&o.every((d,m)=>Cn(d,i[m]));let l=c(o),u=c(i);return!!l&&!!u&&Object.keys(l).length===Object.keys(u).length&&Object.keys(l).every((d)=>Object.hasOwn(u,d)&&Cn(pe(l,d),pe(u,d)))}function _h(o,i){let l=c(o);if(!l)return oe(i,"Expected object");let u=pe(l,"op");if(typeof u!=="string"||!["add","replace","remove","test","replaceNode"].includes(u))return oe(`${i}.op`,"Unknown or missing op");let d=u==="replaceNode"?["id","node"]:u==="remove"?["path"]:["path","value"],m=Object.keys(l).filter((_)=>!["op",...d].includes(_)).sort(xh)[0];if(m!==void 0)return oe(`${i}.${m}`,"Unknown property");let k=d.find((_)=>!Object.hasOwn(l,_));if(k!==void 0)return oe(`${i}.${k}`,"Required property");return vh(l,i)}function xh(o,i){let l=Array.from(o,(d)=>d.codePointAt(0)??0),u=Array.from(i,(d)=>d.codePointAt(0)??0);for(let d=0;d<Math.min(l.length,u.length);d++)if(l[d]!==u[d])return l[d]-u[d];return l.length-u.length}function vh(o,i){if(pe(o,"op")!=="replaceNode")return typeof pe(o,"path")==="string"?void 0:oe(`${i}.path`,"Expected string");let l=pe(o,"id");if(typeof l!=="string"||l==="")return oe(`${i}.id`,"Expected string");return c(pe(o,"node"))?void 0:oe(`${i}.node`,"Expected object")}function Ph(o,i){let l=o.split("/")[1];if(["root","window","theme"].includes(l)&&o.startsWith("/"))return oe(`${i}.path`,"Not patchable: use show for window, theme and root changes, or replaceNode for one node");let u=o.slice(l==="data"?5:6);if((l==="data"||l==="state")&&(u===""||he(u))&&o.startsWith("/"))return;return oe(`${i}.path`,"Patch paths start with /data or /state")}function Th(o){return typeof o==="string"||typeof o==="boolean"||typeof o==="number"&&Number.isFinite(o)}function Eh(o,i,l){let u=c(o.root);if(!u||typeof l!=="number"||!Number.isInteger(l))return l;for(let{node:d}of Go({node:u,path:"root",parent:o,key:"root",insideRepeat:!1}))if(d.type==="pager"&&d.stateKey===i&&Array.isArray(d.children)&&d.children.length)return Math.min(Math.max(l,0),d.children.length-1);return l}function Sh(o,i,l,u){let d=_g(i.path.slice(6));if(d.length!==1)return oe(`${l}.path`,"State patches address one key: /state/<key>");let m=d[0];if(!ao.test(m))return oe(`${l}.path`,"Invalid state key");if(i.op!=="remove"&&!Th(i.value))return oe(`${l}.value`,"Invalid scalar value");let k=c(pe(o,"state"))??{};if(i.op!=="add"&&!Object.hasOwn(k,m))return oe(`${l}.path`,"Path does not exist");if(i.op==="test")return u||Cn(pe(k,m),i.value)?void 0:oe(`${l}.value`,"Test failed");if(i.op==="remove")delete k[m];else vr(k,m,Eh(o,m,i.value));Object.defineProperty(o,"state",{value:k,enumerable:!0,writable:!0,configurable:!0})}function rd(o,i,l){if(l&&o==="-")return i;if(!/^(?:0|[1-9][0-9]*)$/.test(o))return;let u=Number(o);return u<i||l&&u===i?u:void 0}function wh(o,i){if(Array.isArray(o)){let u=rd(i,o.length,!1);return u===void 0?void 0:o[u]}let l=c(o);return l?pe(l,i):void 0}function nd(o,i,l,u){if(l.op!=="add"&&!Object.hasOwn(o,i))return oe(`${u}.path`,"Path does not exist");if(l.op==="test")return Cn(pe(o,i),l.value)?void 0:oe(`${u}.value`,"Test failed");if(l.op==="remove")delete o[i];else vr(o,i,l.value)}function Ah(o,i,l,u){let d=rd(i,o.length,l.op==="add");if(d===void 0)return oe(`${u}.path`,"Path does not exist");switch(l.op){case"test":return Cn(o[d],l.value)?void 0:oe(`${u}.value`,"Test failed");case"add":o.splice(d,0,structuredClone(l.value));break;case"replace":vr(o,String(d),l.value);break;case"remove":o.splice(d,1);break}}function Rh(o,i,l){let u=_g(i.path.slice(5));if(!u.length)return nd(o,"data",i,l);let d=pe(o,"data");for(let _ of u.slice(0,-1))d=wh(d,_);let m=u[u.length-1];if(Array.isArray(d))return Ah(d,m,i,l);let k=c(d);return k?nd(k,m,i,l):oe(`${l}.path`,"Path does not exist")}function Oh(o,i){if(o.node.type!=="adaptive")return[];return["list","detail","content","main","supporting"].flatMap((l)=>{let u=c(pe(o.node,l));return u?[{node:u,path:`${o.path}.${l}`,parent:o.node,key:l,insideRepeat:i}]:[]})}function*Go(o){let i=[o];while(i.length){let l=i.pop();yield l;let u=l.insideRepeat||Object.hasOwn(l.node,"repeat"),d=pe(l.node,"children"),m=Array.isArray(d)?d:[];for(let x=m.length-1;x>=0;x--){let v=c(m[x]);if(v)i.push({node:v,path:`${l.path}.children[${x}]`,parent:m,key:String(x),insideRepeat:u})}let k=c(pe(l.node,"screens"));for(let[x,v]of Object.entries(k??{}).reverse()){let T=c(v);if(T&&k)i.push({node:T,path:`${l.path}.screens[${JSON.stringify(x)}]`,parent:k,key:x,insideRepeat:u})}i.push(...Oh(l,u));let _=c(pe(l.node,"child"));if(_)i.push({node:_,path:`${l.path}.child`,parent:l.node,key:"child",insideRepeat:u})}}function $h(o,i){if(pe(o.node,"id")!==o.id)return oe(`${i}.node.id`,"Replacement must keep the same id");for(let{node:l,path:u}of Go({node:o.node,path:`${i}.node`,parent:{},key:"node",insideRepeat:!1})){if(pe(l,"type")==="use")return oe(`${u}.type`,"Components are not expanded in a patch: inline the node or use show");let d=c(pe(l,"anchor"));if(d&&pe(d,"type")==="element")return oe(`${u}.anchor.type`,"Element anchors are resolved by show: use a bounds anchor or use show")}}function Ih(o,i,l){let u=$h(i,l);if(u)return u;let d=c(pe(o,"root")),k=(d?[...Go({node:d,path:"root",parent:o,key:"root",insideRepeat:!1})]:[]).filter(({node:x})=>pe(x,"id")===i.id);if(!k.length)return oe(`${l}.id`,"Unknown node id");if(k.length>1)return oe(`${l}.id`,"Node id is not unique");let _=k[0];if(_.node===d)return oe(`${l}.id`,"The root cannot be replaced: use show");if(_.insideRepeat)return oe(`${l}.id`,"A node inside a repeat cannot be replaced: replace the repeating node");vr(_.parent,_.key,i.node)}function qj(o,i,l){let u=c(o);if(!u)return{success:!1,error:oe("$","Expected object")};if(!Array.isArray(i))return{success:!1,error:oe("ops","Expected array")};if(!i.length||i.length>Fk)return{success:!1,error:oe("ops","Array length out of range")};let d=structuredClone(u);for(let m=0;m<i.length;m++){let k=`ops[${m}]`,_=_h(i[m],k);if(_)return{success:!1,error:_};let x=i[m],v=Ch(d,x,k,l?.stateTests==="skip");if(v)return{success:!1,error:v}}return{success:!0,spec:d}}function Ch(o,i,l,u){if(i.op==="replaceNode")return Ih(o,i,l);let d=Ph(i.path,l);if(d)return d;return i.path.startsWith("/state")?Sh(o,i,l,u):Rh(o,i,l)}function Ene(o){return Array.isArray(o)&&o.some((i)=>{let l=c(i),u=l?pe(l,"path"):void 0;return typeof u==="string"&&(u==="/state"||u.startsWith("/state/"))})}function Ine(o){return Array.isArray(o)?o.flatMap((i)=>{let l=c(i),u=l?pe(l,"path"):void 0;return typeof u==="string"&&(u==="/data"||u.startsWith("/data/"))?[u]:[]}):[]}var NR=["glassGroup","glassUnion","glassTransition","backgroundExtension"],Mh=["column","row","box","flow","grid","list","listItem"];function _ne(o,i){let l=[];return X(o,(u,d)=>{let m=[{value:u.style,path:`${d}.style`},...(Array.isArray(u.styleWhen)?u.styleWhen:[]).map((k,_)=>({value:c(k)?.style,path:`${d}.styleWhen[${_}].style`}))];for(let k of m){let _=c(k.value);for(let x of["surface","glass"])if(_?.[x]!==void 0)l.push(`${k.path}.${x}`)}if(i!=="android"){for(let k of NR)if(c(u.ios)?.[k]!==void 0)l.push(`${d}.ios.${k}`)}}),l}function t$(o){let i=[];return X(o,(l,u)=>{if(l.type==="scroll"&&l.edgeEffect!==void 0)i.push(`${u}.edgeEffect`)}),i}function Pr(o,i,l){if(i==="style"&&o.glass!==void 0&&o.surface!=="glass")return{path:`${l}.glass`,message:l.includes(".styleWhen[")?'styleWhen glass requires surface: "glass" in the same style':'glass requires surface: "glass"'};if(l==="window"||l==="theme"){let u=NR.find((d)=>c(o.ios)?.[d]!==void 0);if(u)return{path:`${l}.ios.${u}`,message:`${u} is only valid on a node`}}return jh(o,l)}function jh(o,i){let l=c(o.ios);if(!l)return;if(l.glassGroup!==void 0&&!Mh.includes(String(o.type)))return{path:`${i}.ios.glassGroup`,message:"glassGroup requires a container node"};for(let u of["glassUnion","glassTransition"])if(l[u]!==void 0&&c(o.style)?.surface!=="glass")return{path:`${i}.ios.${u}`,message:`${u} requires a glass surface`};if(l.backgroundExtension!==void 0&&o.type!=="image")return{path:`${i}.ios.backgroundExtension`,message:"backgroundExtension requires an image node"};return}function od(o,i,l){if(!c(o.shared)||c(o.style)?.surface!=="glass")return;return l.findLast((u)=>i.startsWith(`${u.path}.`)&&c(u.value.ios)?.glassGroup!==void 0)?.path}var xg=new Set(V.definitions.iconName.values);function Tr(o){let i=typeof o==="string"?o.toLowerCase().slice(0,128):"",l=i?[...xg].filter((d)=>i.includes(d)||d.includes(i)).sort((d,m)=>Math.abs(d.length-i.length)-Math.abs(m.length-i.length)||d.localeCompare(m)).slice(0,3):[],u=l.length?` Did you mean ${l.map((d)=>JSON.stringify(d)).join(", ")}?`:" Choose an allowed icon name.";return`Invalid enum value: Unknown prototype icon name ${JSON.stringify(o)}.${u} Browse automobile:prototype/icons?query=<substring> for allowed names.`}var id=600;function ad(o){if(typeof o==="string")return o;let i=c(o)?.type;return typeof i==="string"?i:void 0}function Nh(o,i,l){switch(l){case"reverse":return i-1-o;case"center":return Math.floor(Math.abs(2*o-(i-1))/2);default:return o}}function Lh(o){return o.order==="reverse"||o.order==="center"?o.order:"forward"}function qh(o){let i=c(c(o)?.transition)?.delayMs;return typeof i==="number"?i:0}function zh(o,i){let l=(Array.isArray(o.children)?o.children:[]).filter((v)=>c(v)?.visibleWhen!==void 0),u=c(o.repeat)?.items,d=Array.isArray(u)?u.length:1,m=l.length*d,k=typeof i.ms==="number"?i.ms:0,_=Lh(i),x=0;for(let v=0;v<m;v++){let T=Nh(v,m,_)*k+qh(l[v%l.length]);x=Math.max(x,T)}return x}function sd(o){let i=o.find(({value:l})=>{let u=c(l.stagger);return u!==void 0&&zh(l,u)>id});return i?{path:`${i.path}.stagger`,message:`Stagger and transition delays add up to more than ${id} ms`}:void 0}function Dh(o,i){return[...o.type!=="stack"&&c(o.transition)!==void 0||o.type!=="stack"&&o.transition==="blurReplace"?[`${i}.transition`]:[],...o.stagger!==void 0?[`${i}.stagger`]:[]]}function xne(o){let i=[];return X(o,(l,u)=>{i.push(...Dh(l,u))}),i}function Cne(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${fj}, so it cannot run the choreography at ${o[0]}${d}. Nothing was shown. ${u}, or use plain transition names and no stagger.`}var Bh=["cornerRadius","elevation","shadowColor","padding"];function fd(o){let i=c(o);if(!i)return!1;let l=c(i.border);return Bh.some((u)=>i[u]!==void 0)||l?.color!==void 0||l?.width!==void 0||c(i.width)?.dp!==void 0||c(i.height)?.dp!==void 0}function Dne(o){let i=c(o)?.motion==="expressive"?["motion"]:[];return X(o,(l,u)=>{if(l.press!==void 0)i.push(`${u}.press`);if(l.animate!==void 0&&(fd(l.style)||Array.isArray(l.styleWhen)&&l.styleWhen.some((d)=>fd(c(d)?.style))))i.push(`${u}.animate`)}),i}var Yh=new Set(["button","iconButton","fab","chip","listItem","switch","checkbox","radioGroup","segmentedButton","select","menu"]);function yd(o){let i=o.find(({value:l})=>l.press!==void 0&&!Yh.has(String(l.type))&&!["onTap","onLongPress","onDoubleTap"].some((u)=>Array.isArray(l[u])&&l[u].length>0));return i?{path:`${i.path}.press`,message:"press requires a pressable node"}:void 0}function One(o,i){return`The connected ${i==="ios"?"iOS prototype agent":"CtrlProxy"} does not advertise prototype_motion_v3, so it cannot run the motion at ${o[0]}. Nothing was shown. Expressive, press and layout animate currently require an updated Android CtrlProxy.`}var Kh=["slideStart","slideEnd","scale"],Fh=["scale","rotation"];function hd(o){let i=o.find(({value:l})=>l.type==="image"&&l.zoomable!==void 0&&l.onDoubleTap!==void 0);return i?{path:`${i.path}.zoomable`,message:"A zoomable image cannot also have onDoubleTap"}:void 0}function gd(o,i){let l=c(o);return l?Fh.filter((u)=>l[u]!==void 0).map((u)=>`${i}.${u}`):[]}function Vh(o,i){let l=Array.isArray(o.styleWhen)?o.styleWhen:[];return[...o.animate!==void 0?[`${i}.animate`]:[],...o.type!=="stack"&&Kh.includes(ad(o.transition))?[`${i}.transition`]:[],...gd(o.style,`${i}.style`),...l.flatMap((u,d)=>gd(c(u)?.style,`${i}.styleWhen[${d}].style`)),...o.type==="image"&&o.zoomable!==void 0?[`${i}.zoomable`]:[]]}function Mne(o){let i=[];return X(o,(l,u)=>{i.push(...Vh(l,u))}),i}function Nne(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${pj}, so it cannot run the motion at ${o[0]}${d}. Nothing was shown. ${u}, or use instant styleWhen changes and the fade, expand or slide transitions.`}var Wh=V.limits.MAX_PROTOTYPE_LOOPS,kd=f({effect:P(["pulse","spin"]),periodMs:A().finite().int().min(400).max(4000),iterations:Ne([ee("infinite"),A().finite().int().min(1).max(20)]).optional()}).strict();function bd(o,i,l){if(o.attentionLoop===void 0)return;return i.loops=(i.loops??0)+1,i.loops>Wh?{path:`${l}.attentionLoop`,message:"Loop node limit exceeded"}:void 0}function _d(o){for(let{value:i,path:l}of o){let u=c(i.attentionLoop)?.effect;if(u!=="pulse"&&u!=="spin")continue;let d=u==="pulse"?"scale":"rotation";if([i.style,...Array.isArray(i.styleWhen)?i.styleWhen.map((k)=>c(k)?.style):[]].some((k)=>c(k)?.[d]!==void 0))return{path:`${l}.attentionLoop`,message:`${u} loop cannot set style.${d}`}}return}function Fne(o){let i=[];return X(o,(l,u)=>{if(l.attentionLoop!==void 0)i.push(`${u}.attentionLoop`)}),i}function Lne(o,i){return`The connected ${i==="ios"?"iOS prototype agent":"CtrlProxy"} does not advertise prototype_loops_v1, required by ${o[0]}. Nothing was shown. Attention loops currently require an updated Android CtrlProxy.`}function xd(o){return yd(o)??_d(o)??hd(o)??sd(o)}var Zh={scale:1,scaleX:1,scaleY:1,rotation:0,offsetX:0,offsetY:0,alpha:1},vd=z(z(A().finite()).length(2)).min(2).max(8),Rt=Ne([vd,f({points:vd,curve:P(["linear","standard","spring"]).optional()}).strict()]),Pd=f({trigger:f({key:y().regex(ae.stateKey).optional(),data:y().refine(he).optional()}).strict().refine((o)=>o.key!==void 0!==(o.data!==void 0)),durationMs:A().finite().int().min(100).max(3000),tracks:f({scale:Rt.optional(),scaleX:Rt.optional(),scaleY:Rt.optional(),rotation:Rt.optional(),offsetX:Rt.optional(),offsetY:Rt.optional(),alpha:Rt.optional()}).strict().refine((o)=>Object.keys(o).length>0)}).strict().superRefine((o,i)=>{let l=Ho(o.tracks,"tracks");if(l)i.addIssue({code:"custom",path:l.path.split("."),message:l.message})});function Td(o,i,l,u){if(o.keyframes!==void 0&&++i.keyframeNodes>l.MAX_PROTOTYPE_KEYFRAME_NODES)return{path:`${u}.keyframes`,message:"Keyframe node limit exceeded"};return}function Uh(o){let i=Array.isArray(o)?o:c(o)?.points;if(!Array.isArray(i)||i.length<2)return;return i.every((u)=>Array.isArray(u)&&u.length===2&&u.every((d)=>typeof d==="number"&&Number.isFinite(d)))?i:void 0}function Xh(o,i,l){let u=Zh[o];if(i[0][0]!==0||i.at(-1)[0]!==1||i.some((k,_)=>k[0]<0||k[0]>1||_>0&&k[0]<=i[_-1][0]))return"Fractions must increase strictly from 0 to 1";if(i[0][1]!==u||i.at(-1)[1]!==u)return`First and last values must equal rest value ${u}`;return i.some((k)=>o==="alpha"?k[1]<0||k[1]>1:o.startsWith("scale")&&k[1]<=0)?"alpha must be in 0..1 and scale values must be positive":void 0}function Ho(o,i){for(let[l,u]of Object.entries(c(o)??{}).sort(([d],[m])=>d<m?-1:d>m?1:0)){let d=Uh(u),m=d?Xh(l,d,i):void 0;if(m)return{path:`${i}.${l}`,message:m}}return}function Ed(o,i){for(let{value:l,path:u}of o){let d=c(c(l.keyframes)?.trigger);if(typeof d?.key==="string"&&!Object.hasOwn(c(i.state)??{},d.key))return{path:`${u}.keyframes.trigger.key`,message:"Unknown state key"};if(typeof d?.data==="string"&&Pt(i.data,d.data)===void 0)return{path:`${u}.keyframes.trigger.data`,message:"Data pointer does not resolve"}}return}function Bne(o){let i=[];return X(o,(l,u)=>{if(l.keyframes!==void 0)i.push(`${u}.keyframes`)}),i}function $ne(o,i){return`The connected ${i==="ios"?"iOS prototype agent":"CtrlProxy"} does not advertise prototype_keyframes_v1, so it cannot play ${o[0]}. Nothing was shown. Update the agent or remove keyframes.`}var OA=V.motionTokens,Gh="tempo cannot be combined with durationMs or easing";function Jo(o,i){return Object.hasOwn(o,"tempo")&&["durationMs","easing"].some((l)=>Object.hasOwn(o,l))?{path:`${i}.tempo`,message:Gh}:void 0}function Sd(o,i,l){if(o===V.definitions.animate)return Jo(i,l);return o===V.definitions.keyframes?Ho(i.tracks,`${l}.tracks`):void 0}function Une(o){let i=[];return X(o,(l,u)=>{if(c(l.animate)?.tempo!==void 0)i.push(`${u}.animate.tempo`)}),i}function Hne(o,i){return`The connected ${i} renderer does not advertise prototype_motion_tokens_v1 required by ${o[0]}. Nothing was shown. Update the renderer or remove animate.tempo.`}var Er=(o)=>pt(o,{alias:"route",index:!1}),Qo=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`,je=(o,i)=>({path:o,message:i});function Hh(o,i,l){let u=Object.keys(c(o.params)??{}).sort();for(let d of u)if(!ae.pathKey.test(d))return je(Qo(`${i}.params`,d),"Invalid route param name");if(l&&u.length)return je(`${i}.params`,"Start screen cannot declare route params");return}function Jh(o,i,l){if(o.path.startsWith(`${i}.onBack[`)&&o.value.type==="pop"&&o.value.stack===l&&o.value.force!==!0)return je(o.path,"Direct onBack pop requires force: true");return}function Qh(o,i,l,u){if(o.path.startsWith(`${i}.onEnter[`)&&["push","replace"].includes(String(o.value.type))&&o.value.stack===l&&o.value.screen===u)return je(o.path,"onEnter cannot navigate to its own screen");return}function ek({value:o,path:i},l){let u=c(o.screens)??{};for(let[d,m]of Object.entries(c(o.routes)??{}).sort()){let k=Qo(`${i}.routes`,d);if(!Object.hasOwn(u,d))return je(k,"Unknown route screen");let _=Hh(c(m)??{},k,d===o.start);if(_)return _;for(let x of l){let v=Jh(x,k,o.id)??Qh(x,k,o.id,d);if(v)return v}}return}function tk(o,i,l){for(let u of Object.keys(o).sort()){if(!ae.pathKey.test(u))return je(l,"Invalid route param name");if(!Object.hasOwn(i,u))return je(l,`Undeclared route param ${JSON.stringify(u)}`);if(!c(o[u])&&typeof o[u]!==i[u])return je(l,`Wrong type for route param ${JSON.stringify(u)}`)}for(let u of Object.keys(i).sort())if(!Object.hasOwn(o,u))return je(l,`Missing route param ${JSON.stringify(u)}`);return}function nk(o,i,l){let u=c(o)??{};if(!Object.hasOwn(c(i.screens)??{},String(u.screen)))return l.value.type==="setStack"?je(l.path,"Unknown stack screen"):void 0;let d=c(c(c(i.routes)?.[String(u.screen)])?.params)??{};return tk(c(u.params)??{},d,l.path)}function rk(o,i){let{value:l}=o;if(!["push","replace","setStack"].includes(String(l.type)))return;let u=i.find((m)=>m.value.id===l.stack)?.value;if(!u)return;let d=l.type==="setStack"&&Array.isArray(l.path)?l.path:[l];for(let m of d){let k=nk(m,u,o);if(k)return k}return}function ok(o,i){let l=o,u;while(!u&&l.includes("."))l=l.slice(0,l.lastIndexOf(".")),u=i.get(l);return u}function ik(o,i,l){for(let u of Er(o)){if(!l)return je(i,"Route placeholder outside a screen");if(!Object.hasOwn(l.params,u))return je(i,`Undeclared route param ${JSON.stringify(u)}`)}return}function ak(o,i,l){if(["dataPath","requestInto","routePointer"].includes(l)&&o.split("/").some((u)=>{let d=Er(u);return d.length>0&&(d.length!==1||u!==`{route.${d[0]}}`)}))return je(i,"Route placeholder must occupy a whole data pointer segment");return}function wd(o,i,l){let u=i.filter(({value:d})=>d.type==="stack");for(let d of u){let m=ek(d,l);if(m)return m}for(let d of l){let m=rk(d,u);if(m)return m}return sk(o,i,u)}function sk(o,i,l){let u=l.flatMap((v)=>Object.keys(c(v.value.screens)??{}).map((T)=>({prefix:`${v.path}.screens[${JSON.stringify(T)}]`,lifecycle:Qo(`${v.path}.routes`,T),params:c(c(c(v.value.routes)?.[T])?.params)??{}}))),d=new Map(u.flatMap((v)=>[[v.prefix,v],[v.lifecycle,v]])),m=wY(o).length>0,k=i.filter(({value:v})=>c(v.repeat)?.as==="route").map(({path:v})=>`${v}.children[`),_,x=(v,T,R)=>{if(typeof v!=="string"||!m&&k.some((L)=>T.startsWith(L)))return v;let O=ok(T,d);return _??=ik(v,T,O),_??=ak(v,T,R),v};return X(o,(v,T)=>{if(m&&c(v.repeat)?.as==="route")_??=je(`${T}.repeat.as`,"route is reserved for route params");cr(v,T,x,!0)}),Ke(o,x),_}function wY(o){let i=[],l=[];X(o,(d,m)=>{if(c(d.repeat)?.as==="route")l.push(`${m}.children[`)});let u=(d,m,k)=>{if(k==="routeFeature"||typeof d==="string"&&Er(d).length&&!l.some((_)=>m.startsWith(_)))i.push(m);return d};return X(o,(d,m)=>{if(d.type==="stack"&&d.routes!==void 0)i.push(`${m}.routes`);cr(d,m,u,!0)}),Ke(o,u),lk(o,i),i}function lk(o,i){let l=c(c(o)?.storage)?.keys;if(Array.isArray(l))l.forEach((u,d)=>{if(typeof u==="string"&&u.startsWith("stack:"))i.push(`storage.keys[${d}]`)})}function ei(o){let i=["key","stateKey","statusKey","activeKey","hourKey","minuteKey","atEndKey"].map((l)=>o[l]);return i.push(c(o.trailing)?.stateKey,c(o.openWhen)?.key,c(o.refresh)?.stateKey),i.some((l)=>typeof l==="string"&&Er(l).length>0)}function qne(o){let i=[];return X(o,(l,u)=>{let d=[{value:l.style,path:`${u}.style`},...(Array.isArray(l.styleWhen)?l.styleWhen:[]).map((m,k)=>({value:c(m)?.style,path:`${u}.styleWhen[${k}].style`}))];for(let{value:m,path:k}of d)i.push(...uk(m,k));if(l.type==="scroll"&&l.fadeEdges!==void 0)i.push(`${u}.fadeEdges`);if(l.type==="image"&&l.filter!==void 0)i.push(`${u}.filter`)}),i}function uk(o,i){let l=c(o),u=["shadows","cornerStyle"].filter((d)=>l?.[d]!==void 0).map((d)=>`${i}.${d}`);if(c(l?.border)?.gradient!==void 0)u.push(`${i}.border.gradient`);return u}function Vne(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy";return`The ${l} does not advertise ${Nj}, so it cannot draw ${o.join(", ")}. Nothing was shown. ${u}, or remove layered shadows, cornerStyle, gradient borders, scroll fades and image filters.`}function Ad(o,i,l){return Pr(o,i,l)??dk(o,i,l)}function dk(o,i,l){if(i==="style"&&o.shadows!==void 0&&(o.elevation!==void 0||o.shadowColor!==void 0))return{path:`${l}.shadows`,message:"shadows cannot be combined with elevation or shadowColor"};if((i==="fadeEdges"||i==="imageFilter")&&Object.keys(o).length===0)return{path:l,message:i==="fadeEdges"?"At least one fade edge is required":"At least one image filter field is required"};return}function Rd(o,i){for(let[l,u]of Object.entries(Re(o)??{})){let d=Re(Re(u)?.format);for(let m of["number","percent"]){let k=Re(d?.[m]);if(typeof k?.minFraction==="number"&&typeof k.maxFraction==="number"&&k.minFraction>k.maxFraction)return w(`${i}.${l}.format.${m}.minFraction`,"minFraction cannot exceed maxFraction")}}return}function ck(o,i,l){let u=Re(o.repeat),d=Re(u?.derive),m=Rd(d,`${i}.repeat.derive`);if(m)return m;let k=Re(u?.items),_=k&&typeof k.path==="string"?Pt(l.data,k.path):u?.items;for(let x of Object.keys(d??{}))if(Array.isArray(_)&&_.some((v)=>Object.hasOwn(Re(v)??{},x)))return w(`${i}.repeat.derive.${x}`,"Derived name collides with an item field");return}function pk(o,i,l){let u;return cr(o,i,(d,m,k)=>{if(k==="text"&&typeof d==="string"){for(let{pointer:_}of Xm(d,"derived:",(x)=>ao.test(x)))if(!Object.hasOwn(l,_))u??=w(m,`Unknown derived value ${JSON.stringify(_)}`)}return d}),u}function Od(o,i){let l=Re(o)??{},u=Re(l.derive)??{},d=Rd(u,"derive");if(d)return d;for(let{value:m,path:k}of i){let _=pk(m,k,u)??ck(m,k,l);if(_)return _}return}var mk=V.limits.MAX_PROTOTYPE_SCROLL_BINDINGS,fk=["alpha","scale","offsetY","offsetX","blur"];function Wne(o){let i=[];return X(o,(l,u)=>{for(let d of["scrollTransition","scrollLinked"])if(Object.hasOwn(l,d))i.push(`${u}.${d}`)}),i}function Sr(o,i){return i.filter((l)=>o===l||o.startsWith(`${l}.`)).sort((l,u)=>u.length-l.length)[0]??"root"}function yk(o,i,l){let u=1;for(let d of i){if(!o.path.startsWith(`${d.path}.children[`))continue;let m=c(d.value.repeat)?.items;if(Array.isArray(m))u*=m.length;else if(typeof c(m)?.path==="string")u*=l.items(c(m).path).length}return u}function gk(o,i,l,{nodes:u,scopes:d}){let m=o.range;if(m[0]>=m[1])return{path:`${i}.range`,message:"Expected two increasing numbers"};if(!fk.some((_)=>o[_]!==void 0))return{path:i,message:"Expected at least one scroll output"};return u.find((_)=>_.value.id===o.source&&_.value.type==="scroll"&&Sr(_.path,d)===Sr(l.path,d))?void 0:{path:`${i}.source`,message:"Expected a scroll id in the same screen"}}function $d(o,i){let l=0,u=i.flatMap((m)=>or(m.value).filter((k)=>k.suffix.startsWith(".screens[")).map((k)=>`${m.path}${k.suffix}`)),d=new ht(c(o)?.data);for(let m of i){let k=c(m.value.scrollLinked),_=c(m.value.scrollTransition);if(!k&&!_)continue;if(l+=(Number(Boolean(k))+Number(Boolean(_)))*yk(m,i,d),l>mk)return{path:m.path,message:"Scroll binding limit exceeded"};if(k){let x=gk(k,`${m.path}.scrollLinked`,m,{nodes:i,scopes:u});if(x)return x}if(_&&!i.some((x)=>m.path.startsWith(`${x.path}.`)&&Sr(x.path,u)===Sr(m.path,u)&&(["scroll","pager","carousel"].includes(String(x.value.type))||x.value.repeat!==void 0)))return{path:`${m.path}.scrollTransition`,message:"Expected a scroll, pager, carousel or repeat ancestor"}}return}var Id=new Set(["topAppBar","bottomNav","tabBar"]);function Cd(o){let i=["root"];for(let{value:u,path:d}of o)for(let m of Object.keys(c(u.screens)??{}))i.push(`${d}.screens[${JSON.stringify(m)}]`);let l=(u)=>i.filter((d)=>u===d||u.startsWith(`${d}.`)).sort((d,m)=>m.length-d.length)[0]??"root";for(let{value:u,path:d}of o){if(!Id.has(String(u.type)))continue;let m=u.onScroll!==void 0&&!["pinned","none"].includes(String(u.onScroll));if(u.scroll===void 0&&!m)continue;let k=o.filter((_)=>_.value.type==="scroll"&&_.value.id===u.scroll&&l(_.path)===l(d));if(typeof u.scroll!=="string"||k.length!==1)return{path:`${d}.scroll`,message:"Expected one scroll id in the same screen"}}return}function zne(o){let i=[];return X(o,(l,u)=>{if(Id.has(String(l.type))){for(let d of["onScroll","scroll"])if(l[d]!==void 0)i.push(`${u}.${d}`)}}),i}function jne(o,i){return`The connected ${i} renderer does not advertise ${Mj} required by ${o[0]}. Nothing was shown. Update the renderer or remove the bar scroll fields.`}var ti=kt(y().regex(ae.pathKey),Ne([y(),A().finite(),Z(),...Fe.options.slice(0,4)])).and(hr()).refine((o)=>Object.keys(o).length<=16),Md=f({type:P(["setStack"]),stack:y().min(1),path:z(f({screen:y().min(1),params:ti.optional()}).strict()).min(1).max(V.limits.MAX_PROTOTYPE_STACK_DEPTH)}).strict();function jd(o){let i=_r(o);return f({params:kt(y().regex(ae.pathKey),P(["string","number","boolean"])).and(hr()).refine((l)=>Object.keys(l).length<=16).optional(),onEnter:i.optional(),onBack:i.optional()}).strict()}var hk=["platform","slide","fade","none","sharedAxisX","sharedAxisY","fadeThrough","zoom"],ni=P(hk).optional(),ri=(o)=>f({type:P([o]),stack:y().min(1),screen:y().min(1),params:ti.optional(),transition:ni,source:y().min(1).optional()}).strict();function Kne(o){let i=[];return X(o,(l,u)=>{if(l.type==="stack"&&l.transition!==void 0)i.push(`${u}.transition`);cr(l,u,(d,m,k)=>{if(k==="stackTransition")i.push(m);return d})}),i}function RY(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${Ij}, so it cannot run the stack transition at ${o[0]}${d}. Nothing was shown. ${u}, or omit transition on stacks and push/replace actions.`}function Gne(o){let i=[];return X(o,(l,u)=>{if(l.type==="stack"&&Nd(l.transition))i.push(`${u}.transition`);cr(l,u,(d,m,k)=>{if(k==="stackSource"||k==="stackTransition"&&Nd(d))i.push(m);return d})}),i}function Nd(o){return["sharedAxisX","sharedAxisY","fadeThrough","zoom"].includes(String(o))}function Yne(o,i){return RY(o,i).replaceAll("prototype_stack_transitions_v1","prototype_stack_patterns_v1").replace("stack transition at","stack pattern or source at").replace("omit transition on stacks and push/replace actions.","omit source on push/replace actions and use platform, slide, fade or none for transitions.")}function Ld(o,i){let l=new Map(o.filter(({value:u})=>u.type==="stack").map(({value:u})=>[u.id,u.transition]));return new Set(i.filter(({value:u})=>["push","replace"].includes(String(u.type))&&(u.transition??l.get(u.stack))==="zoom").map(({value:u})=>u.source).filter((u)=>typeof u==="string"))}function qd(o,i){let l=new Map(o.filter(({value:u})=>u.type==="stack").map((u)=>[u.value.id,u]));for(let{value:u,path:d}of i){let m=l.get(u.stack);if(!["push","replace"].includes(String(u.type))||(u.transition??m?.value.transition)!=="zoom")continue;let k=o.filter(({value:_})=>(c(_.shared)?.key??_.sharedKey)===u.source);if(typeof u.source!=="string"||u.source.includes("{")||k.length!==1)return w(`${d}.source`,"zoom requires source to resolve to exactly one sharedKey node");if(!k[0]?.path.startsWith(`${m?.path}.screens[`))return w(`${d}.source`,"zoom source must be inside the target stack's screens")}return}function Jne(o){return c(o)?.motion==="reduced"?["motion"]:[]}function Xne(o){let i=[];return X(o,(l,u)=>{if(l.sharedKey!==void 0)i.push(`${u}.sharedKey`)}),i}function kk(o,i,l,u){let d=c(o.value.shared),m=d?.key??o.value.sharedKey;if(typeof m!=="string")return[];let k=`${o.path}.${d?"shared.key":"sharedKey"}`,_=Dd(i,o.path);if(!d&&_)return w(k,"sharedKey is not allowed inside repeat templates");if(!m.includes("{"))return vk(m,d!==void 0,_!==void 0&&(u||o.path!==_.path),k);return bk(m,_,l,{path:o.path,at:k,glass:u})}function bk(o,i,l,{path:u,at:d,glass:m}){let k=c(i?.value.repeat);if(!k||!m&&i?.path===u||typeof k.key!=="string")return w(d,"shared key template requires repeat.key");return Pk(o,k,d,l)}function vk(o,i,l,u){if(i&&!/^[A-Za-z_][A-Za-z0-9_-]{0,63}$(?![\s\S])/.test(o))return w(u,"Invalid shared key value");return l?w(u,"shared key inside repeat requires a key template"):[o]}function Pk(o,i,l,u){let d={alias:String(i.as),index:!0},m=Ce(o,d);if(!m.filter((T)=>T.kind==="field").length||m.some((T)=>T.kind==="index"||T.kind==="field"&&T.name!==i.key||T.kind==="literal"&&/[{}]/.test(T.text)))return w(l,"shared key template must reference only repeat.key");let _=c(i.items),v=(_&&typeof _.path==="string"?u.items(_.path):(Array.isArray(i.items)?i.items:[]).map((T)=>c(T)??{})).map((T,R)=>ld(o,{binding:d,values:T,index:R}));if(v.some((T)=>!/^[A-Za-z_][A-Za-z0-9_-]{0,63}$(?![\s\S])/.test(T)))return w(l,"Invalid resolved shared key value");if(new Set(v).size!==v.length)return w(l,"shared key resolves to multiple nodes on the same side");return v}function zd(o,i,l=[]){let u=qd(o,l);if(u)return u;let d=Ld(o,l),m=new Map,k=new Map;for(let _ of o){let x=Tk(_,o,i,{pairs:m,sources:d,glassKeys:k});if(x)return x}for(let[_,x]of m)if(x.length!==2&&!x[0].templated)return w(x[0].at,`sharedKey "${_}" must be used by exactly two nodes`);return}function Tk(o,i,l,{pairs:u,sources:d,glassKeys:m}){let{value:k,path:_}=o,x=c(k.shared);if(x===void 0&&k.sharedKey===void 0)return;let v=`${_}.${x?"shared.key":"sharedKey"}`,T=od(k,_,i),R=Ek(k,T,d),O=wk(k,_,v,R);if(O)return O;let L=kk(o,i,l,T!==void 0);if(!Array.isArray(L))return L;let Q=Sk(L,T,v,{pairs:u,glassKeys:m});if(Q)return Q;if(R)return;let Pe=Ak(o,i,x,v);for(let Ue of L){let Xe=u.get(Ue)??[];u.set(Ue,Xe);let ue=Ik(Ue,Pe,Xe,u.size);if(ue)return ue;Xe.push(Pe)}return}function Ek(o,i,l){return i!==void 0||l.has(String(c(o.shared)?.key??o.sharedKey))}function Sk(o,i,l,{pairs:u,glassKeys:d}){for(let m of o){let k=d.get(m);if(i!==void 0&&u.has(m)||i===void 0&&k)return w(l,`glass shared key "${m}" cannot also be used by a visibility pair`);if(i!==void 0){if(k?.has(i))return w(l,`shared key "${m}" must be unique within its glassGroup`);let _=k??new Set;_.add(i),d.set(m,_)}}return}function wk(o,i,l,u){if(c(o.shared)&&o.sharedKey!==void 0)return w(`${i}.shared`,"shared and sharedKey cannot both be set");if(o.visibleWhen===void 0&&!u)return w(l,"sharedKey requires visibleWhen on the same node");return}function Dd(o,i){return o.findLast(({value:l,path:u})=>l.repeat!==void 0&&(i===u||i.startsWith(`${u}.`)))}function Ak(o,i,l,u){let{path:d}=o,m=Dd(i,d);return{path:d,at:u,boundary:Rk(i,d),kind:l?.as??"bounds",templated:String(l?.key).includes("{"),repeatPath:m?.path===d?void 0:m?.path}}function Rk(o,i){return o.filter(({value:l,path:u})=>(l.type==="dialog"||l.type==="bottomSheet")&&(i===u||i.startsWith(`${u}.`))).map(({path:l})=>l).join("/")}function Ik(o,i,l,u){if(u>16)return w(i.at,"a spec allows at most 16 sharedKey values");if(i.repeatPath&&l.some((d)=>d.repeatPath===i.repeatPath))return w(i.at,"shared key resolves to multiple nodes on the same side");if(l.length===2)return w(i.at,`sharedKey "${o}" must be used by exactly two nodes`);if(l.some((d)=>i.path.startsWith(`${d.path}.`)))return w(i.at,"sharedKey nodes cannot be nested in each other");if(l.some((d)=>d.boundary!==i.boundary))return w(i.at,"shared pair cannot cross a dialog or bottomSheet boundary");if(l.some((d)=>d.kind!==i.kind))return w(i.at,"shared pair must use the same as value");return}function Zne(o){let i=[];return X(o,(l,u)=>{if(l.shared!==void 0)i.push(`${u}.shared`)}),i}function Qne(o,i){return oi(Ej,"shared element v2","omit shared",{fields:o,platform:i})}function oi(o,i,l,{fields:u,platform:d}){let m=d==="ios"?"connected iOS prototype agent":"connected CtrlProxy",k=d==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",_=u.length>1?` (and ${u.length-1} more)`:"";return`The ${m} does not advertise ${o}, so it cannot run ${i} at ${u[0]}${_}. Nothing was shown. ${k}, or ${l}.`}function eie(o,i){return oi(Tj,"reduced motion",'use motion: "none" or "standard"',{fields:o,platform:i})}function tie(o,i){return oi(kj,"the shared element","omit sharedKey",{fields:o,platform:i})}var{MAX_PROTOTYPE_SHARE_TEXT_BYTES:Bd,MAX_PROTOTYPE_SHARE_IMAGES:Yd,MAX_PROTOTYPE_SHARE_FILES:Kd}=V.limits;var jk=["contact","files","images","subject","text","url"],qk=["email","name","note","org","phone","url"],_e=(o,i)=>({path:o,message:i}),ii=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`,Fd=(o)=>Buffer.byteLength(o,"utf8"),zk=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$(?![\s\S])/;function Vd(o,i=!1){let l=o.match(/^https?:\/\//i)?.[0].length;if(!l||/[\u0000-\u0020\u007f-\u00a0\u2028-\u202e\u2066-\u2069\\]/.test(o))return!1;let d=(i?ai(o,"1"):o).slice(l).split(/[/?#]/,1)[0];if(!d||/[{}<>^|%@]/.test(d))return!1;let m=d.startsWith("[")?Vk(d):Kk(d);return m.valid&&Yk(m.port)}function Yk(o){return o===void 0||o===""||/^[0-9]{1,5}$(?![\s\S])/.test(o)&&Number(o)<=65535}function Kk(o){let i=o.split(":");return{valid:i.length<=2&&!!i[0]&&!/[\[\]]/.test(i[0]),port:i[1]}}function Vk(o){let i=o.indexOf("]");if(i<0)return{valid:!1};let l=o.slice(1,i).split("::"),u=l.flatMap((k)=>k?k.split(":"):[]),d=l.length<=2&&u.every((k)=>/^[0-9A-Fa-f]{1,4}$(?![\s\S])/.test(k))&&(l.length===1?u.length===8:u.length<8),m=o.slice(i+1);return{valid:d&&(!m||m.startsWith(":")),port:m?m.slice(1):void 0}}function Wd(o,i){if(typeof o!=="string")return _e(i,"Expected share string");if(Fd(o)>Bd)return _e(i,"Share string exceeds 65536 UTF-8 bytes");return}function Zd(o,i,l,u){let d=c(o);if(l&&d&&Object.keys(d).length===1&&he(d.data))return;let m=Wk(o);if(typeof m!=="string"||!m.length||/[{}]/.test(m))return _e(i,"Expected uploaded asset id or data binding");return u&&!u.has(m)?_e(i,"Unknown share asset"):void 0}function Wk(o){if(typeof o==="string")return o;let i=c(o);return i&&Object.keys(i).length===1?i.asset:void 0}function ai(o,i="x"){return o.replace(/\{([^{}]*)\}/g,(l,u)=>ae.stateKey.test(u)||u.split(".").length===2&&u.split(".").every((d)=>ae.stateKey.test(d))||u.startsWith("data:")&&he(u.slice(5))?i:l)}function Zk(o,i,l,u){return Wd(i,l)??(o==="url"&&i!==""&&!Vd(String(i),u)?_e(l,"Share URL must be absolute http(s) with a literal scheme"):void 0)}function Uk(o,i,l){let u=c(o);if(!u)return _e(i,"Expected share contact object");for(let d of[...new Set([...Object.keys(u),"name"])].sort()){let m=ii(i,d);if(!qk.includes(d))return _e(m,"Unknown contact field");if(!Object.hasOwn(u,d))return _e(m,"Required contact name");let k=Wd(u[d],m);if(k)return k;if(d==="name"&&ae.blankText.test(String(u[d])))return _e(m,"Required contact name");if(d==="url"&&!Vd(String(u[d]),l))return _e(m,"Share URL must be absolute http(s) with a literal scheme")}return}function Xk(o,i,l){let u=typeof o==="string"&&l?ai(o):o;return typeof u!=="string"||!u.length||u.startsWith(".")||/[/\\\u0000-\u001f\u007f-\u00a0\u2028-\u202e\u2066-\u2069]/.test(u)||Fd(u)>128?_e(i,"Share file name must be 1 to 128 UTF-8 bytes, with no leading dot, separators or controls"):void 0}function Gk(o,i,l){if(l&&typeof o==="string"&&ai(o)!==o)return;return typeof o!=="string"||!zk.test(o)?_e(i,"Share mimeType must be a type/subtype token"):void 0}function Hk(o,i,l,u){let d=c(o);if(!d)return _e(i,"Expected share file object");for(let m of[...new Set([...Object.keys(d),"asset","mimeType","name"])].sort()){let k=ii(i,m);if(!["asset","mimeType","name"].includes(m))return _e(k,"Unknown file field");let _=m==="asset"?Zd(d[m],k,!1,u):m==="mimeType"?Gk(d[m],k,l):Xk(d[m],k,l);if(_)return _}return}function Jk(o,i,l,{dynamic:u,assets:d}){if(!Array.isArray(i))return _e(l,"Expected share array");let m=o==="images"?Yd:Kd;if(i.length<1||i.length>m)return _e(l,`Share ${o} must contain 1 to ${m} items`);for(let[k,_]of i.entries()){let x=`${l}[${k}]`,v=o==="images"?Zd(_,x,u,d):Hk(_,x,u,d);if(v)return v}return}function Qk(o,i,l,{dynamic:u,assets:d}){if(["text","subject","url"].includes(o))return Zk(o,i,l,u);return o==="contact"?Uk(i,l,u):Jk(o,i,l,{dynamic:u,assets:d})}function Jt(o,i,l,u=!1){for(let d of Object.keys(o).sort()){let m=ii(i,d);if(!jk.includes(d))return _e(m,d==="title"?"Unknown argument: use subject":"Unknown argument");let k=c(o[d]);if(!u&&(!k||!Object.hasOwn(k,"value")))continue;let _=Qk(d,u?o[d]:k.value,u?m:`${m}.value`,{dynamic:!u,assets:l});if(_)return _}if(!["text","url","images","files","contact"].some((d)=>{if(!Object.hasOwn(o,d))return!1;let m=c(o[d]);if(!u&&(!m||!Object.hasOwn(m,"value")))return!0;let k=u?o[d]:m.value;return typeof k!=="string"||!ae.blankText.test(k)}))return _e(i,"Share requires text, url, images, files or contact");return}var{MAX_PROTOTYPE_CHANNELS:ZR,MAX_PROTOTYPE_CHANNEL_FRAME_BYTES:bl,MAX_PROTOTYPE_CHANNEL_SEND_BYTES:qD,MAX_PROTOTYPE_CHANNELS_OPEN:rie,PROTOTYPE_CHANNEL_FLUSH_MS:XR}=V.limits;var si=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function Vj(o,i=!1){let l=c(o)??{},u=[];if(u.push(...rb(l,i)),i)return u;let d=(m,k)=>li(m,k,u);for(let{node:m,path:k}of Mr(l))d(m,k);for(let m of["platform","channels"])d(l[m],m);return u}function li(o,i,l){let u=(m,k)=>li(m,k,l);if(Array.isArray(o)){o.forEach((m,k)=>u(m,`${i}[${k}]`));return}let d=c(o);if(!d||Object.keys(d).length===1&&Object.hasOwn(d,"value"))return;eb(d,i,l),nb(d,i,l)}function eb(o,i,l){if(o.type==="upsertData"||o.type==="appendData"&&o.maxItems!==void 0)l.push(i);let u=c(o.value);if(["setState","setData","appendData","prependData","upsertData"].includes(String(o.type))&&u&&(Object.hasOwn(u,"event")||Object.hasOwn(u,"platform")))l.push(`${i}.value`);tb(o,i,l)}function tb(o,i,l){if(o.type==="platform"){for(let[u,d]of Object.entries(c(o.args)??{}))if(c(d)?.event==="")l.push(`${si(`${i}.args`,u)}.event`)}}function nb(o,i,l){let u=(d,m)=>li(d,m,l);for(let d of Object.keys(o).sort()){if(["data","state","payload","repeat","value"].includes(d))continue;if(d==="screens"&&c(o[d]))for(let[m,k]of Object.entries(c(o[d])))u(k,`${i}.screens[${JSON.stringify(m)}]`);else u(o[d],si(i,d))}}function rb(o,i){let l=c(o.channels);if(!l)return[];if(!i)return["channels"];return Object.keys(l).sort().filter((u)=>c(l[u])?.via==="device").map((u)=>`${si("channels",u)}.via`)}var Ud=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function lb(o){let i=String(o.url),l=o.kind==="websocket"?i.replace(/^ws(s?):/i,"http$1:"):i;if(o.kind==="websocket"&&!/^wss?:/i.test(i))return"A websocket channel url must use ws or wss";let u=o.kind==="websocket"?"ws or wss":"http or https";if(!/^(?:wss?|https?):\/\//i.test(i))return i.includes("{")?`A templated ${o.kind==="websocket"?"websocket channel":"request"} url must start with a literal ${o.kind==="websocket"?"ws:// or wss://":"http:// or https://"}`:`A ${o.kind==="websocket"?"websocket channel":"request"} url must be an absolute ${u} URL`;let d=ui(l);return o.kind==="websocket"?d?.replace("request","websocket channel").replace("http or https","ws or wss").replace("http:// or https://","ws:// or wss://"):d}function Xd(o){let i=c(o)??{},l=c(i.channels);if(!l)return;let u=c(i.requires);if(!Array.isArray(u?.platform)||!u.platform.includes("realtime"))return{path:"channels",message:"Channels require realtime in requires.platform"};for(let d of Object.keys(l).sort()){let m=c(l[d]),k=Ud("channels",d),_=ub(m,k,i);if(_)return _}return}function Gd(o,i){if(!Array.isArray(o))return;for(let[l,u]of o.entries()){let d=c(u),m=`${i}[${l}]`;if(["request","push","replace","pop","popToRoot","dismiss","setPage"].includes(String(d.type))||d.type==="platform"&&d.call==="realtime.connect")return{path:`${m}.${d.type==="platform"?"call":"type"}`,message:"Channel callbacks cannot request, navigate or connect"};for(let k of["actions","onSuccess","onError"]){let _=Gd(d[k],`${m}.${k}`);if(_)return _}}return}function Hd(o,i,l){if(typeof o.call!=="string"||!o.call.startsWith("realtime."))return;let u=kb(o,l);if(!u)return{path:`${i}.args.channel`,message:"channel must name a declared channel"};let d=hb(o,i);if(d)return d;return o.call==="realtime.send"&&u.kind!=="websocket"?{path:`${i}.call`,message:"realtime.send requires a websocket channel"}:void 0}function ub(o,i,l){let u=lb(o);if(u)return{path:`${i}.url`,message:u};let d=pb(o,i);if(d)return d;let m=mb(o,i);if(m)return m;for(let v of["onOpen","onClose","onError"]){let T=Gd(o[v],`${i}.${v}`);if(T)return T}let k=Ar({...o,type:"request"},i,c(l.state)??{});if(k)return k;let _=fb(o,i);if(_)return _;let x=yb(o,i);if(x)return x;return}function pb(o,i){let l=c(o.headers)??{};for(let u of Object.keys(l).sort())if(u.toLowerCase().startsWith("sec-websocket-")||u.toLowerCase()==="last-event-id")return{path:Ud(`${i}.headers`,u),message:"Forbidden channel header"};return wr(Object.fromEntries(Object.keys(l).sort().map((u)=>[u,l[u]])),i,"headers")}function mb(o,i){if(o.kind!=="websocket"&&o.protocols!==void 0)return{path:`${i}.protocols`,message:"protocols are only available for websocket channels"};let l=o.protocols;if(l&&(new Set(l).size!==l.length||l.some((u)=>u.length<1||u.length>64||/[^!#$%&'*+\-.^_`|~0-9A-Za-z]/.test(u))))return{path:`${i}.protocols`,message:"protocols must be unique RFC 7230 tokens of 1 to 64 characters"};return}function fb(o,i){let l=c(o.reconnect);if(l&&Number(l.initialDelayMs)>Number(l.maxDelayMs))return{path:`${i}.reconnect.initialDelayMs`,message:"initialDelayMs must not exceed maxDelayMs"};return}function yb(o,i){for(let[l,u]of(Array.isArray(o.routes)?o.routes:[]).entries()){if(o.kind!=="sse"&&c(c(u)?.when)?.event!==void 0)return{path:`${i}.routes[${l}].when.event`,message:"Event name matchers are only available for sse channels"};let d=gb(c(u)?.actions,`${i}.routes[${l}]`);if(d)return d}return}function gb(o,i){for(let[l,u]of o.entries())if(!["setState","toggle","increment","decrement","setData","appendData","prependData","upsertData","removeData"].includes(String(u.type)))return{path:`${i}.actions[${l}].type`,message:"Channel routes only allow state and data actions"};return}function hb(o,i){let l=c(c(o.args)?.body);if(o.call==="realtime.send"&&l&&Object.hasOwn(l,"value")&&Buffer.byteLength(typeof l.value==="string"?l.value:JSON.stringify(l.value),"utf8")>qD)return{path:`${i}.args.body.value`,message:"realtime.send body exceeds the byte limit"};return}function kb(o,i){let l=c(o.args)?.channel,u=typeof l==="string"?l:c(l)?.value,d=c(i.channels)??{};return typeof u==="string"&&Object.hasOwn(d,u)?c(d[u]):void 0}var bb=new Set(["camera.takePhoto","camera.startRecording","camera.stopRecording"]);function Jd(o){let i=new Set;return X(o,(l)=>{if(l.type==="cameraPreview"&&typeof l.id==="string")i.add(l.id)}),i}function Qd(o){let i=[];X(o,(k,_)=>{if(k.type==="cameraPreview")i.push({node:k,path:_})});let l=c(o.requires),u=Array.isArray(l?.platform)?l.platform:[],d=(Array.isArray(l?.permissions)?l.permissions:[]).map((k)=>c(k)?.name),m=c(o.state)??{};for(let[k,{node:_,path:x}]of i.entries()){let v=k>0?{path:x,message:"At most one cameraPreview per prototype"}:xb(_,x,{camera:u.includes("camera"),permission:d.includes("camera"),state:m});if(v)return v}return}var _b=[["lensKey","string"],["flashKey","string"],["zoomKey","number"]];function xb(o,i,l){if(!l.camera)return{path:i,message:"cameraPreview requires camera in requires.platform"};if(!l.permission)return{path:i,message:"cameraPreview requires permission camera in requires.permissions"};if(typeof o.id!=="string"||!ae.stateKey.test(o.id))return{path:i,message:"A cameraPreview needs an id that is a state key"};for(let[u,d]of _b){let m=o[u];if(typeof m==="string"&&typeof l.state[m]!==d)return{path:`${i}.${u}`,message:`${u} must name a declared ${d} state key`}}return}function ec(o,i,l){if(typeof o.call!=="string"||!bb.has(o.call))return;let u=c(c(o.args)?.preview);return u&&typeof u.value==="string"&&!l.has(u.value)?{path:`${i}.args.preview.value`,message:"Unknown camera preview"}:void 0}var vb=/^https?:/;function tc(o,i){let l=c(o.url)?.value;if(c(o.mode)?.value!=="inApp"||typeof l!=="string"||vb.test(l))return;return{path:`${i}.mode.value`,message:"links.open mode inApp requires an http or https url"}}var Pb={kind:"ref",name:"mediaCaptionCue"};function Tb(o,i){return ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`}function nc(o,i){let l;return X(o,(u,d)=>{if(!l&&u.type==="videoPlayer"&&Array.isArray(u.captions))l=Eb(o,u.captions,`${d}.captions`,i)}),l}function Eb(o,i,l,u){let d=new Set;for(let[m,k]of i.entries()){let _=c(k)??{},x=`${l}[${m}]`;if(typeof _.id==="string"&&_.id.startsWith("hls:"))return{path:`${x}.id`,message:"Caption ids starting with hls: are reserved"};if(d.has(_.id))return{path:`${x}.id`,message:"Duplicate caption id"};d.add(_.id);let v=c(_.source)?.data,T=v===void 0?void 0:Sb(o,v,`${x}.source.data`,u);if(T)return T}return}function Sb(o,i,l,u){let d=Us(i),m=d===void 0?void 0:Pt(o.data,d);if(d===void 0||!Array.isArray(m))return{path:l,message:"Caption data must point to a /data array"};let k=_g(d).reduce(Tb,"data");for(let[_,x]of m.entries()){let v=`${k}[${_}]`,T=u(x,Pb,v);if(T)return T;let{startMs:R,endMs:O}=c(x)??{};if(typeof R==="number"&&typeof O==="number"&&O<=R)return{path:`${v}.endMs`,message:"A caption cue must end after it starts"}}return}var wb={kind:"ref",name:"mediaQueueItem"};function di(o,i){return ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`}function nie(o){let i=c(c(c(o)?.media)?.players)??{};return Object.entries(i).filter(([,l])=>c(l)?.queue!==void 0).map(([l])=>`${di("media.players",l)}.queue`)}function rc(o,i){let l=c(c(o.media)?.players)??{};for(let[u,d]of Object.entries(l)){let m=c(d)??{},k=di("media.players",u),_=m.source===void 0===(m.queue===void 0)?{path:k,message:"A media player needs exactly one of source or queue"}:m.queue===void 0?void 0:Ab(o,m.queue,`${k}.queue`,i);if(_)return _}return}function Ab(o,i,l,u){let d=Us(i),m=d===void 0?void 0:Pt(o.data,d);if(d===void 0||!Array.isArray(m))return{path:l,message:"queue must point to a /data array"};let k=_g(d).reduce(di,"data"),_=new Set;for(let[x,v]of m.entries()){let T=`${k}[${x}]`,R=u(v,wb,T);if(R)return R;let O=c(v)?.id;if(_.has(O))return{path:`${T}.id`,message:"Duplicate queue item id"};_.add(O)}return}function ci(o,i){let l=[];return X(o,(u,d)=>{if(u.type===i)l.push({node:u,path:d})}),l}function pi(o){let i=new Set(Object.keys(c(c(o.media)?.players)??{}));for(let{node:l}of ci(o,"videoPlayer"))if(l.source!==void 0&&typeof l.id==="string")i.add(l.id);return i}function oc(o){let i=Object.keys(c(c(o.media)?.players)??{}),l=c(o.requires)?.platform,u=c(o.state)??{};for(let{node:d,path:m}of ci(o,"videoPlayer")){let k=Rb(d,m,{declared:i,media:Array.isArray(l)&&l.includes("media"),state:u});if(k)return k}return}function Rb(o,i,l){let u=(d,m)=>({path:d,message:m});if(!l.media)return u(i,"videoPlayer requires media in requires.platform");if(o.player===void 0===(o.source===void 0))return u(i,"A videoPlayer needs exactly one of player or source");if(typeof o.player==="string"&&!l.declared.includes(o.player))return u(`${i}.player`,"Unknown media player");if(o.source!==void 0){if(typeof o.id!=="string"||!ae.stateKey.test(o.id))return u(i,"An inline videoPlayer needs an id that is a state key");if(l.declared.includes(o.id))return u(`${i}.id`,"An inline videoPlayer id cannot repeat a declared player")}if(typeof o.positionKey==="string"&&typeof l.state[o.positionKey]!=="number")return u(`${i}.positionKey`,"positionKey must name a declared number state key");return Ob(o,i)}function Ob(o,i){if(o.autoplay==="whenVisible")return;let l=["visibleThreshold","resumePosition"].find((u)=>o[u]!==void 0);return l===void 0?void 0:{path:`${i}.${l}`,message:`${l} needs autoplay whenVisible`}}function ic(o){let i=c(o.requires)?.platform,l=Array.isArray(i)&&i.includes("cast"),u=pi(o);for(let{node:d,path:m}of ci(o,"castButton")){if(!l)return{path:m,message:"castButton requires cast in requires.platform"};if(typeof d.player==="string"&&!u.has(d.player))return{path:`${m}.player`,message:"Unknown media player"}}return}function ac(o){if(!c(o.media))return;let i=c(o.requires)?.platform;return Array.isArray(i)&&i.includes("media")?void 0:{path:"media",message:"Media players require media in requires.platform"}}function sc(o,i,l){return o.length===4&&o[1]==="players"&&i.has(o[2])&&Object.hasOwn(l,o[3])}function lc(o,i,l){if(typeof o.call!=="string"||!o.call.startsWith("media."))return;let u=c(c(o.args)?.player);return u&&typeof u.value==="string"&&!l.has(u.value)?{path:`${i}.args.player.value`,message:"Unknown media player"}:void 0}var $b=V.platformModules.map.events.markerTap.emitContext,Ib=["onSuccess","onError","actions"];function uc(o){let i=c(o.requires)??{},l=Array.isArray(i.platform)?i.platform:[],u=Array.isArray(i.permissions)?i.permissions:[],d={map:l.includes("map"),location:l.includes("location"),permission:u.some((k)=>c(k)?.name==="location")},m;return X(o,(k,_)=>{if(!m&&k.type==="map")m=Cb(k,_,d)}),m}function Cb(o,i,l){let u=(m,k)=>({path:m,message:k});if(!l.map)return u(i,"map requires map in requires.platform");if(o.showUserLocation===!0&&!l.location)return u(`${i}.showUserLocation`,"showUserLocation requires location in requires.platform");if(o.showUserLocation===!0&&!l.permission)return u(`${i}.showUserLocation`,"showUserLocation requires permission location in requires.permissions");let d=c(o.onCameraIdle)?.into;if(d!==void 0&&Us(d)===void 0)return u(`${i}.onCameraIdle.into`,"onCameraIdle.into must be a /data/<pointer> path");return dc(o.onMarkerTap,`${i}.onMarkerTap`)}function dc(o,i){if(!Array.isArray(o))return;for(let[l,u]of o.entries()){let d=c(u)??{},m=`${i}[${l}]`,k=d.type==="emit"?c(d.context):void 0,_=$b.find((x)=>k!==void 0&&Object.hasOwn(k,x));if(_!==void 0)return{path:`${m}.context.${_}`,message:`${_} is reserved in an onMarkerTap emit context: the runtime sets it to the tapped marker's id`};for(let x of Ib){let v=dc(d[x],`${m}.${x}`);if(v)return v}}return}var Mb=new Set(["webview.back","webview.reload"]),jb=[["navigationStateKey","string"],["titleKey","string"],["canGoBackKey","boolean"]],Nb=/^(?:[0-9]+|0x[0-9a-f]*)$/;function cc(o){let i=new Set;return X(o,(l)=>{if(l.type==="webView"&&typeof l.id==="string")i.add(l.id)}),i}function pc(o){let i=c(o.requires),u={webview:(Array.isArray(i?.platform)?i.platform:[]).includes("webview"),state:c(o.state)??{}},d;return X(o,(m,k)=>{if(!d&&m.type==="webView")d=Db(m,k,u)}),d}function Lb(o){return o.slice(8).split(":")[0]}function qb(o){let i=o.slice(o.lastIndexOf(".")+1);return o==="localhost"||o.endsWith(".localhost")||Nb.test(i)}function zb(o){let i=/^https:\/\/([^/?#]*)/.exec(o)?.[1];if(i===void 0||i.includes("{"))return;return`https://${i.toLowerCase().replace(/:443$/,"")}`}function Db(o,i,l){if(!l.webview)return{path:i,message:"webView requires webview in requires.platform"};let u=Array.isArray(o.allowedOrigins)?o.allowedOrigins.map(String):[],d=u.findIndex((k)=>qb(Lb(k)));if(d>=0)return{path:`${i}.allowedOrigins[${d}]`,message:"allowedOrigins must name a DNS host, not localhost or an IP address"};let m=typeof o.url==="string"?zb(o.url):void 0;if(m!==void 0&&!u.includes(m))return{path:`${i}.url`,message:"webView url origin must be one of allowedOrigins"};for(let[k,_]of jb){let x=o[k];if(typeof x==="string"&&typeof l.state[x]!==_)return{path:`${i}.${k}`,message:`${k} must name a declared ${_} state key`}}return}function mc(o,i,l){if(typeof o.call!=="string"||!Mb.has(o.call))return;let u=c(c(o.args)?.node);return u&&typeof u.value==="string"&&!l.has(u.value)?{path:`${i}.args.node.value`,message:"Unknown webView"}:void 0}function fc(o){let i=c(o.auth);if(!i)return;let l=c(o.requires);if(!Array.isArray(l?.platform)||!l.platform.includes("auth"))return{path:"auth",message:"The auth block requires auth in requires.platform"};let u=new Set;for(let[d,m]of(Array.isArray(i.accounts)?i.accounts:[]).entries()){let k=c(m)?.id;if(u.has(k))return{path:`auth.accounts[${d}].id`,message:"Duplicate account id"};u.add(k)}return}function yc(o,i,l){let u=o.call;return typeof u==="string"&&u.startsWith("auth.")&&!c(l.auth)?{path:`${i}.call`,message:`${u} requires a root auth block`}:void 0}function gc(o){let i=c(o.commerce);if(!i)return;let l=c(o.requires);if(!Array.isArray(l?.platform)||!l.platform.includes("commerce"))return{path:"commerce",message:"The commerce block requires commerce in requires.platform"};let u=new Set,d=Array.isArray(i.products)?i.products:[];for(let[m,k]of d.entries()){let _=c(k)??{},x=`commerce.products[${m}]`;if(u.has(_.id))return{path:`${x}.id`,message:"Duplicate product id"};u.add(_.id);let v=["period","trialPeriod"].find((T)=>_[T]!==void 0);if(v&&_.kind!=="subscription")return{path:`${x}.${v}`,message:"Only a subscription has a period"}}return}function hc(o,i,l){let u=o.call;if(typeof u!=="string"||!u.startsWith("commerce."))return;let d=c(l.commerce);if(!d)return{path:`${i}.call`,message:`${u} requires a root commerce block`};let m=c(c(o.args)?.productId)?.value,k=Array.isArray(d.products)?d.products:[];return typeof m==="string"&&!k.some((_)=>c(_)?.id===m)?{path:`${i}.args.productId.value`,message:"Unknown product"}:void 0}function kc(o){let i=c(o.notifications);if(!i)return;let l=c(o.requires);if(!Array.isArray(l?.platform)||!l.platform.includes("notifications"))return{path:"notifications",message:"The notifications block requires notifications in requires.platform"};let u=new Set;for(let[d,m]of mi(i.channels).entries()){let k=c(m)?.id;if(u.has(k))return{path:`notifications.channels[${d}].id`,message:"Duplicate channel id"};u.add(k)}return}var Bb=["id","group","all"];function bc(o,i,l){let u=c(o.args)??{};if(o.call==="notifications.cancel")return Bb.filter((m)=>Object.hasOwn(u,m)).length===1?void 0:{path:`${i}.args`,message:"notifications.cancel takes exactly one of id, group or all"};return o.call==="notifications.post"||o.call==="notifications.schedule"?Yb(u,i,l):void 0}function Yb(o,i,l){let u=c(o.channel)?.value;if(typeof u==="string"&&!xc(l).has(u))return{path:`${i}.args.channel.value`,message:"Undeclared notification channel"};let d=new Set;for(let[m,k]of mi(c(o.actions)?.value).entries()){let _=c(k)?.id;if(d.has(_))return{path:`${i}.args.actions.value[${m}].id`,message:"Duplicate action id"};d.add(_)}return}var Wj=new Set(["blocked"]);function _c(o,i,l){if(o[1]==="channels")return o.length===4&&xc(i).has(o[2])&&Wj.has(o[3]);return o.length===2&&Object.hasOwn(l,o[1])&&!Wj.has(o[1])}function xc(o){return new Set(mi(c(o.notifications)?.channels).map((i)=>c(i)?.id))}function mi(o){return Array.isArray(o)?o:[]}function vc(o){let i=c(o.storage);if(!i)return;let l=Rr(c(o.requires)?.platform),u=Array.isArray(i.secure),d=u?i.secure:[];return(u?Kb(d,o,Rr(i.keys),l):void 0)??Fb(c(i.secureAuth),d,l)}function Kb(o,i,l,u){if(!u.includes("secureStorage"))return{path:"storage.secure",message:"storage.secure requires secureStorage in requires.platform"};for(let[d,m]of o.entries()){let k=Ub(m,i,l);if(k)return{path:`storage.secure[${d}]`,message:k}}return}function Fb(o,i,l){for(let u of Object.keys(o??{})){let d=yi("storage.secureAuth",u);if(!i.includes(u))return{path:d,message:"secureAuth names a key that is not in storage.secure"};if(!l.includes("biometric"))return{path:d,message:"Biometric secure keys require biometric in requires.platform"}}return}function Pc(o,i,l){let u=o.type==="emit"?c(o.context):void 0,d=Rr(c(l.storage)?.secure);for(let[m,k]of Object.entries(u??{})){let _=c(k)?.state,x=typeof _==="string"?fi(_,d):void 0;if(x)return{path:yi(`${i}.context`,m),message:`Secure storage key ${x} cannot be sent in an emit context`}}return}function Tc(o,i,l){let u=Rr(c(l.storage)?.secure);if(o.type!=="request"||o.allowSecureInRequest===!0||u.length===0)return;let d=(x,v)=>{let T=typeof x==="string"?Wb(x,u):Vb(x,u);return T?{path:v,message:`Secure storage key ${T} cannot be sent in a request without allowSecureInRequest`}:void 0},m=c(o.body),k=(x,v)=>Object.keys(c(x)??{}).sort().map((T)=>[c(x)[T],yi(v,T)]),_=[[o.url,`${i}.url`],...k(o.headers,`${i}.headers`),...k(o.query,`${i}.query`),[o.body,`${i}.body`],...k(m?.form,`${i}.body.form`),...(Array.isArray(m?.multipart)?m.multipart:[]).map((x,v)=>[c(x)?.value,`${i}.body.multipart[${v}].value`])];for(let[x,v]of _){let T=d(x,v);if(T)return T}return}function Vb(o,i){let l=c(o)?.state;return typeof l==="string"?fi(l,i):void 0}function Wb(o,i){let l=[];for(let u=0;u<o.length;u++)if(o[u]==="{")l.push(u+1);else if(o[u]==="}"&&l.length>0){let d=fi(o.slice(l.pop(),u),i);if(d)return d}return}function fi(o,i){let l=o.split(/\{[^}]*\}/);return i.find((u)=>u.startsWith("state:")&&Zb(l,u.slice(6)))}function Zb(o,i){let l=o[0]??"";if(o.length===1)return i===l;let u=o.at(-1)??"",d=i.length-u.length;if(d<l.length||!i.startsWith(l)||!i.endsWith(u))return!1;let m=l.length;for(let k of o.slice(1,-1)){let _=i.indexOf(k,m);if(_<0||_+k.length>d)return!1;m=_+k.length}return!0}function Ub(o,i,l){let u=typeof o==="string"&&o.startsWith("state:")?o.slice(6):void 0;if(u===void 0||!ae.stateKey.test(u))return"Secure storage keys are state:<key>";let d=c(i.state)??{};if(!Object.hasOwn(d,u))return`Secure storage key ${o} is not declared in state`;if(typeof d[u]!=="string")return"Secure storage keys must hold a string state value";return l.includes(o)?`Secure storage key ${o} is also listed in storage.keys`:void 0}function Rr(o){return Array.isArray(o)?o.filter((i)=>typeof i==="string"):[]}var yi=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function Ec(o){if(!c(o.location))return;let i=c(o.requires);if(!Array.isArray(i?.platform)||!i.platform.includes("location"))return{path:"location",message:"The location block requires location in requires.platform"};if(!(Array.isArray(i.permissions)?i.permissions:[]).some((u)=>c(u)?.name==="location"))return{path:"location",message:"The location block requires permission location in requires.permissions"};return}var Sc={pitchDeg:"orientation",rollDeg:"orientation",headingDeg:"orientation",steps:"steps",proximityNear:"proximity",lightLux:"light",shake:"shake"};function wc(o){let i=c(o.sensors);if(!i)return;let l=c(o.requires);if(!Array.isArray(l?.platform)||!l.platform.includes("sensors"))return{path:"sensors",message:"The sensors block requires sensors in requires.platform"};let u=Array.isArray(l.permissions)?l.permissions:[];if(i.steps!==void 0&&!u.some((d)=>c(d)?.name==="motion"))return{path:"sensors.steps",message:"steps requires permission motion in requires.permissions"};return}function gi(o,i,l){let u=Object.hasOwn(Sc,o)?Sc[o]:void 0;return u&&c(l.sensors)?.[u]===void 0?{path:i,message:`Sensor ${u} is not declared in the sensors block`}:void 0}function Ac(o,i,l){let u=c(o.names)?.value;if(!Array.isArray(u))return;let d=u.findIndex((m)=>typeof m==="string"&&!l.has(m));return d<0?void 0:{path:`${i}.names.value[${d}]`,message:`Permission ${String(u[d])} is not declared in requires.permissions`}}var C$=V.limits.MAX_PROTOTYPE_CLIPBOARD_TEXT_BYTES,iie="prototype_platform",oie="prototype_platform_event",Rc="prototype_",Oc="automobile-",sie=["unsupported","unavailable","permission_denied","invalid_args","cancelled","timeout","too_many_in_flight","platform_error"];function Xb(o){for(let[i,l]of Object.entries(o)){if(l.rateLimit===void 0)continue;let u=c(l.rateLimit),d={kind:"number",integer:!0,min:1};if(!u||Object.keys(u).some((m)=>m!=="calls"&&m!=="windowMs")||!cb(u.calls,d)||!cb(u.windowMs,d)||!(Number(u.calls)<9223372036854776000)||!(Number(u.windowMs)<9223372036854776000))throw Error(`platformModules.${i}.rateLimit must contain positive integer calls and windowMs`)}return o}var yu=Xb(V.platformModules),Ot=(o)=>Object.hasOwn(yu,o)?yu[o]:void 0;function hi(o){if(typeof o!=="string")return;let i=o.indexOf(".");return i>0&&i<o.length-1?{module:o.slice(0,i),member:o.slice(i+1)}:void 0}function FR(o){let i=hi(o),l=i&&Ot(i.module),u=l&&Object.hasOwn(l.calls,i.member)?l.calls[i.member]:void 0;return i&&u?{module:i.module,op:i.member,definition:u}:void 0}function r$(o){let i=hi(o),l=i&&Ot(i.module),u=l&&Object.hasOwn(l.events,i.member)?l.events[i.member]:void 0;return i&&u?{module:i.module,op:i.member,definition:u}:void 0}function PY(o){let i=hi(o),l=i&&Ot(i.module);return i&&l&&Object.hasOwn(l.events,i.member)?i.module:void 0}function ki(o){let i=o.slice(1).split("/");return i.length===2&&i[1]?i[1].replaceAll("~1","/").replaceAll("~0","~"):void 0}function zj(o){return(o.slice(1).split("/",1)[0]??"").replaceAll("~1","/").replaceAll("~0","~")}var Cc=(o,i)=>ae.pathKey.test(i)?o?`${o}.${i}`:i:`${o||"$"}[${JSON.stringify(i)}]`,Or=(o)=>Object.keys(o).sort((i,l)=>i<l?-1:i>l?1:0),Mc=new Set(["onTap","onLongPress","onDoubleTap","onSubmit"]),Gb=new Set(["payload","repeat"]);function Hb(o,i,l,u){if(o.type==="pasteButton")u.push({kind:"call",userGesture:l.userGesture,path:i,action:{type:"platform",call:"clipboard.paste",into:o.into}});if(o.type==="platform"&&typeof o.call==="string")u.push({kind:"call",path:i,action:o,userGesture:l.userGesture});if(o.type!==void 0)return;if(typeof o.platform==="string")u.push({kind:"read",path:`${i}.platform`,pointer:o.platform,condition:o});if(typeof o.event==="string")u.push({kind:"event",path:`${i}.event`,inHandler:l.inHandler,inTimer:l.inTimer})}function Jb(o,i){return o.type==="startTimer"||i.startsWith("on")&&!Mc.has(i)&&i!=="onSuccess"&&i!=="onError"}function Qb(o,i,l){let u=typeof o.type==="string"&&Object.hasOwn(V.definitions.node.variants,o.type),d=Mc.has(i),m=Jb(o,i);return{inHandler:l.inHandler,inTimer:l.inTimer||o.type==="startTimer",inNode:!m&&(u||l.inNode),userGesture:u?d:!m&&(d&&l.inNode||l.userGesture)}}function e_(o,i,l,u){for(let d of Or(o)){let m=Qb(o,d,l),k=d==="screens"?c(o.screens):void 0;if(k)for(let _ of Or(k))Qt(k[_],`${i}.screens[${JSON.stringify(_)}]`,m,u);else if(!Gb.has(d))Qt(o[d],Cc(i,d),m,u)}}function Qt(o,i,l,u){if(Array.isArray(o)){o.forEach((m,k)=>Qt(m,`${i}[${k}]`,l,u));return}let d=c(o);if(!d||Object.keys(d).length===1&&Object.hasOwn(d,"value"))return;Hb(d,i,l,u),e_(d,i,l,u)}function t_(o,i){X(o,(l,u)=>{cr(l,u,(d,m,k)=>{if(k==="text"&&typeof d==="string")for(let _ of $n(d))i.push({kind:"read",path:m,pointer:_});return d})})}function md(o){let i=c(o);if(!i)return[];let l=[],u=c(i.requires);if(u)l.push({kind:"requires",path:"requires"}),(Array.isArray(u.platform)?u.platform:[]).forEach((k,_)=>{if(typeof k==="string")l.push({kind:"declared",path:`requires.platform[${_}]`,module:k})});let d=c(c(i.platform)?.on);if(c(i.platform))l.push({kind:"handlers",path:"platform"});for(let m of d?Or(d):[]){let k=`platform.on[${JSON.stringify(m)}]`,_=r$(m)?.definition.userInitiated===!0;l.push({kind:"handler",path:k,event:m,userGesture:_}),Qt(d[m],k,{inHandler:!0,inTimer:!1,inNode:!1,userGesture:_},l)}for(let m of kr(i))Qt(m.value,m.path,{inHandler:!0,inTimer:!1,inNode:!1,userGesture:!1},l);for(let{node:m,path:k}of Mr(i))Qt(m,k,{inHandler:!1,inTimer:!1,inNode:!1,userGesture:!1},l);return t_(i,l),X(i,(m,k)=>{if(m.type==="map")l.push({kind:"node",path:k,module:"map",backend:m.backend});else if(m.type==="webView")l.push({kind:"node",path:k,module:"webview"})}),l}var bi=(o,i)=>({path:o,message:`Platform module ${i} is not declared in requires.platform`});function n_(o){let i=c(o.requires)??{},l=Array.isArray(i.platform)?i.platform:[];for(let[m,k]of l.entries())if(typeof k==="string"&&!Ot(k))return{path:`requires.platform[${m}]`,message:"Unknown platform module"};let u=Array.isArray(i.permissions)?i.permissions:[],d=new Set;for(let[m,k]of u.entries()){let _=c(k)?.name;if(d.has(_))return{path:`requires.permissions[${m}].name`,message:"Duplicate permission"};d.add(_)}return}function r_(o,i,l,u){let d=c(o.args)??{};for(let m of Or({...l.args,...d})){let k=Cc(`${i}.args`,m),_=Object.hasOwn(l.args,m)?l.args[m]:void 0;if(!_)return{path:k,message:o.call==="share.open"&&m==="title"?"Unknown argument: use subject":"Unknown argument"};if(!Object.hasOwn(d,m)){if(!_.optional)return{path:k,message:"Required argument"};continue}let x=g_(o,{name:m,value:d[m],at:k},_.value,u);if(x)return x}return}function o_(o,i,l,u){let d=FR(o.call);if(!d)return{path:`${i}.call`,message:"Unknown platform call"};if(!l.declared.has(d.module))return bi(`${i}.call`,d.module);let m=d.definition.permissions.find((T)=>!l.permissions.has(T));if(m!==void 0)return{path:`${i}.call`,message:`Platform call ${String(o.call)} requires permission ${m} in requires.permissions`};let k=d.definition.background.find((T)=>!l.background.has(T));if(k!==void 0)return{path:`${i}.call`,message:`Platform call ${String(o.call)} requires ${k} in requires.background`};let _=r_(o,i,d.definition,u);if(_)return _;let x=i_(o,i,l.permissions);if(x)return x;let v=typeof o.into==="string"?a_(o.into):void 0;return v?{path:`${i}.into`,message:v}:void 0}var $c={"share.open":(o,i)=>Jt(o,i),"links.open":tc,"permissions.request":Ac};function i_(o,i,l){return(typeof o.call==="string"&&Object.hasOwn($c,o.call)?$c[o.call]:void 0)?.(c(o.args)??{},`${i}.args`,l)}function a_(o){return o==="/platform"||o.startsWith("/platform/")?"/platform is read-only: write a platform call result into /data":In(o,"platform")}function Ic(o){return new Set(Array.isArray(o)?o.filter((i)=>typeof i==="string"):[])}function s_(o,{declared:i,channels:l,players:u,root:d}){let m=zj(o.pointer);if(!Ot(m))return{path:o.path,message:`Unknown platform module ${m}`};if(!i.has(m))return bi(o.path,m);if(!l_(m,o.pointer,{channels:l,players:u,root:d}))return{path:o.path,message:`Unknown platform state ${o.pointer}`};let k=ki(o.pointer);return m==="sensors"&&k?gi(k,o.path,d):void 0}function l_(o,i,{channels:l,players:u,root:d}){let m=Ot(o)?.state,k=i.slice(1).split("/").map((x)=>x.replaceAll("~1","/").replaceAll("~0","~"));if(o==="media")return sc(k,u,m??{});if(o==="notifications")return _c(k,d,m??{});if(o==="realtime")return k.length===3&&Object.hasOwn(l,k[1])&&(!m||Object.hasOwn(m,k[2]));let _=ki(i);return!m||_!==void 0&&Object.hasOwn(m,_)}function u_(o,i){let l=Ot(zj(o.pointer))?.state?.[ki(o.pointer)??""];if(!l?.valueByPlatform||!o.condition)return;let u={kind:"choice",options:[l.value,...Object.values(l.valueByPlatform)]};for(let d of["equals","notEquals"])if(Object.hasOwn(o.condition,d)){let m=i(o.condition[d],u,o.path.replace(/\.platform$/,`.${d}`));if(m)return m}return}function d_(o){return FR(o.action.call)?.definition.userGesture&&!o.userGesture?{path:o.path,message:`Side-effecting platform call ${String(o.action.call)} needs a user gesture: move it into onTap, onLongPress, onDoubleTap or onSubmit`}:void 0}function c_(o,i,l){switch(o.kind){case"handler":{let u=PY(o.event);if(!u)return{path:o.path,message:"Unknown platform event"};if(!i.declared.has(u))return bi(o.path,u);return u==="sensors"?gi(o.event.slice(8),o.path,i.root):void 0}case"call":return o_(o.action,o.path,i,l)??d_(o);case"read":return s_(o,i)??u_(o,l);case"event":if(!o.inHandler)return{path:o.path,message:"{event} is only available inside a platform.on handler"};return o.inTimer?{path:o.path,message:"{event} is unavailable in startTimer actions: copy the needed event fields into data or state before starting the timer"}:void 0;default:return}}function p_(o,i){return o.type==="emit"&&typeof o.name==="string"&&o.name!==WD&&o.name.startsWith(Rc)?{path:`${i}.name`,message:`Emit names starting with ${Rc} are reserved for runtime events`}:void 0}function jc(o){let i=o.find(({value:l})=>typeof l.testTag==="string"&&l.testTag.startsWith(Oc));return i===void 0?void 0:{path:`${i.path}.testTag`,message:`testTag values starting with ${Oc} are reserved for host controls`}}function m_(o){let i=c(o.requires)??{};return{channels:c(o.channels)??{},players:pi(o),root:o,previews:Jd(o),webViews:cc(o),declared:Ic(i.platform),permissions:new Set((Array.isArray(i.permissions)?i.permissions:[]).map((l)=>c(l)?.name)),background:Ic(i.background)}}function Nc(o,i,l){let u=c(o)??{},d=m_(u),m=y_(u,l);if(m)return m;for(let k of md(u)){let _=c_(k,d,l)??h_(k,u,d);if(_)return _}for(let{value:k,path:_}of i){let x=p_(k,_)??Pc(k,_,u)??Tc(k,_,u);if(x)return x}return}var f_=[Xd,fc,gc,vc,Ec,wc,kc,ac,rc,oc,uc,pc,nc,ic,Qd,n_];function y_(o,i){for(let l of f_){let u=l(o,i);if(u)return u}return}function g_(o,{name:i,value:l,at:u},d,m){if(typeof l==="string"){if(String(o.call).startsWith("realtime.")&&i==="channel")return;return{path:u,message:"Invalid union value"}}let k=c(l);if(k&&Object.hasOwn(k,"value")){let _=o.call==="share.open"&&d.kind==="string"?void 0:m(k.value,d,`${u}.value`);if(_)return _}return}function h_(o,i,l){return o.kind==="call"?Hd(o.action,o.path,i)??yc(o.action,o.path,i)??hc(o.action,o.path,i)??bc(o.action,o.path,i)??lc(o.action,o.path,l.players)??ec(o.action,o.path,l.previews)??mc(o.action,o.path,l.webViews):void 0}var{MAX_PROTOTYPE_STORAGE_BYTES:k_,MAX_PROTOTYPE_STORAGE_KEYS:K$}=V.limits,Lc="state:",qc="data:",b_=ae.stateKey;function $r(o){if(typeof o!=="string")return;if(o.startsWith(Lc)){let i=o.slice(Lc.length);return b_.test(i)?{kind:"state",key:i}:void 0}if(o.startsWith(qc)){let i=o.slice(qc.length);return Us(`/data${i}`)===i?{kind:"data",pointer:i}:void 0}return}function __(o,i){return o===i||o.startsWith(`${i}/`)||i.startsWith(`${o}/`)}function AY(o){let i=c(c(o)?.storage);if(!i||typeof i.version!=="number"||!Array.isArray(i.keys))return;return{version:i.version,keys:i.keys.map(String)}}function aie(o){return c(o)?.storage===void 0?[]:["storage"]}function cie(o,i){let l=i==="android"?"connected CtrlProxy":"connected iOS prototype agent",u=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version";return`The ${l} does not advertise ${pd}, so it cannot persist the ${o[0]} block. Nothing was shown or patched. ${u}, or remove storage and keep the values on the host.`}function ab(o){return`clearStorage: the ${o==="android"?"connected CtrlProxy":"connected iOS prototype agent"} does not advertise ${pd}, so it keeps no stored prototype values. Nothing was sent. ${o==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version"}.`}function die(o,i){if(o==="clear_prototype_storage"&&i(pd)!==!0)throw new t(ab("android"))}function zc(o,i){return Buffer.byteLength(o)+Buffer.byteLength(JSON.stringify(i)??"null")}function Yc(o){let i=AY(o),l=c(o)??{},u=[],d=0;for(let[m,k]of(i?.keys??[]).entries()){let _=x_(k,l,u,m);if("message"in _)return{path:`storage.keys[${m}]`,message:_.message};d+=_.bytes}return d>k_?{path:"storage.keys",message:"Storage byte limit exceeded"}:void 0}function x_(o,i,l,u){if(o.startsWith("stack:")){let _=!1;return X(i,(x)=>{if(x.type==="stack"&&x.id===o.slice(6))_=!0}),_?{bytes:0}:{message:"Unknown storage stack"}}let d=$r(o);if(!d)return{message:"Storage keys are state:<key> or data:<pointer under /data, such as /cart>"};if(d.kind==="state"){let _=c(i.state)??{};return Object.hasOwn(_,d.key)?{bytes:zc(o,_[d.key])}:{message:`Storage key ${o} is not declared in state`}}let m=l.find((_)=>__(_.pointer,d.pointer));if(m)return{message:`Storage key ${o} overlaps storage.keys[${m.index}]; list a data pointer once, or list its parent only`};l.push({pointer:d.pointer,index:u});let k=Pt(i.data,d.pointer);return{bytes:k===void 0?0:zc(o,k)}}var Dc=y().max(261).refine((o)=>$r(o)!==void 0||o.startsWith("stack:")&&o.length>6),Bc=A().int().safe().nonnegative(),v_=f({version:A().int().safe().min(1),keys:z(f({key:Dc,bytes:Bc})),totalBytes:Bc,skippedKeys:z(Dc).optional()});function jj(o){let i=v_.safeParse(o);if(!i.success)return;let{skippedKeys:l,...u}=i.data;return l?.length?{...u,skippedKeys:l}:u}import{extname as $_}from"path";function Cg(o){if(Buffer.byteLength(o,"utf8")<=2048)return o;let i="",l=0;for(let u of o){if(l+=Buffer.byteLength(u,"utf8"),l>2048)break;i+=u}return i}import{isUtf8 as T_}from"buffer";var n$={limits:{MAX_PROTOTYPE_ASSET_BYTES:4194304,MAX_PROTOTYPE_FONT_ASSET_BYTES:2097152,MAX_PROTOTYPE_ASSET_COUNT:32,MAX_PROTOTYPE_ASSET_TOTAL_BYTES:16777216,MAX_PROTOTYPE_ASSET_ID_LENGTH:256,MAX_PROTOTYPE_SHADER_ASSET_BYTES:16384},mimeTypes:["image/png","image/jpeg","image/webp","font/ttf","font/otf","application/vnd.automobile.agsl"]};var E_=new Set(`
29
+ main true false if else for while do switch case default break continue discard return
30
+ in out inout uniform const flat noperspective inline noinline readonly writeonly buffer
31
+ struct layout highp mediump lowp workgroup pixel_local atomic attribute varying precision
32
+ invariant asm class union enum typedef template this packed goto volatile public static
33
+ extern external interface long double fixed unsigned superp input output sizeof cast
34
+ namespace using then atomic_uint sampler3DRect common partition active filter resource superp row_major subroutine
35
+ coherent restrict volatile centroid smooth patch sample shared precise precision
36
+ void bool int uint short ushort float half shader colorFilter blender sampler texture
37
+ `.split(/\s+/).filter(Boolean)),S_=/^(?:(?:bool|int|uint|short|ushort|float|half|double)[234](?:x[234])?|[biudfh]?vec[234]|[dh]?mat[234](?:x[234])?|(?:[iu]?(?:image|sampler|texture))(?:1D|2D|3D|1DArray|2DArray|2DRect|2DMS|2DMSArray|Buffer|Cube|CubeArray)(?:Shadow)?|samplerShadow|[iu]?subpassInput(?:MS)?)$/,Ua="application/vnd.automobile.agsl";function w_(o){let i="";for(let l=0;l<o.length;l++){let u=o[l+1];if(o[l]==="/"&&u==="/"){l+=2;while(l<o.length&&!/[\n\r\v\f\u0085\u2028\u2029]/.test(o[l]))l++;i+=" "}else if(o[l]==="/"&&u==="*"){let d=o.indexOf("*/",l+2);if(d===-1)return;l=d+1,i+=" "}else i+=o[l]}return i}function Kj(o){let i=(d)=>({success:!1,error:d});if(o.length===0||o.length>n$.limits.MAX_PROTOTYPE_SHADER_ASSET_BYTES)return i("AGSL source must contain 1 to 16384 bytes.");if(!T_(o))return i("AGSL source must be valid UTF-8 text.");let l=w_(new TextDecoder("utf-8",{ignoreBOM:!0}).decode(o));if(l===void 0)return i("AGSL source has an unterminated block comment.");if(/[^\x20-\x7e\t\r\n]|[#\\"']/.test(l))return i("AGSL code must be ASCII text with no preprocessor directives, strings or escapes.");let u=l.match(/[A-Za-z_][A-Za-z0-9_]*|[^\s]/g)??[];return A_(u)}function A_(o){let i=(m)=>({success:!1,error:m}),l=new Set,u=!1,d=0;for(let m=0;m<o.length;m++){if(o[m]==="{")d++;if(o[m]==="}")d--;if(o[m]!=="uniform")continue;if(d!==0||m>0&&![";","}"].includes(o[m-1]))return i("AGSL uniforms must be unqualified top-level declarations.");let k=O_(o.slice(m+1,m+4),l,u);if(k)return i(k);if(o[m+1]==="shader")u=!0;m+=3}return{success:!0,uniforms:l}}function R_(o){return E_.has(o)||S_.test(o)||o.startsWith("sk_")||o.startsWith("gl_")}function O_(o,i,l){let[u,d,m]=o;if(m!==";"||!d||!/^[A-Za-z_][A-Za-z0-9_]*$/.test(d))return"AGSL uniforms must use a single unqualified scalar declaration ending in ';'.";if(R_(d))return"AGSL uniform names must not be reserved words, main, or start with sk_ or gl_.";if(u==="shader"&&d==="content"&&!l)return;if(u!=="float"||d==="content"||i.has(d))return"AGSL permits unique uniform float names and at most one uniform shader content; no other uniform types or sampled inputs.";return i.add(d),i.size>16?"AGSL source permits at most 16 uniform float declarations.":void 0}var TY="Custom AGSL shaders (style.shader and .agsl assets) are Android only; remove them on iOS.";function i$(o,i=[]){return Ha(o).length||i.some(({path:l})=>l&&$_(l).toLowerCase()===".agsl")?TY:void 0}var Lk="Custom prototype shaders are off by default. Set AUTOMOBILE_PROTOTYPE_CUSTOM_SHADERS=1 in the host environment, then restart the daemon; use an Android device advertising prototype_custom_shaders_v1.";function Bk(o=process.env){return E(g.PROTOTYPE_CUSTOM_SHADERS,o)==="1"}function o$(o){let i=[];return X(o,(l,u)=>{let d=[{style:l.style,path:`${u}.style`},...(Array.isArray(l.styleWhen)?l.styleWhen:[]).map((m,k)=>({style:c(m)?.style,path:`${u}.styleWhen[${k}].style`}))];for(let m of d){let k=c(c(m.style)?.shader);if(k)i.push({shader:k,path:`${m.path}.shader`})}}),i}function Ha(o){return o$(o).map(({path:i})=>i)}function LR(o,i){return i==="ios"?"iOS prototype agents refuse style.shader: custom AGSL shaders are Android-only. Remove style.shader.":"The connected CtrlProxy does not advertise prototype_custom_shaders_v1. Update CtrlProxy to a build supporting custom AGSL shaders, or remove style.shader."}function Dg(o,i=process.env){return Ha(o).length&&!Bk(i)?Lk:void 0}function kY(o,i){let l=new Map(i.map((u)=>[u.id,u]));for(let{shader:u,path:d}of o$(o)){let m=l.get(String(u.asset));if(!m)continue;if(m.mimeType!==Ua)return Cg(`${d}.asset must reference an application/vnd.automobile.agsl asset.`);let k=Kj(m.bytes);if(!k.success)return k.error;for(let _ of Object.keys(c(u.uniforms)??{}))if(!k.uniforms.has(_))return Cg(`${d}.uniforms contains a name not declared as uniform float in the AGSL source.`)}return}async function BR(o,i,l,u=[]){let d=[...u],m=new Set(u.map((k)=>k.id));for(let{shader:k}of o$(o)){let _=String(k.asset);if(m.has(_))continue;m.add(_);let x=await l.get(i,_);if(x)d.push(x)}return kY(o,d)}function s$(o){return{root:{children:o.filter((i)=>i.op==="replaceNode").map((i)=>i.node)}}}var I_=["tone440","silence","colorBars","countdown"],Kc=Ne([f({asset:y().min(1).max(128)}).strict(),f({url:y().max(2048).regex(ae.mediaUrl)}).strict(),f({data:W}).strict(),f({sample:P(I_)}).strict()]),Fc=f({players:kt(H,f({kind:P(["video","audio"]),source:Kc.optional(),queue:W.optional(),loop:Z().optional()}).strict()).and(hr()).refine((o)=>Object.keys(o).length<=V.limits.MAX_PROTOTYPE_MEDIA_PLAYERS)}).strict();function Vc(o,i,l){if(o.type==="videoPlayer"&&++i.videoNodes>V.limits.MAX_PROTOTYPE_VIDEO_NODES)return{path:l,message:"Video node limit exceeded"};return}var _i=(o)=>y().max(o).refine((i)=>!ae.blankText.test(i)),C_=f({id:_i(64),language:_i(35),label:_i(64),source:Ne([f({asset:y().min(1).max(128)}).strict(),f({data:W}).strict()])}).strict(),M_={type:P(["videoPlayer"]),player:H.optional(),source:Kc.optional(),poster:y().min(1).max(128).optional(),controls:P(["builtin","none"]).optional(),contentScale:P(["fit","crop","fill"]).optional(),autoplay:Ne([Z(),ee("whenVisible")]).optional(),muted:Z().optional(),loop:Z().optional(),startMs:A().int().min(0).max(86400000).optional(),positionKey:H.optional(),visibleThreshold:A().min(0.1).max(1).optional(),resumePosition:Z().optional(),captions:z(C_).min(1).max(8).optional()},j_={type:P(["castButton"]),player:H,protocols:z(P(["googleCast","airplay"])).min(1).max(2).refine((o)=>new Set(o).size===o.length).optional()},N_={type:P(["cameraPreview"]),lensKey:H.optional(),flashKey:H.optional(),zoomKey:H.optional(),aspectRatio:P(["4:3","16:9","1:1"]).optional(),contentScale:P(["fit","crop","fill"]).optional(),tapToFocus:Z().optional(),pinchToZoom:Z().optional(),mode:P(["photo","video"]).optional()};function Wc(o){return[f({...o,...M_}).strict(),f({...o,...j_}).strict(),f({...o,...N_}).strict()]}function Ir(o,i,l,u){return Td(o,i,l,u)??bd(o,i,u)??Vc(o,i,u)}function Zc(o){let i=Array.isArray(o.styleWhen)?o.styleWhen:[];return[o.style,...i.map((l)=>c(l)?.style)]}var L_=V.definitions.style.fields.effects.rule.max;function Cr(o){let l={total:0,animated:o.type==="icon"&&c(o.effect)?.repeat!==void 0?1:0};for(let u of Zc(o)){let d=c(u)?.effects;for(let m of(Array.isArray(d)?d:[]).slice(0,L_))if(l.total++,c(m)?.animate!==void 0)l.animated++}return l}function lie(o){let i=[];return X(o,(l,u)=>{let d=Array.isArray(l.styleWhen)?l.styleWhen:[],m=[`${u}.style`,...d.map((k,_)=>`${u}.styleWhen[${_}].style`)];Zc(l).forEach((k,_)=>{if(c(k)?.effects!==void 0)i.push(`${m[_]}.effects`)})}),i}function uie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${hj}, so it cannot draw the effects at ${o[0]}${d}. Nothing was shown. ${u}, or remove style.effects.`}var q_=["setData","appendData","upsertData","prependData","removeData"];function pie(o){return vl(o,"dataPath")}function mie(o,i){let l=i==="android"?"connected CtrlProxy":"connected iOS prototype agent",u=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${ij}, so it cannot run the setData, appendData, prependData or removeData action at ${o[0]}${d}. Nothing was shown. ${u}, or answer the tap from the host with a /data patch.`}var xi="{index}",z_={alias:"\x00",index:!0};function vi(o){return Ce(o,z_).some((i)=>i.kind==="index")}function Uc(o,i){if(Ce(o,i).some((l)=>l.kind==="field"))return"Only a whole {index} segment may be a placeholder in a data path";return o.split("/").some((l)=>l.includes(xi)&&l!==xi)?"{index} must be a whole data path segment":void 0}function D_(o){return o.split("/").map((i)=>i===xi?"0":i).join("/")}function B_(o,i,l,u){if(typeof o.type!=="string"||!q_.some((_)=>_===o.type))return;let d=typeof o.path==="string"?o.path:"",m=Us(D_(d));if(m===void 0)return{path:`${i}.path`,message:"Data action paths are /data/<RFC 6901 pointer> and address a member of data"};let k=Y_(o,i,u);if(k)return k;if(["appendData","prependData","upsertData"].includes(o.type)&&!vi(d)){let _=Pt(l,m);if(_!==void 0&&!Array.isArray(_))return{path:`${i}.path`,message:`${o.type} target is not an array`}}return}function Xc(o,i,l){for(let{value:u,path:d}of o){let m=B_(u,d,i,l);if(m)return m}return}function Y_(o,i,l){let u=o.value??{};if(o.type==="upsertData"&&Object.hasOwn(u,"value")){let d=typeof o.key==="string"?o.key:"",m=Pt(u.value,d);if(m===void 0||m===null)return{path:`${i}.value.value`,message:"upsertData key pointer must be present and non-null in the literal value"}}if(Object.hasOwn(u,"value")&&l({value:u.value})!==void 0)return{path:`${i}.value.value`,message:"A data write value must be a string, boolean, finite number, array or object"};return}var re=(o,i)=>({path:o,message:i});function Ti(o,i){return pt(o,{alias:i,index:!0})}function Pi(o,i){return Ce(o,i).some((l)=>l.kind!=="literal")}function K_(o,i,l){for(let u of o){if(u.kind!=="field")continue;let d=u.name;if(!l.items.every((m)=>Object.hasOwn(m,d)))return re(i,`Unknown repeat field ${JSON.stringify(d)}`)}return}var Ei=(o,i,l)=>({binding:o.binding,values:i,index:l});function F_(o,i,l){let u=l.items.findIndex((d,m)=>ld(o,Ei(l,d,m))==="");return u<0?void 0:re(i,`Expanded emit name is empty for item ${u}`)}function V_(o,i,l){let u=l.binding.alias!=="route"&&pt(o,{alias:"route",index:!1}).length?Xt:ao;if(!Pi(o,l.binding))return u.test(o)?void 0:re(i,"Invalid key value");for(let d=0;d<l.items.length;d++){let m=ld(o,Ei(l,l.items[d],d));if(Ce(o,l.binding).some((_)=>_.kind==="field"&&!ae.pathKey.test(`_${mp(l.items[d][_.name])}`))||!u.test(m))return re(l.pathBound?`${l.path}.repeat.items.path`:`${l.path}.repeat.items[${d}]`,`Bound state key ${JSON.stringify(m)} is invalid${l.pathBound?` (repeat item ${d})`:""}`)}return}function W_({text:o,segments:i,dataRecognized:l},u,d,m){let k=new Map,_=0,x=l;for(let v of i)if(v.kind==="index")x=!0,_++;else if(v.kind==="field")x=!0,k.set(v.name,(k.get(v.name)??0)+1);if(!x)return;for(let v=0;v<d.items.length;v++){let T=_*String(v).length;if(T>V.limits.MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH)return re(u,"Substituted text length limit exceeded");let R=d.items[v];for(let[O,L]of k){if(!Object.hasOwn(R,O))continue;if(T+=L*mp(R[O]).length,T>V.limits.MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH)return re(u,"Substituted text length limit exceeded")}if(!Si(m,o.length+T))return re(u,"Substituted text total limit exceeded")}return}function Si(o,i){return o.total+=i,o.total<=V.limits.MAX_PROTOTYPE_SUBSTITUTED_TEXT_TOTAL}function Hc(o,i){return re(o,i.total>V.limits.MAX_PROTOTYPE_SUBSTITUTED_TEXT_TOTAL?"Substituted text total limit exceeded":"Substituted text length limit exceeded")}function Z_({value:o,path:i,kind:l,dataCondition:u=!1},d,m){if(typeof o!=="string")return;let k=Ce(o,d.binding);if(u&&k.some((O)=>O.kind!=="literal"))return re(i,"Repeat placeholder in a data condition operand is not supported");let _=K_(k,i,d);if(_)return _;let x=!1,v=l==="text"?m.data.text(o,(O)=>(x=!0,Si(m,O))):o;if(v===void 0)return Hc(i,m);let T=v===o?k:Ce(v,d.binding),R=W_({text:v,segments:T,dataRecognized:x},i,d,m);if(R)return R;return ix(l,o,i,d)}function U_(o,i,l,u){let d=Yo(o)&&typeof i==="string"?Uc(i,u.binding):void 0;return d===void 0?void 0:re(l,d)}function Jc(o,i,l){let u=c(o);if(!u)return;if(!l)return Object.hasOwn(u,"item")||Object.hasOwn(u,"index")?re(i,"Emit item/index binding outside a repeat template"):void 0;return typeof u.item==="string"&&!l.items.every((d)=>Object.hasOwn(d,u.item))?re(i,`Unknown repeat field ${JSON.stringify(u.item)}`):void 0}function X_(o,i,l,u){let d;return cr(o,i,(m,k,_,x)=>{if(_==="emitBinding")d??=Jc(m,k,l);return d??=U_(_,m,k,l),d??=Z_({value:m,path:k,kind:_,dataCondition:x},l,u),m}),d}function G_(o,i,l){if(typeof i!=="string")return;if(o==="key"&&!ao.test(Ce(i,{alias:"route",index:!1}).map((u)=>u.kind==="literal"?u.text:"r").join("")))return re(l,"State key placeholder outside a repeat template");return Yo(o)&&vi(i)?re(l,"{index} outside a repeat template"):void 0}function H_(o,i,l){let u;return cr(o,i,(d,m,k)=>{if(k==="emitBinding")u??=Jc(d,m);if(!u&&k==="text"&&typeof d==="string"&&l.data.text(d,(_)=>Si(l,_))===void 0)u=Hc(m,l);return u??=G_(k,d,m),d}),u}function wi(o,i){return or(o).flatMap(({value:l,suffix:u})=>{let d=c(l);return d?[{node:d,path:`${i}${u}`}]:[]})}function Ai(o,i,l){let u=c(o.repeat),d=c(u?.items),m=Array.isArray(u?.items)?u.items:[];return u&&typeof u.as==="string"?{path:i,binding:{alias:u.as,index:!0},items:d&&typeof d.path==="string"?Gc(l.items(d.path),u.derive):Gc(m.filter((k)=>c(k)!==void 0),u.derive),pathBound:d!==void 0,derivedFields:new Set(Object.keys(c(u.derive)??{}))}:void 0}function J_(o,i){if(o.type==="list")return re(i,"A list cannot sit inside a repeat template");if(o.repeat!==void 0)return re(`${i}.repeat`,"Nested repeat is not supported");if(o.type==="stack")return re(i,"Stack cannot appear inside a repeat template");if(o.type==="pager")return re(i,"Pager cannot appear inside a repeat template");return}function Qc(o,i,l,u){let d=u?J_(o,i):void 0;if(d)return d;let m=u?X_(o,i,u,l):H_(o,i,l);if(m)return m;let k=tx(o,i,l);if(k)return k;let _=Ai(o,i,l.data),x=_??u;for(let v of wi(o,i)){let T=Qc(v.node,v.path,l,o.type==="list"&&!v.path.startsWith(`${i}.children[`)?u:x);if(T)return T}return Q_(o,i,_)}function Q_(o,i,l){let u=c(o.repeat)?.key;return l&&typeof u==="string"&&!l.derivedFields.has(u)?nx(l.items,u,`${i}.repeat.key`):void 0}var ex=V.definitions.repeat.fields.items.rule.options.find((o)=>o.kind==="array")?.max??1/0;function tx(o,i,l){let u=c(o.repeat);if(!u)return;let d=c(u.items);if(d&&typeof d.path==="string"){let m=l.data.source(d.path),k=`${i}.repeat.items.path`;if(!Array.isArray(m))return re(k,"Repeat path does not resolve to an array");let _=o.type==="list"?V.limits.MAX_PROTOTYPE_LIST_ITEMS:ex;if(m.length>_)return re(k,`Repeat path resolves to more than ${_} items`);if(o.type==="list"&&typeof o.maxItems==="number"&&m.length>o.maxItems)return re(k,"List data has more items than maxItems");let x=m.findIndex((v)=>!c(v));if(x>=0)return re(k,`Repeat path item ${x} is not an object`);if(l.cells+=l.data.cells(d.path),l.cells>V.limits.MAX_PROTOTYPE_REPEAT_PATH_CELLS)return re(k,"Repeat path cell limit exceeded")}return}function nx(o,i,l){if(o.some((d)=>!Object.hasOwn(d,i)))return re(l,`Unknown repeat field ${JSON.stringify(i)}`);let u=new Map;for(let[d,m]of o.entries()){let k=mp(m[i]),_=u.get(k);if(_!==void 0)return re(l,`Duplicate repeat key ${JSON.stringify(k)} (items ${_} and ${d})`);u.set(k,d)}return}function Mn(o){if(typeof o==="string")return 1;let i=c(o);if(!i)return 0;if(typeof i.data==="string")return 0;return typeof i.light==="string"&&typeof i.dark==="string"&&i.light!==i.dark?2:1}function Ri(o){if(o.type==="image")return Math.max(1,Mn(o.asset));return o.type==="videoPlayer"?Mn(o.poster):0}function rx(o){if(o.type==="image"||o.type==="videoPlayer")return Ri(o);return(Array.isArray(o.items)?o.items:[]).reduce((l,u)=>l+Mn(c(u)?.image),0)}function ox(o,i,l,u){if(l.nodes++,l.nodes>V.limits.MAX_PROTOTYPE_NODES)return re(u,"Expanded node limit exceeded");if(l.images+=rx(o),l.images>V.limits.MAX_PROTOTYPE_IMAGES)return re(u,"Expanded image limit exceeded");let d=Ir(o,l,V.limits,i);if(d)return re(d.path,d.message);let m=Cr(o);if(l.effects+=m.total,l.animatedEffects+=m.animated,l.effects>V.limits.MAX_PROTOTYPE_EFFECTS)return re(u,"Expanded effect limit exceeded");if(l.animatedEffects>V.limits.MAX_PROTOTYPE_ANIMATED_EFFECTS)return re(u,"Expanded animated effect limit exceeded");return}function ep(o,i,l,{data:u,repeatPath:d}){let m=ox(o,i,l,d??i);if(m)return m;let k=Ai(o,i,u),_=k&&o.type!=="list"?k.items.length:1,x=k?`${i}.repeat`:d;for(let v=0;v<_;v++)for(let T of wi(o,i)){let R=ep(T.node,T.path,l,{data:u,repeatPath:x});if(R)return R}return}function jr(o,i=new ht(c(o)?.data)){let l=c(c(o)?.root);if(!l)return;return Qc(l,"root",{data:i,cells:0,total:0})??ep(l,"root",{nodes:0,images:0,effects:0,animatedEffects:0,keyframeNodes:0,videoNodes:0},{data:i})}function tp(o,i,l,u){let d=Ai(o,i,u);if(d)l.push(d);for(let m of wi(o,i))tp(m.node,m.path,l,u)}function bt(o,i,l=new ht(c(o)?.data)){let u=c(c(o)?.root),d=[];if(u)tp(u,"root",d,l);return i.flatMap((m)=>{let k=d.find((T)=>m.path.startsWith(`${T.path}.children[`));if(k&&Fo(m.value).some((T)=>typeof T==="string"&&np(T,k)))return[];let x=typeof m.value.value==="string"&&pt(m.value.value,{alias:"route",index:!1}).length>0||k!==void 0&&typeof m.value.value==="string"&&Pi(m.value.value,k.binding),v=k&&Fo(m.value).some((T)=>typeof T==="string"&&Pi(T,k.binding));if(!k||!v)return[{located:m,value:m.value,operandTemplated:x}];return k.items.map((T,R)=>({located:m,value:Du(m.value,Ei(k,T,R)),item:R,operandTemplated:x}))})}function Gc(o,i){let l=Object.fromEntries(Object.keys(c(i)??{}).map((u)=>[u,""]));return Object.keys(l).length?o.map((u)=>({...u,...l})):o}function np(o,i){return pt(o,i.binding).some((l)=>i.derivedFields.has(l))}function ix(o,i,l,u){if(np(i,u))return;if(o==="emitName")return F_(i,l,u);return o==="key"?V_(i,l,u):void 0}function $t(o){let i=o.indexOf("{");return i<0?void 0:o.slice(0,i)}function Oi(o,i){let l=$t(o),u=$t(i);if(l===void 0&&u===void 0)return o===i;if(l===void 0)return o.startsWith(u);if(u===void 0)return i.startsWith(l);return l.startsWith(u)||u.startsWith(l)}function rp(o,i){let l=new Set(o.filter((d)=>$t(d)===void 0)),u=o.filter((d)=>$t(d)!==void 0);return{key:(d)=>{if(!i())return!1;if($t(d)===void 0&&l.has(d))return!0;return($t(d)===void 0?u:o).some((k)=>i()&&Oi(k,d))},text:(d)=>d.includes("{")&&o.some((m)=>i()&&d.includes(`{${$t(m)??`${m}}`}`))}}var $i="Secure copy taint analysis exceeds 4000000 overlap checks",ap="Secure binding scan exceeds 4194304 expanded UTF-8 bytes";function sp(o,i,l){let u=xx(o,i);if(u)return u;let d=vx(o,i.shareAssetIds);if(d)return d;return i.library?ax(o,l):void 0}function ax(o,i){let l=Re(Re(o)?.window);if(Ha(o)[0])return{path:"$",message:"ProtoViewer bundles refuse custom AGSL shaders"};if(l?.layer==="system")return{path:"window.layer",message:"Privileged window layer"};if(l?.persistence==="device")return{path:"window.persistence",message:"Privileged window persistence"};let d=i.find(({value:m})=>m.type==="request"&&m.via==="host");if(d)return{path:`${d.path}.via`,message:"Host requests are unavailable in a library"};return bx(o)??kx(o)??mx(o)??sx(o)}function sx(o){for(let i of md(o)){if(i.kind==="call"&&FR(i.action.call)?.definition.sensitive)return{path:i.path,message:`Sensitive platform call ${String(i.action.call)} is unavailable in a library`};if(i.kind==="handler"&&r$(i.event)?.definition.sensitive)return{path:i.path,message:`Sensitive platform event ${i.event} is unavailable in a library`}}return}function lp(o){return lx(o).errors}function lx(o){let i=0,l=()=>i<=Nn&&++i<=Nn,u=gx(o),d=fx(o);if(!u.length&&!d.length)return{errors:[],checks:i};let m=[];X(o,(K,be)=>m.push({value:K,path:be}));let{requests:k,fields:_,dataWrites:x}=bp(o,m,!0);k.push(...cp(m));let v=[];if(ux(u,d,x,{stateTainted:v})===void 0)return{errors:[{path:"$",message:$i}],checks:i};let T=ip(u,l),R=ip(d,l),O=rp(v,l),L=new Set(k),Q=_.filter((K)=>(!K.key||v.length>0)&&hx(K.path,L));Q.push(...yx(o,v.length>0)),Q.sort((K,be)=>K.path<be.path?-1:K.path>be.path?1:0);let Pe=jr(o)===void 0;if(Pe){let K=yp(o,Q);if(K)return{errors:[K],checks:i}}let Ue=Q.map((K)=>({...K,value:{stateKey:K.pointerSource?"":K.text}})),Xe=Pe?bt(o,Ue):Ue.map((K)=>({located:K,value:K.value})),ue=new Map;for(let{value:K,located:be}of Xe){let ze=ue.get(be.path),Ge=String(K.stateKey);if(ze)ze.push(Ge);else ue.set(be.path,[Ge])}let ie=m.flatMap(({value:K,path:be})=>{let ze=Re(K.repeat),Ge=Re(ze?.items)?.path;return typeof ze?.as==="string"&&he(Ge)&&T(Ge,!1)?[{path:be,alias:ze.as}]:[]}),fe=Q.flatMap((K)=>{if(i>Nn)return[];let be=ue.get(K.path)??[K.text],ze=K.key?be.some((rt)=>O.key(rt)):!K.pointerSource&&be.some((rt)=>O.text(rt));if(K.key)return ze?[op(K.path)]:[];let Ge=ie.some((rt)=>K.path.startsWith(`${rt.path}.children[`)&&(K.itemBinding||!K.pointerSource&&Ti(K.text,rt.alias).length>0)),na=(rt,Df)=>(K.pointerSource?K.pointerSource===rt?[K.text]:[]:be.flatMap(rt==="data"?xr:$n)).some((Bf)=>Df(Bf,!K.pointerSource));return Ge||ze||na("data",T)||na("platform",R)?[op(K.path)]:[]});return{errors:i>Nn?[{path:"$",message:$i}]:fe,checks:i}}function op(o){return{path:o,message:o.startsWith("storage.keys[")?"Sensitive value cannot be persisted":"Sensitive value cannot be bound into a request"}}function ip(o,i){let l=()=>({children:new Map,terminal:!1,hasTaintBelow:!1}),u=l();for(let d of o){let m=u;m.hasTaintBelow=!0;for(let k of Nr(d)){let _=m.children.get(k);if(!_)_=l(),m.children.set(k,_);m=_,m.hasTaintBelow=!0}m.terminal=!0}return(d,m)=>{let k=Nr(d),_=(x,v)=>{if(!i())return!1;if(x.terminal||v===k.length)return x.hasTaintBelow;let T=k[v];if(m&&T==="{index}"){for(let L of x.children.values())if(_(L,v+1))return!0;return!1}let R=x.children.get(T),O=T==="{index}"?void 0:x.children.get("{index}");return!!(R&&_(R,v+1)||O&&_(O,v+1))};return _(u,0)}}function Nr(o){return o.slice(1).split("/")}function fie(o){return lp(o).map(({path:i,message:l})=>l===ap?`${i}: sensitive sink analysis stopped at the 4194304 expanded-byte budget at this path, so the sinks in this spec are unchecked and no sink findings are listed; this is a warning only and does not block the show.`:l===$i?`${i}: sensitive sink analysis stopped at the 4000000 copy-check limit, so the sinks in this spec are unchecked and no sink findings are listed; this is a warning only and does not block the show.`:`${i}: ${l}; this is a warning only and does not block the show.`)}var Nn=4000000;function ux(o,i,l,{stateTainted:u=[],maxChecks:d=Nn}={}){let m=new Set(o),k=new Set(u),_=[...o.map((O)=>({state:!1,at:O})),...u.map((O)=>({state:!0,at:O}))],x=(O)=>{let[L,Q]=O.intoState?[k,u]:[m,o];if(!L.has(O.into))L.add(O.into),Q.push(O.into),_.push({state:O.intoState===!0,at:O.into})},v=dx(l),T=0;for(let O of v.platform)if(T+=i.length,i.some((L)=>dp(L,O.from,!1)))x(O);let R=(O,L)=>(T+=O.length,O.filter((Q)=>{if(L(Q))return x(Q),!1;return!0}));for(let O=0;O<_.length;O+=1){let L=_[O];if((L.state?px:cx)(L.at,v,R),T>d)return}return T<=d?T:void 0}function dx(o){let i={platform:[],data:new Map,state:new Map,templatedState:[]},l=(u,d,m)=>{let k=u.get(d);if(k)k.push(m);else u.set(d,[m])};for(let u of o)if(u.source==="platform")i.platform.push(u);else if(u.source==="data")l(i.data,up(u.from),u);else if(u.from.includes("{"))i.templatedState.push(u);else l(i.state,u.from,u);return i}function cx(o,i,l){let u=up(o);for(let d of u==="{index}"?[...i.data.keys()]:[u])i.data.set(d,l(i.data.get(d)??[],(m)=>dp(o,m.from,!1)))}function px(o,i,l){let u=(d)=>Oi(o,d.from);for(let d of o.includes("{")?[...i.state.keys()]:[o]){let m=i.state.get(d);if(m)i.state.set(d,l(m,u))}i.templatedState=l(i.templatedState,u)}function up(o){return o.slice(1).split("/",1)[0]}function mx(o){return lp(o)[0]}function fx(o){let i=Re(Re(o)?.requires)?.platform;return Object.entries(yu).flatMap(([l,u])=>Object.entries(u.state??{}).flatMap(([d,m])=>m.sensitive&&Array.isArray(i)&&i.includes(l)?[`/${l}/${d}`]:[]))}function yx(o,i){let l=[],u=Re(Re(o)?.storage)?.keys;if(Array.isArray(u))u.forEach((d,m)=>{let k=$r(d);if(k?.kind==="data")l.push({text:k.pointer,path:`storage.keys[${m}]`,key:!1,pointerSource:"data"});else if(k?.kind==="state"&&i)l.push({text:k.key,path:`storage.keys[${m}]`,key:!0})});return l}function gx(o){let i=[];for(let l of md(o)){if(l.kind!=="call"||typeof l.action.into!=="string")continue;if(!FR(l.action.call)?.definition.sensitive)continue;let u=Us(l.action.into);if(u!==void 0)i.push(u)}return i}function dp(o,i,l){let u=Nr(o),d=Nr(i);return u.every((m,k)=>k>=d.length||m===d[k]||m==="{index}"||l&&d[k]==="{index}")}function cp(o){return o.filter(({value:i})=>i.type==="webView").map(({path:i})=>i)}function hx(o,i){for(let l=o.indexOf(".");l>=0;l=o.indexOf(".",l+1)){if(!i.has(o.slice(0,l)))continue;let u=o.slice(l+1);if(u==="url"||u==="body"||u.startsWith("body.")||u.startsWith("headers.")||u.startsWith("headers[")||u.startsWith("query.")||u.startsWith("query["))return!0}return!1}function yp(o,i){let l=new Map;for(let{located:d}of bt(o,i.map((m)=>({...m,value:{stateKey:"{index}"}}))))l.set(d.path,(l.get(d.path)??0)+1);let u=0;for(let d of i)if(u+=Buffer.byteLength(d.text,"utf8")*Math.max(1,l.get(d.path)??0),u>4194304)return{path:d.path,message:ap};return}function kx(o){let i=[];X(o,(R,O)=>i.push({value:R,path:O}));let l=new Set(bt(o,i.filter(({value:R})=>R.type==="textField"&&(R.secure===!0||R.keyboardType==="password")).map(({value:R,path:O})=>({value:{stateKey:R.stateKey},path:O}))).map(({value:R})=>R).map((R)=>String(R.stateKey)));if(!l.size)return;let{requests:u,fields:d}=bp(o,i);u.push(...cp(i));let m=Px(o,d);d.sort((R,O)=>R.path<O.path?-1:R.path>O.path?1:0);let k=(R)=>u.some((O)=>R===`${O}.url`||R.startsWith(`${O}.body.`)||["headers","query"].some((L)=>R.startsWith(`${O}.${L}.`)||R.startsWith(`${O}.${L}[`))),_=d.filter((R)=>R.key&&R.path.endsWith(".state")||k(R.path)||m.has(R.path)),x=yp(o,_);if(x)return x;let v=bt(o,_.map((R)=>({...R,value:{stateKey:R.text}})));for(let{value:R,located:O}of v){let L=String(R.stateKey);if(O.key?l.has(L):[...l].some((Q)=>L.includes(`{${Q}}`)))return{path:O.path,message:k(O.path)?"Secure value cannot be bound into a request":"Secure value cannot be bound into an action payload"}}let T=Re(Re(o)?.storage)?.keys;if(Array.isArray(T)){let R=T.findIndex((O)=>typeof O==="string"&&O.startsWith("state:")&&l.has(O.slice(6)));if(R>=0)return{path:`storage.keys[${R}]`,message:"Secure value cannot be persisted"}}return}function bx(o){let i=Re(Re(o)?.channels)??{};for(let l of Object.keys(i).sort())if(Re(i[l])?.via!=="device")return{path:`${ae.pathKey.test(l)?`channels.${l}`:`channels[${JSON.stringify(l)}]`}.via`,message:"Host requests are unavailable in a library"};return}class kp{destinations=new Map;stateDestinations=new Map;reads=new Map;stateReads=new Map;repeats;constructor(o){this.repeats=o.flatMap(({value:i,path:l})=>{let u=Re(i.repeat),d=Re(u?.items)?.path;return typeof u?.as==="string"&&he(d)?[{path:l,from:d,alias:u.as}]:[]})}visit(o,i,l){if(l==="dataPath"&&i.endsWith(".path")){let u=Us(o);if(u!==void 0)this.destinations.set(i.slice(0,-5),u)}if(l==="key"&&typeof o==="string")this.visitKey(o,i);if(l==="operand"&&i.endsWith(".value"))this.visitStateValue(o,i.slice(0,-6));if(l==="emitBinding"&&i.endsWith(".value"))this.visitDataValue(Re(o),i)}writes(){let o=(i,l,u)=>[...i].flatMap(([d,m])=>{let k=l.get(d);return k===void 0?[]:m.map((_)=>({into:k,..._,...u}))});return[...o(this.reads,this.destinations,{}),...o(this.stateReads,this.stateDestinations,{intoState:!0})]}visitDataValue(o,i){for(let l of["data","platform"]){let u=o?.[l];if(typeof u==="string")this.reads.set(i.slice(0,-6),[{source:l,from:u}])}if(typeof o?.item==="string"){let l=this.scopes(i);if(l.length>0)this.reads.set(i.slice(0,-6),l.map(({from:u})=>({source:"data",from:u})))}}visitKey(o,i){if(i.endsWith(".value.state"))this.reads.set(i.slice(0,-12),[{source:"state",from:o}]);else if(i.endsWith(".key"))this.stateDestinations.set(i.slice(0,-4),o)}visitStateValue(o,i){let l=Re(o)?.platform,u=typeof l==="string"?[{source:"platform",from:l}]:typeof o==="string"?[...xr(o).map((d)=>({source:"data",from:d})),...$n(o).map((d)=>({source:"platform",from:d})),...this.scopes(i).filter(({alias:d})=>Ti(o,d).length>0).map(({from:d})=>({source:"data",from:d}))]:[];if(u.length>0)this.stateReads.set(i,u)}scopes(o){return this.repeats.filter(({path:i})=>o.startsWith(`${i}.children[`))}}function bp(o,i,l=!1){let u=[],d=[],m=new kp(i),k=(_,x,v)=>{if(m.visit(_,x,v),v==="request")u.push(x);if(typeof _==="string"&&(v==="text"||v==="key"))d.push({text:_,path:x,key:v==="key"});let T=v==="emitBinding"?Re(_):void 0;if(l&&T&&!Object.hasOwn(T,"state")){for(let R of["data","platform"])if(typeof T[R]==="string")d.push({text:T[R],path:x,key:!1,pointerSource:R});if(typeof T.item==="string")d.push({text:"",path:x,key:!1,itemBinding:!0})}return _};for(let{value:_,path:x}of i)cr(_,x,k);return Ke(o,k),_x(o,u,d,k),{requests:u,fields:d,dataWrites:m.writes()}}function _x(o,i,l,u){for(let[d,m]of Object.entries(Re(Re(o)?.channels)??{})){let k=Re(m),_=ae.pathKey.test(d)?`channels.${d}`:`channels[${JSON.stringify(d)}]`;i.push(_),l.push({text:String(k.url),path:`${_}.url`,key:!1});for(let[x,v]of Object.entries(Re(k.headers)??{})){let T=ae.pathKey.test(x)?`${_}.headers.${x}`:`${_}.headers[${JSON.stringify(x)}]`;if(typeof v==="string")l.push({text:v,path:T,key:!1});else if(typeof Re(v)?.state==="string")l.push({text:String(Re(v).state),path:`${T}.state`,key:!0});else u(v,T,"emitBinding")}}}function xx(o,i){if(i.supportedCapabilities!==void 0&&i.requiredCapabilities!==void 0){let l=i.requiredCapabilities(o).filter((u)=>!i.supportedCapabilities?.includes(u));if(l.length)return{path:"$",message:`Unsupported capabilities: ${l.join(", ")}`}}return}function vx(o,i){if(i===void 0)return;let l=new Set(i);for(let u of md(o)){if(u.kind!=="call"||u.action.call!=="share.open")continue;let d=Jt(Re(u.action.args)??{},`${u.path}.args`,l);if(d)return d}return}function Px(o,i){let l=new Set;for(let u of md(o)){if(u.kind!=="call"||u.action.call!=="share.open")continue;for(let[d,m]of Object.entries(Re(u.action.args)??{}))Tx(m,`${u.path}.args.${d}`,i,l)}return l}function Tx(o,i,l,u){let d=Re(o);if(d&&Object.hasOwn(d,"value"))Ii(d.value,`${i}.value`,l,u);if(typeof d?.state==="string")l.push({text:d.state,path:`${i}.state`,key:!0})}function Ii(o,i,l,u){if(typeof o==="string")l.push({text:o,path:i,key:!1}),u.add(i);else if(Array.isArray(o))o.forEach((d,m)=>Ii(d,`${i}[${m}]`,l,u));else for(let[d,m]of Object.entries(Re(o)??{})){let k=ae.pathKey.test(d)?`${i}.${d}`:`${i}[${JSON.stringify(d)}]`;Ii(m,k,l,u)}}class _p{source;cursor=0;stack=[];constructor(o){this.source=o}scan(){while(this.cursor<this.source.length){let o=this.source[this.cursor++];switch(o){case'"':this.string();break;case"{":case"[":this.open(o);break;case"}":case"]":this.stack.pop();break;default:if(o==="-"||o>="0"&&o<="9")this.number()}}}open(o){if(this.stack.push(o==="{"?{keys:new Set}:{}),this.stack.length>128)throw Error("JSON nesting limit exceeded")}string(){let o=this.cursor-1;while(this.cursor<this.source.length){let l=this.source[this.cursor++];if(l==="\\")this.cursor++;else if(l==='"')break}let i=JSON.parse(this.source.slice(o,this.cursor));if(typeof i!=="string"||!i.isWellFormed())throw Error("Invalid Unicode JSON string");if(this.afterString()===":")this.key(i)}afterString(){let o=this.cursor;while(` \r
38
+ `.includes(this.source[o]??"\x00"))o++;return this.source[o]}key(o){let i=this.stack.at(-1)?.keys;if(i?.has(o))throw Error("Duplicate JSON key");i?.add(o)}number(){let o=this.cursor-1;while(this.cursor<this.source.length&&!` \r
39
+ ,]}:`.includes(this.source[this.cursor]))this.cursor++;if(!Number.isFinite(Number(this.source.slice(o,this.cursor))))throw Error("Nonfinite JSON number")}}function xp(o){let i=o.startsWith("\uFEFF")?o.slice(1):o;return new _p(i).scan(),JSON.parse(i)}var vp=V.definitions.check.fields.pattern.rule.max,Ci=V.limits.MAX_PROTOTYPE_CHECK_QUANTIFIER_BOUND,Pp=V.limits.MAX_PROTOTYPE_CHECK_VARIABLE_QUANTIFIERS,Ex="^$\\.*+?()[]{}|/-";class Tp{source;cursor=0;error;variableQuantifiers=0;variable=!1;constructor(o){this.source=o}parse(){if(this.source.length>vp)return{ok:!1,message:`Pattern exceeds ${vp} characters`};return this.body(!1),this.error?{ok:!1,message:this.error}:{ok:!0}}fail(o){this.error??=o}body(o){let i={variable:!1,alternation:!1};while(this.cursor<this.source.length&&!this.error){let l=this.source[this.cursor];if(l===")"){if(!o)this.fail("Unmatched closing group");else this.cursor++;return i}if(l==="|"){i.alternation=!0,this.cursor++;continue}this.bodyAtom(i,l)}if(o&&!this.error)this.fail("Unclosed group");return i}bodyAtom(o,i){let l=this.atom(),u=this.quantifier(),d=u!==void 0&&u>1;if(u!==void 0&&(i==="^"||i==="$"))this.fail("Anchor cannot be quantified");if(d&&this.unsafeBody(l))this.fail("Repeated group contains repetition or alternation");this.mergeBody(o,l,this.variable)}mergeBody(o,i,l){o.variable||=l||i?.variable===!0,o.alternation||=i?.alternation===!0}unsafeBody(o){return o!==void 0&&(o.variable||o.alternation)}atom(){let o=this.source[this.cursor++];if(o==="\\")this.escape();else if(o==="[")this.characterClass();else if(o==="("){if(this.source[this.cursor]==="?")if(this.source.startsWith("?:",this.cursor))this.cursor+=2;else{this.fail(this.groupError());return}return this.body(!0)}else if("*+?{}]".includes(o))this.fail("Unexpected metacharacter or quantifier");return}groupError(){let o=this.source.slice(this.cursor);if(o.startsWith("?=")||o.startsWith("?!"))return"Lookahead is not supported";if(o.startsWith("?<=")||o.startsWith("?<!"))return"Lookbehind is not supported";if(o.startsWith("?<"))return"Named groups are not supported";return"Inline flags or unsupported group syntax"}escape(){let o=this.source[this.cursor++];if(!o){this.fail("Trailing escape");return}if(/[0-9]/.test(o)||o==="k")this.fail("Backreferences are not supported");else if(o==="p"||o==="P")this.fail("Unicode property classes are not supported");else if(o==="b"||o==="B")this.fail("Word boundaries are not supported");else if(!"dwsDWS".includes(o)&&!Ex.includes(o))this.fail(`Unsupported escape \\${o}`);return"dwsDWS".includes(o)?void 0:o}classAtom(){let o=this.source[this.cursor++];if(o==="\\")return this.escape();let i=this.source.codePointAt(this.cursor-1);if(i!==void 0&&i>65535)return this.cursor++,String.fromCodePoint(i);return o}characterClass(){if(this.source[this.cursor]==="^")this.cursor++;let o=0;while(this.cursor<this.source.length&&this.source[this.cursor]!=="]"&&!this.error){let i=this.classAtom();if(o++,this.source[this.cursor]==="-"&&this.source[this.cursor+1]!=="]"){this.cursor++;let l=this.classAtom();if(!i||!l)this.fail("Character class range requires literal endpoints");else if(i.codePointAt(0)>l.codePointAt(0))this.fail("Character class range is reversed")}}if(this.source[this.cursor]!=="]")this.fail("Unclosed character class");else this.cursor++;if(!o)this.fail("Empty character class is not supported")}quantifier(){let o=this.source[this.cursor];this.variable=!1;let i;if(o==="?"||o==="*"||o==="+")this.cursor++,i=o==="?"?1:1/0,this.variable=!0;else if(o==="{")i=this.boundedQuantifier();if(this.countVariableQuantifier(),i!==void 0){let l=this.source[this.cursor];if(l==="?")this.fail("Lazy quantifiers are not supported");else if(l==="+")this.fail("Possessive quantifiers are not supported");else if(l==="*"||l==="{")this.fail("Repeated quantifier is not supported")}return i}countVariableQuantifier(){if(this.variable&&++this.variableQuantifiers>Pp)this.fail(`pattern has too many variable quantifiers (max ${Pp})`)}boundedQuantifier(){let o=/^\{([0-9]+)(?:,([0-9]*))?\}/.exec(this.source.slice(this.cursor));if(!o){this.fail("Malformed bounded quantifier");return}let i=Number(o[1]),l=o[2]===void 0?i:o[2]===""?1/0:Number(o[2]);if(i>Ci||l!==1/0&&l>Ci)this.fail(`Quantifier bounds must be <=${Ci}`);else if(i>l)this.fail("Quantifier minimum exceeds maximum");return this.variable=l>i,this.cursor+=o[0].length,l}}function Ep(o){return new Tp(o).parse()}var Lr=(o,i)=>({path:o,message:i}),Sx=V.checkControls;function wx(o,i){return Sx[o]?.includes(String(i))??!0}function Ax(o,i){let l=Array.isArray(o.checks)?o.checks.map((u)=>c(u)??{}):[];for(let[u,d]of l.entries()){let m=Object.keys(d).find((_)=>_!=="message")??"",k=`${i}.checks[${u}].${m}`;if(!wx(m,o.type))return Lr(k,`Check ${m} does not fit ${o.type}`);if(typeof d.pattern==="string"){let _=Ep(d.pattern);if(!_.ok)return Lr(k,_.message)}}for(let[u,d]of[["min","max"],["minLength","maxLength"]]){let m=l.map((_)=>_[u]).filter((_)=>typeof _==="number"),k=l.map((_)=>_[d]).filter((_)=>typeof _==="number");if(m.length&&k.length&&Math.max(...m)>Math.min(...k)){let _=l.findIndex((x)=>x[d]===Math.min(...k));return Lr(`${i}.checks[${_}].${d}`,`${u} exceeds ${d}`)}}return}function Sp(o,i,l){return(Array.isArray(o)?o:[o]).some((d)=>typeof d!=="string"||!l.has(d))?Lr(i,"Validity key must be declared state with at least one check"):void 0}function en(o,i,l){let u=c(o);if(!u)return;if(u.valid!==void 0)return Sp(u.valid,i,l);if(u.not!==void 0)return en(u.not,`${i}.not`,l);for(let d of["all","any"]){let m=u[d];if(!Array.isArray(m))continue;for(let[k,_]of m.entries()){let x=en(_,`${i}.${d}[${k}]`,l);if(x)return x}}return}function Rx(o,i){let l=new Set;for(let{value:u}of o){if(!Array.isArray(u.checks)||!u.checks.length)continue;for(let d of[u.stateKey,u.hourKey,u.minuteKey])if(typeof d==="string"&&Object.hasOwn(i,d))l.add(d)}return l}function Ox(o,i,l){let u=en(o.errorWhen,`${i}.errorWhen`,l)??en(o.visibleWhen,`${i}.visibleWhen`,l)??en(o.enabledWhen,`${i}.enabledWhen`,l);if(u)return u;let d=Array.isArray(o.styleWhen)?o.styleWhen:[];for(let[m,k]of d.entries()){let _=en(c(k)?.when,`${i}.styleWhen[${m}].when`,l);if(_)return _}return}function wp(o,i,l){let u=Rx(o,l);for(let{value:d,path:m}of o){let k=Ax(d,m)??Ox(d,m,u);if(k)return k}for(let{value:d,path:m}of i){if(d.requireValid===void 0)continue;let k=Sp(d.requireValid,m,u);if(k)return k}return}var qr=(o)=>o.axis??"vertical";function $x(o,i){let{value:l,path:u}=o;if(i.some((d)=>d.value.type==="list"))return{path:u,message:"A list cannot sit inside another list"};if(i.some((d)=>d.value.repeat!==void 0&&u.startsWith(`${d.path}.children[`)))return{path:u,message:"A list cannot sit inside a repeat template"};if(i.some((d)=>d.value.type==="scroll"&&qr(d.value)===qr(l)))return{path:u,message:"A list cannot sit inside a scroll on the same axis"};return}function Ix({value:o,path:i}){if(o.endThreshold!==void 0&&o.onEndReached===void 0)return{path:`${i}.endThreshold`,message:"endThreshold needs onEndReached"};let l=typeof o.endThreshold==="number"?o.endThreshold:3;if(o.onEndReached!==void 0&&typeof o.maxItems==="number"&&o.maxItems<=l)return{path:`${i}.maxItems`,message:"maxItems must be greater than endThreshold"};return}function Ap(o){let i=o.filter(({value:l})=>l.type==="list"||l.type==="scroll"||l.repeat!==void 0);for(let l of o){let{value:u,path:d}=l;if(u.type!=="list"&&u.type!=="scroll")continue;let m=i.filter((_)=>d.startsWith(`${_.path}.`)),k=u.type==="list"?$x(l,m)??Ix(l):Cx(l,m);if(k)return k}return}function Cx(o,i){return i.some((u)=>u.value.type==="list"&&qr(u.value)===qr(o.value))?{path:o.path,message:"A scroll cannot sit inside a list on the same axis"}:void 0}function Rp(o){let i;return X(o,(l,u)=>{let d=c(c(l.repeat)?.items)?.path;if(l.type!=="list"||typeof d!=="string")return;let m=Pt(c(o)?.data,d);if(Array.isArray(m)&&m.length>V.limits.MAX_PROTOTYPE_LIST_ITEMS)i??={path:`${u}.repeat.items.path`,message:`Repeat path resolves to more than ${V.limits.MAX_PROTOTYPE_LIST_ITEMS} items`}}),i}function EY(o){let i=[],l=(u,d,m)=>{if(m==="prependData")i.push(d);if(m==="request"&&Object.hasOwn(c(u)??{},"append"))i.push(`${d}.append`);return u};return X(o,(u,d)=>{if(u.type==="list")i.push(d);cr(u,d,l)}),Ke(o,l),i}function hie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${gj}, so it cannot run the lazy list feature at ${o[0]}${d}. Nothing was shown. ${u}, or use a plain scroll without request.append or prependData.`}var gie=(o)=>[...vl(o,"timer"),...Mx(o)];function Mx(o){let i=[];return X(o,(l,u)=>{if(l.onAppear!==void 0)i.push(`${u}.onAppear`)}),i}function Op(o){let i=new Set;for(let{value:l,path:u}of o){if(l.type!=="startTimer")continue;if(l.maxRuns!==void 0&&l.everyMs===void 0)return{path:`${u}.maxRuns`,message:"maxRuns requires everyMs"};if(typeof l.id==="string")i.add(l.id);if(i.size>V.limits.MAX_PROTOTYPE_TIMERS)return{path:`${u}.id`,message:"Too many distinct timer ids"}}return}function Mi(o){let i=[],l=(u,d,m)=>{let k=c(u);if(m==="timer"&&k)i.push({value:k,path:d});return u};return X(o,(u,d)=>{cr(u,d,l)}),Ke(o,l),i}function Gj(o){let i=Mi(o),l=new Set(i.filter(({value:u})=>u.type==="startTimer").map(({value:u})=>u.id));return i.filter(({value:u})=>u.type==="cancelTimer"&&!l.has(u.id)).map(({value:u,path:d})=>`${d}: cancelTimer id ${JSON.stringify(u.id)} has no matching startTimer; cancelling it is a no-op.`)}function $R(o,i){let l=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version";return`The connected device does not advertise ${ud} required at ${o[0]??"simulate"}. Nothing was sent. ${l}, or remove timers.`}function yie(o,i){if(o==="advance_prototype_clock"&&i(ud)!==!0)throw new t($R([],"android"))}var jx=new Set(["zero","one","two","few","many","other"]),Ip=new Set(Nu),zr=new Set(ju),xe=(o,i)=>({path:o,message:i});function Dr(o){let i=c(o);if(!i)return xe("strings","Expected string tables");if(!Object.hasOwn(i,"default"))return xe("strings","Missing default string table");if(Object.keys(i).length>gu.MAX_PROTOTYPE_STRING_LOCALES)return xe("strings","String locale limit exceeded");let l=new Set;for(let[u,d]of Object.entries(i)){let m=`strings.${u}`;if(u!=="default"&&!ae.localeTag.test(u))return xe(m,"Invalid locale tag");let k=u.toLowerCase().replaceAll("_","-");if(l.has(k))return xe(m,"Duplicate locale tag");l.add(k);let _=qx(d,m);if(_)return _}return}function Nx(o,i,l){if(typeof o!=="string"||o.length===0||o.length>gu.MAX_PROTOTYPE_STRING_LENGTH)return xe(l,"Invalid translation string");if(["{t:","{data:","{platform:"].some((u)=>o.includes(u))||!i&&o.includes("{#}"))return xe(l,"Forbidden translation placeholder");return}function Lx(o,i){let l=c(o);if(typeof o!=="string"&&(!l||!Object.hasOwn(l,"other")||Object.keys(l).some((u)=>!jx.has(u))))return xe(i,"Invalid plural object");for(let u of l?Object.values(l):[o]){let d=Nx(u,l!==void 0,i);if(d)return d}return}function qx(o,i){let l=c(o);if(!l)return xe(i,"Expected string table");if(Object.keys(l).length>gu.MAX_PROTOTYPE_STRING_KEYS)return xe(i,"String key limit exceeded");for(let[u,d]of Object.entries(l)){let m=`${i}.${u}`;if(!ae.stringKey.test(u))return xe(m,"Invalid string key");let k=Lx(d,m);if(k)return k}return}function ji(o,i=!0){let l=[],u=0;while((u=o.indexOf("{t:",u))!==-1){let d=/^\{t:([A-Za-z_][A-Za-z0-9_.-]{0,63})(?:\|(\{data:[^{}]+\}|[^{}]*))?\}/.exec(o.slice(u));if(!d||d[2]?.startsWith("{data:")&&!he(d[2].slice(6,-1)))return;if(i&&d[2]!==void 0&&!d[2].startsWith("{data:")&&!/^[0-9]{1,9}$/.test(d[2]))return;l.push({start:u,end:u+d[0].length,key:d[1],count:d[2]}),u+=d[0].length}return l}function Ni(o){let i=[];function l(u,d,m=""){if(Array.isArray(u)){u.forEach((_,x)=>l(_,`${d}[${x}]`,m));return}let k=c(u);if(!k)return;for(let[_,x]of Object.entries(k)){if(Ip.has(_)||["child","children","screens"].includes(_))continue;let v=`${d}.${_}`;if(typeof x==="string"&&(zr.has(_)||zr.has(`${m}.${_}`)||_==="contentDescription"))i.push({path:v,text:x,contentDescription:_==="contentDescription"});else l(x,v,_)}}return X(o,(u,d)=>l(u,d)),i}function Cp(o,i){let l=c(c(o)?.strings),u=c(l?.default);for(let{value:d,path:m}of i){let k=c(d.semantics);if(k&&Object.keys(k).length===0)return xe(`${m}.semantics`,"Expected at least one semantics field");if(k?.label!==void 0&&d.contentDescription!==void 0)return xe(`${m}.semantics.label`,"semantics.label conflicts with contentDescription")}for(let d of Ni(o)){if(!d.text.includes("{t:"))continue;let m=zx(d,l,u);if(m)return m}return}function zx(o,i,l){if(o.contentDescription)return xe(o.path,"Use semantics.label for string placeholders");if(!i)return xe(o.path,"String placeholders require strings");let u=ji(o.text);if(!u)return xe(o.path,"Invalid string placeholder");for(let d of u){if(!l||!Object.hasOwn(l,d.key))return xe(o.path,`Unknown string key "${d.key}"`);if(typeof l[d.key]!=="string"&&d.count===void 0)return xe(o.path,`String "${d.key}" is plural: write {t:${d.key}|count}`)}return}function Mp(o){let i=new Set;for(let l of o){let u=l.toLowerCase().replaceAll("_","-").split("-");while(u.length){let d=u.join("-");if(d!=="default")i.add(d);u.pop()}}return[...i,"default"]}function jp(o,i){if(!Number.isSafeInteger(i)||i<0)return"other";let l=o.toLowerCase().split(/[-_]/)[0];if("ja zh ko vi th id ms lo km my".split(" ").includes(l))return"other";if("fr pt hi bn fa gu kn am".split(" ").includes(l))return i<=1?"one":"other";if(["ru","uk","be","pl"].includes(l))return Bx(l,i);if(["cs","sk"].includes(l))return Dx(i);if(l==="ar")return Yx(i);return i===1?"one":"other"}function Dx(o){return o===1?"one":o>=2&&o<=4?"few":"other"}function Bx(o,i){let l=i%10,u=i%100;if(o==="pl"?i===1:l===1&&u!==11)return"one";return l>=2&&l<=4&&!(u>=12&&u<=14)?"few":"many"}function Yx(o){let i=o%100;if(o<=2)return["zero","one","two"][o];if(i>=3&&i<=10)return"few";return i>=11&&i<=99?"many":"other"}var $p=/^[0-9]{1,9}$/,Kx=999999999;function Fx(o,i){if(o?.startsWith("{data:")){let l=Pt(i,o.slice(6,-1));if(typeof l==="number")return Number.isInteger(l)&&l>=0&&l<=Kx?l:void 0;return typeof l==="string"&&$p.test(l)?Number(l):void 0}return o!==void 0&&$p.test(o)?Number(o):void 0}function Vx(o,i,l,u){let d=u===void 0?"other":jp(l,u),m=typeof o==="string"?o:o?.[d]??o?.other??i;return u===void 0?m:m.replaceAll("{#}",String(u))}function Wx(o,i,l,u){let d=ji(l,!1);if(!d)return l;let m=new Map(Object.entries(o).map(([v,T])=>[v.toLowerCase().replaceAll("_","-"),T])),k=Mp(i),_="",x=0;for(let v of d){let T=k.find((Pe)=>Object.hasOwn(m.get(Pe)??{},v.key)),R=T?m.get(T)?.[v.key]:void 0,O=Fx(v.count,u),L=T==="default"?i[0]??"en":T??"en",Q=Vx(R,v.key,L,O);_+=l.slice(x,v.start)+Q,x=v.end}return _+l.slice(x)}function vie(o,i){let l=c(o),u=l?.strings;if(!u)return o;function d(m,k=""){if(Array.isArray(m))return m.map((x)=>d(x,k));let _=c(m);if(!_)return m;return Object.fromEntries(Object.entries(_).map(([x,v])=>[x,Ip.has(x)?v:typeof v==="string"&&(zr.has(x)||zr.has(`${k}.${x}`))?Wx(u,i,v,l?.data):d(v,x)]))}return d(o)}function bie(o){return[...c(o)?.strings!==void 0?["strings"]:[],...Ni(o).filter(({text:i})=>i.includes("{t:")).map(({path:i})=>i)]}function Sie(o){let i=[];return X(o,(l,u)=>{if(l.semantics!==void 0)i.push(`${u}.semantics`)}),i}function Np(o,i,l){let u=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",d=i==="ios"?"Relaunch the app with launchApp prototype: true":"Update the connected CtrlProxy";return`The ${u} does not advertise ${l}, so it cannot evaluate ${o[0]}${o.length>1?` (and ${o.length-1} more)`:""}. Nothing was shown. ${d}, or remove the unsupported fields.`}var wie=(o,i)=>Np(o,i,Bj),Rie=(o,i)=>Np(o,i,$j);function Pie(o){return[...new Set([...Array.from({length:121},(i,l)=>jp(o,l)),"other"])]}function Aie(o,i){let l=c(c(o)?.strings);if(!l)return[];let u=new Map(Object.entries(l).map(([k,_])=>[k.toLowerCase().replaceAll("_","-"),c(_)])),d=Mp([i]).filter((k)=>k!=="default"),m=Ni(o).flatMap(({text:k})=>(ji(k)??[]).map((_)=>_.key));return[...new Set(m)].filter((k)=>!d.some((_)=>Object.hasOwn(u.get(_)??{},k)))}var Lp=new Set(["child","children","screens","payload","repeat","data"]);function Li(o,i,l){if(Array.isArray(o)){o.forEach((d,m)=>Li(d,`${i}[${m}]`,l));return}let u=c(o);if(!u)return;for(let[d,m]of Object.entries(u))if(d==="empty"||d==="shimmer")l.push(`${i}.${d}`);else if(!Lp.has(d))Li(m,`${i}.${d}`,l)}var Zx=new Set(["box","row","column","card"]);function qp(o){for(let{value:i,path:l}of o){if(Zx.has(String(i.type)))continue;let u=Array.isArray(i.styleWhen)?i.styleWhen:[],m=[{style:i.style,at:`${l}.style`},...u.map((k,_)=>({style:c(k)?.style,at:`${l}.styleWhen[${_}].style`}))].find(({style:k})=>c(k)?.shimmer!==void 0);if(m)return{path:`${m.at}.shimmer`,message:"shimmer applies only to box, row, column and card"}}return}function Tie(o){let i=[];return X(o,(l,u)=>{for(let[d,m]of Object.entries(l))if(!Lp.has(d))Li(m,`${u}.${d}`,i)}),i}function kie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${dj}, so it cannot evaluate ${o[0]}${d}. Nothing was shown. ${u}, or use a statusKey condition and a plain placeholder.`}function Ux(o,i){if(o.variant!=="ring")return;if(Array.isArray(o.series)&&o.series.length!==1)return{path:`${i}.series`,message:"A ring chart takes exactly one series"};if(typeof o.goal!=="number")return{path:`${i}.goal`,message:"A ring chart needs a goal"};return o.goal>0?void 0:{path:`${i}.goal`,message:"A ring chart goal must be positive"}}function Xx(o,i){let l=c(o.yRange);return l&&typeof l.min==="number"&&typeof l.max==="number"?l.max>l.min?void 0:{path:`${i}.yRange.max`,message:"Chart yRange max must be above min"}:void 0}function Gx(o,i,l){let u=o.path;if(typeof u!=="string"||u.includes("{"))return;let d=Pt(l,u);if(!Array.isArray(d))return{path:`${i}.path`,message:"Chart series path does not resolve to an array"};for(let[m,k]of d.entries()){let _=c(k);if(!_)return{path:`${i}.path`,message:`Chart series point ${m} is not an object`};let x=typeof o.y==="string"&&Object.hasOwn(_,o.y)?_[o.y]:void 0;if(typeof x!=="number"||!Number.isFinite(x))return{path:`${i}.y`,message:`Chart series point ${m} y is not a number`}}return}function zp(o,i){for(let{value:l,path:u}of o){if(l.type!=="chart")continue;let d=Ux(l,u)??Xx(l,u);if(d)return d;let m=Array.isArray(l.series)?l.series:[];for(let[k,_]of m.entries()){let x=`${u}.series[${k}]`,v=Gx(c(_)??{},x,i);if(v)return v}}return}function Eie(o){let i=[];return X(o,(l,u)=>{if(l.type==="chart")i.push(u)}),i}function Iie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${yj}, so it cannot render the chart at ${o[0]}${d}. Nothing was shown. ${u}, or show the values as text.`}var Hx=30,Jx=100,Qx=/^https?:\/\/[^\s/?#]+([/?#]\S*)?$/u,ev=new Set([".",",",";",":","!","?","'",'"',")","]","}"]),tv=new Set([9,10,11,12,13,32,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279]),nv=/^[\p{L}\p{M}0-9_]$/u,Dp=(o,i)=>tv.has(o.charCodeAt(i)),rv=(o)=>o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95;function ov(o,i){let l=i+1;while(l<o.length&&rv(o.charCodeAt(l)))l++;let u=l-i-1;return u>=1&&u<=Hx?l:void 0}function iv(o,i){let l=i+1,u=!0;while(l<o.length){let m=String.fromCodePoint(o.codePointAt(l));if(!nv.test(m))break;u&&=m>="0"&&m<="9",l+=m.length}let d=l-i-1;return d>=1&&d<=Jx&&!u?l:void 0}function av(o,i){if(!o.startsWith("http://",i)&&!o.startsWith("https://",i))return;let l=i;while(l<o.length&&!Dp(o,l))l++;while(l>i&&ev.has(o[l-1]))l--;return Qx.test(o.slice(i,l))?l:void 0}var sv={mention:{sigil:"@",end:ov},hashtag:{sigil:"#",end:iv},url:{end:av}};function a$(o,i){let l=[],u=0;while(u<o.length){let d=u===0||Dp(o,u-1)?i.map((m)=>{let k=sv[m],_=k.sigil===void 0||o[u]===k.sigil?k.end(o,u):void 0;return _===void 0?void 0:{kind:m,end:_}}).find((m)=>m!==void 0):void 0;if(d)l.push({kind:d.kind,text:o.slice(u,d.end),start:u,end:d.end}),u=d.end;else u++}return l}var lv=(o)=>Object.keys(o).length===1&&Object.hasOwn(o,"value");function uv(o,i,l){for(let[u,d]of o.entries()){let m=l(d,`${i}[${u}]`);if(m)return m}return}function dv(o,i,l){let u=i==="screens"?c(o.screens):void 0;if(u)return Object.keys(u).sort().map((d)=>Br(u[d],`${l}.screens[${JSON.stringify(d)}]`)).find((d)=>d!==void 0);return["linkify","payload","repeat"].includes(i)?void 0:Br(o[i],`${l}.${i}`)}function Br(o,i){if(Array.isArray(o))return uv(o,i,Br);let l=c(o);if(!l||lv(l))return;if(Object.keys(l).length===1&&typeof l.match==="string")return`${i}.match`;return Object.keys(l).sort().map((u)=>dv(l,u,i)).find((u)=>u!==void 0)}function cv(o,i){if(!c(o.linkify))return;if(o.spans!==void 0)return{path:`${i}.linkify`,message:"linkify applies to text, not spans"};return}function Yr(o,i,l){if(Array.isArray(o)){o.forEach((d,m)=>Yr(d,`${i}[${m}]`,l));return}let u=c(o);if(!u)return;if(typeof u.type==="string")l(u,i);for(let d of or(u))Yr(d.value,`${i}${d.suffix}`,l)}function Bp(o){let i=c(o);if(!i)return;let l;if(Yr(i.root,"root",(d,m)=>{l??=cv(d,m)}),l)return l;let u=Br(i.root,"root");return u?{path:u,message:"{match} is only available inside linkify.onTap"}:void 0}function _ie(o){let i=[];for(let{node:l,path:u}of Mr(o))Yr(l,u,(d,m)=>{if(d.type==="text"&&d.linkify!==void 0)i.push(`${m}.linkify`)});return i}function xie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${Dj}, so it cannot linkify the text at ${o[0]}${d}. Nothing was shown. ${u}, or use static spans instead.`}function Cie(o){let i=[];return X(o,(l,u)=>{if(l.type==="tooltip")i.push(u)}),i}function Die(o,i){let l=o.length>1?` (and ${o.length-1} more)`:"",u=i==="android"?"connected CtrlProxy":"connected iOS prototype agent",d=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version";return`The ${u} does not advertise ${Fj}, so it cannot draw the tooltip node at ${o[0]}${l}. Nothing was shown. ${d}, or remove tooltip nodes.`}function pv(o,i){let l=o.flatMap(({value:d,path:m})=>{let k=c(d.repeat);if(!k)return[];let _=k.items,x=c(_)?.path,v=Array.isArray(_)?_.length:typeof x==="string"?i.items(x).length:0;return[{prefix:`${m}.children[`,count:v}]}),u=new Map;for(let{value:d,path:m}of o){if(typeof d.id!=="string")continue;let k=l.find((_)=>m.startsWith(_.prefix))?.count??1;u.set(d.id,(u.get(d.id)??0)+k)}return u}function Yp(o,i){let l=o.filter(({value:d})=>d.type==="tooltip"&&typeof d.anchorTo==="string");if(l.length===0)return;let u=pv(o,i);for(let{value:d,path:m}of l){if(typeof d.anchorTo!=="string")continue;let k=u.get(d.anchorTo)??0;if(k!==1||d.anchorTo===d.id)return{path:`${m}.anchorTo`,message:`${k>1?"Duplicate":"Unknown"} anchorTo id ${JSON.stringify(d.anchorTo)}`}}return}var mv=["reverse","stickToEnd","atEndKey","onStartReached"],Kp=(o)=>mv.find((i)=>o[i]!==void 0);function fv(o,i){for(let{value:l,path:u}of o){if(l.type!=="scrollTo"||typeof l.scroll!=="string")continue;let d=i.get(l.scroll)??0;if(d!==1)return{path:`${u}.scroll`,message:d===0?"Unknown scroll id":"Duplicate scroll id"}}return}function Fp(o,i){let l=new Map;for(let{value:u,path:d}of o){if(u.type!=="scroll")continue;let m=Kp(u);if(m!==void 0&&u.axis==="horizontal")return{path:`${d}.${m}`,message:"Chat scroll options need a vertical scroll"};if(typeof u.id==="string")l.set(u.id,(l.get(u.id)??0)+1)}return fv(i,l)}function Oie(o){let i=[];return X(o,(l,u)=>{let d=l.type==="scroll"?Kp(l):void 0;if(d!==void 0)i.push(`${u}.${d}`)}),[...i,...vl(o,"scrollTo")]}function Mie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy",d=o.length>1?` (and ${o.length-1} more)`:"";return`The ${l} does not advertise ${vj}, so it cannot run the chat scroll at ${o[0]}${d}. Nothing was shown. ${u}, or use a plain scroll.`}function Vp(o){return Buffer.byteLength(JSON.stringify(o),"utf8")}function Ln(o,i=0){if(i>V.limits.MAX_PROTOTYPE_EMIT_PAYLOAD_DEPTH)return 1/0;if(o===null)return 4;if(typeof o==="number")return Number.isFinite(o)?32:1/0;if(typeof o==="string"||typeof o==="boolean")return Vp(o);if(Array.isArray(o))return 2+Math.max(0,o.length-1)+o.reduce((d,m)=>d+Ln(m,i+1),0);let l=Re(o);if(!l)return 1/0;let u=Object.entries(l);return 2+Math.max(0,u.length-1)+u.reduce((d,[m,k])=>d+Vp(m)+1+Ln(k,i+1),0)}function qi(o,i,l){return o.nodes.some(({value:u,path:d})=>u.type==="scroll"&&u.axis==="horizontal"===l&&i.startsWith(`${d}.`))}function Wp(o,i,l){if(o.type==="carousel"&&qi(l,i,!0))return w(i,"A carousel cannot appear inside a horizontal scroll");if(o.type==="pager"&&o.axis!=="vertical"&&qi(l,i,!0))return w(i,"A horizontal pager cannot appear inside a horizontal scroll");return}function Zp(o,i,l,u){if(o.type!=="pager"||typeof o.id!=="string")return;if(u.has(o.id))return w(`${i}.id`,"Duplicate pager id");return u.add(o.id),o.axis==="vertical"&&qi(l,i,!1)?w(`${i}.axis`,"A vertical pager cannot appear inside a vertical scroll"):void 0}function Up(o){let i=new Set;for(let{value:l,path:u}of o.nodes){if(l.type!=="pager"||typeof l.stateKey!=="string")continue;if(o.nodes.some((d)=>d.value.repeat!==void 0&&u.startsWith(`${d.path}.`)))return w(`${u}.stateKey`,"Pager stateKey cannot appear inside repeat");if(i.has(l.stateKey))return w(`${u}.stateKey`,"Two pagers cannot bind the same state key");i.add(l.stateKey)}return}var tn=V.definitions;function Ie(o,i){if(ae.pathKey.test(i))return o?`${o}.${i}`:i;return`${o||"$"}[${JSON.stringify(i)}]`}function yv(o){return Buffer.byteLength(JSON.stringify(o),"utf8")}function Di(o){return tn[o.name??""]??o}var gv=Object.assign(Object.create(null),{container:{limit:V.limits.MAX_PROTOTYPE_SELECTOR_DEPTH,message:"Selector depth limit exceeded"},condition:{limit:V.limits.MAX_PROTOTYPE_CONDITION_DEPTH,message:"Condition depth limit exceeded"},action:{limit:V.limits.MAX_PROTOTYPE_ACTION_DEPTH,message:"Action nesting limit exceeded"}});function hv(o,i,l,{context:u,depth:d}){if(i.name==="iconName"&&(typeof o!=="string"||!xg.has(o)))return w(l,Tr(o));let m=gv[String(i.name)];if(m)return _v(o,i,l,{context:u,depth:d,nested:m});let k=i.name==="item"?Mn(Re(o)?.image):0;if(k>0){if(u.images+=k,u.images>V.limits.MAX_PROTOTYPE_IMAGES)return w(`${l}.image`,"Image limit exceeded")}return i.name==="node"?kv(o,i,l,{context:u,depth:d}):De(o,Di(i),l,{context:u,depth:d})}function kv(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");if(m.onAppear!==void 0&&l!=="root"&&m.visibleWhen===void 0)return w(`${l}.onAppear`,"onAppear requires visibleWhen or the root");if(u.nodes.push({value:m,path:l}),u.nodes.length>V.limits.MAX_PROTOTYPE_NODES)return w(l,"Node limit exceeded");if(d+1>V.limits.MAX_PROTOTYPE_DEPTH)return w(l,"Tree depth limit exceeded");let k=bv(m,l,u);if(k)return k;return De(o,Di(i),l,{context:u,depth:d+1})}function bv(o,i,l){if(l.images+=Ri(o),l.images>V.limits.MAX_PROTOTYPE_IMAGES)return w(i,"Image limit exceeded");let u=Ir(o,l,V.limits,i);if(u)return w(u.path,u.message);let d=Cr(o);if(l.effects+=d.total,l.animatedEffects+=d.animated,l.effects>V.limits.MAX_PROTOTYPE_EFFECTS)return w(i,"Effect limit exceeded");return l.animatedEffects>V.limits.MAX_PROTOTYPE_ANIMATED_EFFECTS?w(i,"Animated effect limit exceeded"):void 0}function _v(o,i,l,{context:u,depth:d,nested:m}){let k=i.name??"";if(++u.nesting[k]>m.limit)return w(l,m.message);let _=De(o,Di(i),l,{context:u,depth:d});return u.nesting[k]--,_}function xv(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");let k=typeof m.type==="string"&&i.variants&&Object.hasOwn(i.variants,m.type)?i.variants[m.type]:void 0;if(!k)return w(Ie(l,"type"),"Unknown or missing discriminator");if(i===tn.action)u.actions.push({value:m,path:l});return De(m,k,l,{context:u,depth:d})}function vv(o,i,l){if(i===tn.node.variants?.text){let u=Object.hasOwn(o,"text"),d=Object.hasOwn(o,"spans");if(u===d)return w(Ie(l,d?"spans":"text"),d?"text and spans cannot both be set":"text node needs text or spans");if(Array.isArray(o.spans)&&o.spans.length>V.limits.MAX_PROTOTYPE_TEXT_SPANS)return w(Ie(l,"spans"),"Text span limit exceeded")}return}function Pv(o,i){if(o.type==="searchBar"&&Object.hasOwn(o,"child")&&!Object.hasOwn(o,"activeKey"))return w(Ie(i,"child"),"Search bar child requires activeKey");return}function Tv(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");let k=vv(m,i,l);if(k)return k;let _=i.fields??{},x=Pv(m,l)??nm(m,l);if(x)return x;let v=[...new Set([...Object.keys(m),...Object.keys(_)])].sort();for(let T of v){let R=Object.hasOwn(_,T)?_[T]:void 0,O=Ie(l,T);if(!R)return w(O,"Unknown property");if(!Object.hasOwn(m,T)){if(!R.optional)return w(O,"Required property");continue}let L=De(m[T],R.rule,O,{context:u,depth:d});if(L)return L}return Ev(m,i,l)}function Ev(o,i,l){let u=["style","fadeEdges","imageFilter"].find((d)=>i===tn[d]);return Pr(o,u??"",l)??Ad(o,u??"",l)??Sd(i,o,l)??Sv(o,i,l)}function Sv(o,i,l){if(i.atMostOne&&i.atMostOne.filter((d)=>Object.hasOwn(o,d)).length>1)return w(Ie(l,i.atMostOne[0]),`At most one of ${i.atMostOne.join(", ")} is allowed`);if(i.binding&&Object.hasOwn(o,"pager")===Object.hasOwn(o,"stateKey"))return w(Ie(l,"pager"),"Exactly one of pager or stateKey is required");if(i.exclusive&&i.exclusive.filter((d)=>Object.hasOwn(o,d)).length!==1)return w(Ie(l,i.exclusive[0]),"Exactly one container selector is required");let u=wv(o,i,l);if(u)return u;if(i.atLeastOne&&Object.keys(o).length===0)return w(l,i===tn.semantics?"Expected at least one semantics field":"At least one selector field is required");return}function wv(o,i,l){if(i.exactlyOne&&i.exactlyOne.filter((d)=>Object.hasOwn(o,d)).length!==1)return w(i.exactlyOneAtObject?l:Ie(l,i.exactlyOne[0]),`Exactly one of ${i.exactlyOne.join(", ")} is required`);let u=i.dependents??{};for(let d of Object.keys(u).sort()){let m=u[d],k=m.filter((_)=>Object.hasOwn(o,_));if(!d.split("|").some((_)=>Object.hasOwn(o,_))){if(k.length>0)return w(Ie(l,k[0]),`Requires ${d.split("|").join(" or ")}`)}else if(d.includes("|")&&k.length!==1){let _=k[1]??m[0];return w(Ie(l,_),`Exactly one of ${m.join(", ")} is required`)}}return}function Av(o,i,l,{context:u,depth:d}){if(!Array.isArray(o))return w(l,"Expected array");if(o.length<(i.min??0)||o.length>(i.max??1/0))return w(l,"Array length out of range");let m=new Set;for(let k=0;k<o.length;k++){let _=`${l}[${k}]`,x=De(o[k],i.item??{kind:"json"},_,{context:u,depth:d});if(x)return x;let v=JSON.stringify(o[k]);if(i.unique&&m.has(v))return w(_,"Duplicate array value");m.add(v)}return}function Rv(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");if(Object.keys(m).length>(i.maxEntries??1/0))return w(l,"Map entry limit exceeded");for(let k of Object.keys(m).sort()){let _=Ie(l,k);if(!ae.stateKey.test(k))return w(_,"Invalid state key");let x=De(m[k],i.item??{kind:"scalar"},_,{context:u,depth:d});if(x)return x}return}function Ov(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");let k=Object.keys(m).sort();if(k.length<1||k.length>V.limits.MAX_PROTOTYPE_STACK_SCREENS)return w(l,"Screen count out of range");for(let _ of k){let x=`${l}[${JSON.stringify(_)}]`;if(!_.length)return w(x,"Empty screen name");let v=De(m[_],i.item,x,{context:u,depth:d});if(v)return v}return}function $v(o,i,l){if(o<(i.minEntries??0))return w(l,"Record entry minimum not met");if(o>(i.maxEntries??1/0))return w(l,"Record entry limit exceeded");return}function Iv(o,i,l,{context:u,depth:d}){let m=Re(o);if(!m)return w(l,"Expected object");let k=$v(Object.keys(m).length,i,l);if(k)return k;for(let[_,x]of Object.entries(m)){let v=Ie(l,_);if(_.length===0)return w(v,"Invalid context name");if(i.keyPattern&&!ae[i.keyPattern]?.test(_))return w(v,"Invalid record key");let T=De(x,i.item??{kind:"json"},v,{context:u,depth:d});if(T)return T}return}var Xp={string:(o,i)=>typeof o==="string"&&(i.empty===!0||o.length>0)&&(!i.nonblank||!ae.blankText.test(o))&&o.length<=(i.max??1/0)&&Buffer.byteLength(o,"utf8")<=(i.maxBytes??1/0)&&(!i.pattern||new RegExp(V.patterns[i.pattern]).test(o)),pointer:he,key:(o)=>typeof o==="string"&&ae.stateKey.test(o),boundKey:(o)=>typeof o==="string"&&Xt.test(o),color:(o)=>typeof o==="string"&&ae.color.test(o),number:cb,true:(o)=>o===!0,boolean:(o)=>typeof o==="boolean",scalar:(o)=>typeof o==="string"||typeof o==="boolean"||typeof o==="number"&&Number.isFinite(o),enum:(o,i)=>(typeof o==="string"||typeof o==="boolean")&&(i.values??[]).includes(o),json:(o,i)=>{let l=Ln(o);return Number.isFinite(l)&&l<=(i.maxBytes??1/0)}};function VD(o,i=V.limits.MAX_PROTOTYPE_DATA_BYTES){if(!Re(o))return w("data","Expected object");return Gp(o,"data",1)??(Ln(o)>i?w("data","Data byte limit exceeded"):void 0)}function Cv(o,i){if(Array.isArray(o))return o.map((u,d)=>({value:u,path:`${i}[${d}]`}));let l=Re(o)??{};return Object.keys(l).sort().map((u)=>({value:l[u],path:Ie(i,u)}))}function Gp(o,i,l){if(!Array.isArray(o)&&!Re(o))return Xp.scalar(o,{kind:"scalar"})?void 0:w(i,"Invalid data value");if(l>V.limits.MAX_PROTOTYPE_DATA_DEPTH)return w(i,"Data depth limit exceeded");if(Array.isArray(o)&&o.length>V.limits.MAX_PROTOTYPE_DATA_ARRAY_ITEMS)return w(i,"Data array limit exceeded");for(let u of Cv(o,i)){let d=Gp(u.value,u.path,l+1);if(d)return d}return}function Mv(o){return VD(o)}function jv(o,i,l,{context:u,depth:d}){let k=(i.options??[]).filter((T)=>{if(T.kind==="array")return Array.isArray(o);if(T.kind==="object")return Re(o)!==void 0;if(T.kind==="number")return typeof o==="number";if(T.kind==="scalar")return["string","number","boolean"].includes(typeof o);return typeof o==="string"}),_=Re(o),x=(T)=>Object.keys(T.fields??{}).filter((R)=>_&&Object.hasOwn(_,R)).length;if(i.preferMatchingFields)k.sort((T,R)=>x(R)-x(T));let v;for(let T of k){let R=De(o,T,l,{context:u,depth:d});if(!R)return;v??=R}return k.length>0?v:w(l,"Invalid union value")}function De(o,i,l,{context:u,depth:d}){let k={strings:(_)=>Dr(_),data:Mv,ref:hv,tagged:xv,object:Tv,array:Av,map:Rv,screenMap:Ov,record:Iv,choice:jv}[i.kind];if(k)return k(o,i,l,{context:u,depth:d});return Xp[i.kind]?.(o,i)?void 0:w(l,`Invalid ${i.kind==="boundKey"?"key":i.kind} value`)}function Nv(o){let i=new Map;for(let{value:l,path:u}of o.nodes){if(l.type!=="stack"||typeof l.id!=="string")continue;if(i.has(l.id))return w(`${u}.id`,"Duplicate stack id");let d=Re(l.screens)??{};if(typeof l.start!=="string"||!Object.hasOwn(d,l.start))return w(`${u}.start`,"Unknown start screen");i.set(l.id,d)}return Lv(o.actions,i)}function Lv(o,i){for(let{value:l,path:u}of o){if(typeof l.stack!=="string")continue;let d=i.get(l.stack);if(!d)return w(`${u}.stack`,"Unknown stack id");if(typeof l.screen==="string"&&!Object.hasOwn(d,l.screen))return w(`${u}.screen`,"Unknown stack screen")}return}function qv({value:o,path:i},l){for(let[u,d]of Object.entries(Re(o.context)??{})){let m=Re(d)?.page;if(typeof m==="string"&&!l.has(m))return w(Ie(`${i}.context`,u),"Unknown pager id")}return}function zv(o){for(let{value:i,path:l}of o.nodes){let u=Re(i.swipeActions);if(!u)continue;if(u.start===void 0&&u.end===void 0)return w(`${l}.swipeActions`,"swipeActions needs start or end");if(o.nodes.some(({value:m,path:k})=>l.startsWith(`${k}.`)&&(m.type==="carousel"||m.type==="pager"&&m.axis!=="vertical")))return w(`${l}.swipeActions`,"swipeActions cannot appear inside a horizontal pager or carousel")}return}function Dv(o){let i=new Set;for(let{value:l,path:u}of o.nodes){let d=Wp(l,u,o)??Zp(l,u,o,i);if(d)return d}for(let{value:l,path:u}of[...o.nodes,...o.actions])if(typeof l.pager==="string"&&!i.has(l.pager))return w(`${u}.pager`,"Unknown pager id");for(let l of o.actions){let u=qv(l,i);if(u)return u}return}function Bv(o,i,l,u){let d={nodes:bt(o,i.nodes,u).map(zi).filter((m)=>!ei(m.value)),actions:bt(o,i.actions,u).map(zi).filter((m)=>!ei(m.value))};return Qp(d,l)??Jp(d,l)??em(d,l)??tm(d,l)??wp(d.nodes,d.actions,Re(l.state)??{})}function Yv(o){let i=new Map;for(let{value:l,path:u}of o.nodes){if(l.span!==void 0){let d=i.get(u);if(d?.type!=="grid")return w(`${u}.span`,"span requires a direct grid parent");if(typeof d.columns==="number"&&typeof l.span==="number"&&l.span>d.columns)return w(`${u}.span`,"span exceeds grid columns")}if(Array.isArray(l.children))for(let d of l.children.keys())i.set(`${u}.children[${d}]`,l)}return}function Kv(o,i,l){return Cd(i.nodes)??Yv(i)??zv(i)??Ap(i.nodes)??Od(o,i.nodes)??Up(i)??jr(o,l)??Yc(o)}function Fv(o,i,l){return De(o,i,l,{context:{nodes:[],actions:[],images:0,effects:0,animatedEffects:0,keyframeNodes:0,videoNodes:0,nesting:{container:0,condition:0,action:0}},depth:0})}function Vv(o,i){return Cp(o,i.nodes)??jc(i.nodes)??Nc(o,i.actions,Fv)}function Wv(o,i){return Yp(o.nodes,i)??Fp(o.nodes,o.actions)??Dv(o)??Nv(o)}function Zv(o,i,l,{repeats:u,componentTimers:d}){return Xc(i.actions,l.data,VD)??Hp(i.actions,l.data)??Vv(o,i)??Op([...i.actions,...d])??qp(i.nodes)??xd(i.nodes)??Ed(i.nodes,l)??zp(i.nodes,l.data)??Bp(o)??Wv(i,u)??Bv(o,i,l,u)}function Uv(o,i){return De(o,tn.spec,"",{context:i,depth:0})??rm(i)}function Xv(o,i,l=[]){let u={nodes:[],actions:[],images:0,effects:0,animatedEffects:0,keyframeNodes:0,videoNodes:0,nesting:{container:0,condition:0,action:0}},d=Re(o)??{},m=new ht(d.data),k=Rp(o)??Uv(o,u)??wd(o,u.nodes,u.actions)??zd(u.nodes,m,u.actions)??Kv(o,u,m)??$d(o,u.nodes)??Zv(o,u,d,{repeats:m,componentTimers:l});if(k)return{success:!1,error:k};let _=vu.safeParse(o);if(!_.success)return{success:!1,error:w("$","Internal schema/contract mismatch")};let x=sp(_.data,i,u.actions);return x?{success:!1,error:x}:{success:!0,data:_.data}}function Gv(o,i){let l=ws(o);if(!l.success)return{success:!1,error:l.error};if(l.expanded&&yv(l.spec)>ua)return{success:!1,error:w("$","Expanded spec byte limit exceeded")};let u=Re(Re(o)?.components),d=Xv(l.spec,i,Mi({components:Object.fromEntries(Object.entries(u??{}).sort(([m],[k])=>m.localeCompare(k)))}));return d.success?d:{success:!1,error:{path:l.locate(d.error.path),message:d.error.message}}}function hp(o,i={}){try{let l=typeof o==="string"?o:JSON.stringify(o);if(l===void 0)return{success:!1,error:w("$","Expected JSON")};if(Buffer.byteLength(l,"utf8")>ua)return{success:!1,error:w("$","Spec byte limit exceeded")};let u=xp(l);return Gv(typeof o==="string"?u:o,i)}catch(l){return e.warn("Prototype JSON could not be decoded",l),{success:!1,error:w("$","Invalid JSON")}}}var We=(o,i)=>({success:!1,error:{code:o,message:i}});function Hv(o,i){if(o.op==="remove")return{op:"remove",path:o.path};let l=o.value;return{op:i?"replace":"add",path:o.path,value:l}}function Jv(o,i,l){let u=Pt(o,i);if(l.op==="append"||l.op==="extend"||l.op==="prepend"||l.op==="upsert"){let d=l.op==="append"?"appendData":l.op==="prepend"?"prependData":l.op==="upsert"?"upsertData":"extend";if(u===void 0)return We("not_found",`${d} target ${l.path} does not exist`);return Array.isArray(u)?void 0:We("not_array",`${d} target ${l.path} is not an array`)}if(l.op==="remove")return u===void 0?We("not_found",`removeData target ${l.path} does not exist`):void 0;return Qv(o,i,l.path,u)}function Qv(o,i,l,u){let d=Pt(o,i.slice(0,i.lastIndexOf("/")));return!(i.lastIndexOf("/")===0?!0:Array.isArray(d)||c(d)!==void 0)||u===void 0&&Array.isArray(d)?We("not_found",`setData target ${l} has no existing parent or element`):void 0}function eP(o){if(o.op==="remove")return;if(o.op==="upsert"&&(!he(o.key)||Pt(o.value,o.key)===void 0))return We("invalid_value","upsert needs a valid key pointer present in value");let i=o.op==="prepend"?"prependData":o.op;if(o.value===void 0)return We("invalid_value",`${i} write needs a value`);if(["extend","prepend"].includes(o.op)&&!Array.isArray(o.value))return We("invalid_value",`${i} needs an array value`);return tP(o,i)}function tP(o,i){if("maxItems"in o&&o.maxItems!==void 0&&(!Number.isSafeInteger(o.maxItems)||o.maxItems<1||(o.op==="upsert"||o.op==="append")&&o.maxItems>V.limits.MAX_PROTOTYPE_DATA_ARRAY_ITEMS))return We("invalid_value",`${i} maxItems must be a positive safe integer`);return}function Bi(o,i){if(o===i)return!0;if(Array.isArray(o)&&Array.isArray(i))return o.length===i.length&&o.every((d,m)=>Bi(d,i[m]));let l=c(o),u=c(i);return l!==void 0&&u!==void 0&&Object.keys(l).length===Object.keys(u).length&&Object.keys(l).every((d)=>Object.hasOwn(u,d)&&Bi(l[d],u[d]))}function nP(o,i,l){if(l.op!=="append"&&l.op!=="extend"&&l.op!=="prepend"&&l.op!=="upsert")return{effective:l,trimmed:0};let u=Pt(o,i),d=l.op==="prepend"?l.value.concat(u):u.concat(l.op==="extend"?l.value:[l.value]);if(l.op==="upsert"){let k=Pt(l.value,l.key),_=u.findIndex((x)=>{let v=Pt(x,l.key);return v!==void 0&&Bi(v,k)});if(d=u.slice(),_<0)d.push(l.value);else d[_]=l.value}let m=l.maxItems===void 0?0:Math.max(0,d.length-l.maxItems);return{effective:{op:"set",path:l.path,value:l.op==="prepend"?d.slice(0,d.length-m):d.slice(m)},trimmed:m}}function UR(o,i){let l=Us(i.path);if(l===void 0)return We("invalid_path",`${i.path} is not a /data/<pointer> path`);let u=eP(i);if(u)return u;let d=c(o)??{},m=Jv(d,l,i);if(m)return m;let k=Pt(d,l)!==void 0,{effective:_,trimmed:x}=nP(d,l,i),v=qj({data:d},[Hv(_,k)]);if(!v.success)return We("not_found",`${i.path}: ${v.error.message}`);let T=c(v.spec.data),R=VD(T,V.limits.MAX_PROTOTYPE_DATA_WRITE_BYTES);if(!T||R){let O=R?.message??"Data must stay an object";return We(O.includes("limit")?"limit_exceeded":"invalid_value",O)}return{success:!0,data:T,trimmed:x}}var rP="GET";var WD="prototype_request";function Nie(o){return vl(o,"request")}function Fie(o){return vl(o,"deviceRequest")}function om(o,i,l,{what:u,fallback:d}){let m=i==="android"?"connected CtrlProxy":"connected iOS prototype agent",k=i==="android"?"Update the connected CtrlProxy":"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version",_=o.length>1?` (and ${o.length-1} more)`:"";return`The ${m} does not advertise ${l}, so it cannot run ${u} at ${o[0]}${_}. Nothing was shown. ${k}, ${d}.`}function Lie(o,i){return om(o,i,oj,{what:"the request action",fallback:"or load data with a /data patch instead"})}function Bie(o,i){return om(o,i,sj,{what:'a request with via "device"',fallback:'or use via "host", which the host executes'})}var oP=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,iP=/^https?:\/\//i;function ui(o){if(o.includes("{"))return iP.test(o)?void 0:"A templated request url must start with a literal http:// or https://";try{let i=new URL(o);return i.protocol==="http:"||i.protocol==="https:"?void 0:"A request url must be an absolute http or https URL"}catch(i){return e.debug(`[prototype] request url did not parse: ${r(i)}`),"A request url must be an absolute http or https URL"}}function In(o,i){let l=o.split("/").map((m)=>m==="{index}"?"0":m).join("/"),u=Us(l);if(u===void 0)return`${i} into is /data/<RFC 6901 pointer> and addresses a member of data`;let d=u.slice(u.lastIndexOf("/")+1);return/^\d+$/.test(d)||d==="-"?`${i} into must name an object member, not an array element, so into__meta can be written beside it`:void 0}var aP=(o,i)=>ae.pathKey.test(i)?`${o}.${i}`:`${o}[${JSON.stringify(i)}]`;function sP(o,i){if(Hj({[o]:""})!==void 0)return"Forbidden request header";if(!oP.test(o))return"Invalid header name";let l=o.toLowerCase();if(i.has(l))return"Duplicate header name (names are case-insensitive)";i.add(l);return}function lP(o,i,l){let u=typeof i==="string"?i:l;return o==="headers"&&typeof u==="string"&&/[\r\n]/.test(u)}function wr(o,i,l){if(typeof o!=="object"||o===null)return;let u=new Set;for(let[d,m]of Object.entries(o)){let k=aP(`${i}.${l}`,d),_=l==="headers"?sP(d,u):void 0;if(_!==void 0)return{path:k,message:_};let x=m?.value;if(lP(l,m,x))return{path:k,message:"CR/LF in header value"};if(typeof m==="object"&&m!==null&&Object.hasOwn(m,"value")&&!["string","number","boolean"].includes(typeof x))return{path:`${k}.value`,message:"A header or query literal must be a string, number or boolean"}}return}function uP(o,i){let l=typeof o.url==="string"?ui(o.url):void 0;if(l!==void 0)return{path:`${i}.url`,message:l};let u=typeof o.method==="string"?o.method:rP;if(o.body!==void 0&&(u==="GET"||u==="HEAD"))return{path:`${i}.body`,message:"A GET or HEAD request cannot have a body"};let d=typeof o.into==="string"?In(o.into,"request"):void 0;if(d!==void 0)return{path:`${i}.into`,message:d};return Uo(o,i)??wr(o.headers,i,"headers")??wr(o.query,i,"query")}function dP(o,i){if(o.type==="emit"&&o.name===WD)return{path:`${i}.name`,message:`The emit name ${WD} is reserved for request events`};return o.type==="request"?uP(o,i):void 0}function Hp(o,i){for(let{value:l,path:u}of o){let d=dP(l,u)??(l.type==="request"?Uo(l,u,i??{}):void 0);if(d)return d}return}function Ar(o,i,l){let u=cP(o,i,l);if(u)return u;let d=o.type==="request"||o.type==="platform"?o.statusKey:void 0;if(typeof d!=="string")return;if(!Object.hasOwn(l,d))return{path:`${i}.statusKey`,message:"statusKey must name a declared state key"};return typeof l[d]==="string"?void 0:{path:`${i}.statusKey`,message:"statusKey requires a string state key"}}function cP(o,i,l){if(o.type!=="request"||typeof o.progressKey!=="string")return;let u=typeof o.body==="object"&&o.body!==null?o.body:void 0;if(!u||!["multipart","form","file"].some((m)=>Object.hasOwn(u,m)))return{path:`${i}.progressKey`,message:"progressKey requires an upload body"};let d=l[o.progressKey];return Object.hasOwn(l,o.progressKey)&&typeof d==="number"&&Number.isFinite(d)&&d>=0&&d<=100?void 0:{path:`${i}.progressKey`,message:"progressKey requires a declared number state key from 0 to 100"}}var w=(o,i)=>({path:o||"$",message:i}),pP=kt(hr());function Re(o){if(typeof o!=="object"||o===null)return;let i=Object.getPrototypeOf(o);if(i!==Object.prototype&&i!==null)return;return pP.safeParse(o).success&&typeof o==="object"&&o!==null?o:void 0}function cb(o,i){return typeof o==="number"&&Number.isFinite(o)&&(!i.integer||Number.isInteger(o))&&o>=(i.min??-1/0)&&o<=(i.max??1/0)}function mP(o,i,l){let u=o.type==="select"?"Select":o.type==="segmentedButton"?"Segmented button":"Radio group";if(typeof l!=="string")return w(`${i}.stateKey`,`${u} requires a string state key`);let d=new Set;for(let[m,k]of(Array.isArray(o.options)?o.options:[]).entries()){let _=Re(k)?.value;if(d.has(_))return w(`${i}.options[${m}].value`,o.type==="select"?"Duplicate select option value":"Duplicate radio option value");d.add(_)}return}function fP(o,i){return typeof o.label==="string"&&o.size!==void 0?w(`${i}.size`,"Extended FAB cannot set size"):void 0}function yP(o,i,l){if(typeof o.stateKey!=="string")return o.max===void 0?void 0:w(`${i}.max`,"Requires stateKey");let u=typeof o.max==="number"?o.max:1;if(u<=0)return w(`${i}.max`,"Progress max must be greater than 0");if(typeof l!=="number"||!Number.isFinite(l)||l<0||l>u)return w(`${i}.stateKey`,"Progress requires a numeric state key within 0 and max");return}function gP(o,i,l){let u=[{field:"hourKey",max:23,message:"Time picker hour requires an integer 0..23 state key"},{field:"minuteKey",max:59,message:"Time picker minute requires an integer 0..59 state key"}];for(let{field:d,max:m,message:k}of u){let _=o[d],x=typeof _==="string"?l[_]:void 0;if(!cb(x,{kind:"number",integer:!0,min:0,max:m}))return w(`${i}.${d}`,k)}return o.hourKey===o.minuteKey?w(`${i}.minuteKey`,"Time picker hour and minute keys must differ"):void 0}var hP=[31,28,31,30,31,30,31,31,30,31,30,31];function kP(o){if(typeof o!=="string"||!/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(o))return!1;let[i,l,u]=o.split("-").map(Number),d=i%4===0&&i%100!==0||i%400===0,m=l===2&&d?29:hP[l-1];return i>=1900&&i<=2100&&m!==void 0&&u>=1&&u<=m}function am(o,i,l){let u=o.type==="listItem"?Re(o.trailing):void 0;return u&&typeof u.stateKey==="string"&&typeof l[u.stateKey]!=="boolean"?w(`${i}.trailing.stateKey`,"Toggle control requires a boolean state key"):void 0}function Jp(o,i){let l=Re(i.state)??{};for(let{value:u,path:d,item:m}of o.nodes){let k=am(u,d,l);if(k)return qn(k,m)}return}function bP(o,i){let l=i/o;return o>0&&l>=1&&Math.abs(l-Math.round(l))<0.000000001}function _P(o,i,l){let{min:u,max:d,step:m}=o;if(typeof u!=="number"||typeof d!=="number"||u>=d)return w(`${i}.max`,"Slider max must be greater than min");if(typeof m==="number"&&!bP(m,d-u))return w(`${i}.step`,"Slider step must be positive and divide the range evenly");if(typeof l!=="number"||!Number.isFinite(l)||l<u||l>d)return w(`${i}.stateKey`,"Slider requires a numeric state key within min and max");return}function xP(o,i,l){let u=typeof o.stateKey==="string";if(o.variant==="filter"&&!u)return w(`${i}.stateKey`,"Filter chip requires a boolean state key");if(o.variant!==void 0&&o.variant!=="filter"&&u)return w(`${i}.stateKey`,"Only a filter chip can bind a state key");if(u&&typeof l!=="boolean")return w(`${i}.stateKey`,"Filter chip requires a boolean state key");return}function vP(o,i){let l=["minLines","maxLines"].find((d)=>o[d]!==void 0);if(o.multiline!==!0)return l===void 0?void 0:w(`${i}.${l}`,"Requires multiline: true");if(o.secure===!0||o.keyboardType==="password")return w(`${i}.multiline`,"Multiline text cannot be secure");let u=["imeAction","onSubmit"].find((d)=>o[d]!==void 0);return u===void 0?void 0:w(`${i}.${u}`,"Multiline text has no IME action")}function PP(o,i,l){let{minLines:u,maxLines:d,maxLength:m}=o,k=vP(o,i);if(k)return k;if(typeof u==="number"&&typeof d==="number"&&u>d)return w(`${i}.minLines`,"minLines cannot exceed maxLines");if(typeof l==="string"&&typeof m==="number"&&l.length>m)return w(`${i}.stateKey`,"Text field value exceeds maxLength");return}function sm(o,i,l){let u=typeof o.stateKey==="string"?l[o.stateKey]:void 0;if((o.type==="textField"||o.type==="searchBar")&&typeof u!=="string")return w(`${i}.stateKey`,"Text field requires a string state key");if(o.type==="searchBar"&&typeof o.activeKey==="string"&&typeof l[o.activeKey]!=="boolean")return w(`${i}.activeKey`,"Search bar requires a boolean active key");if((o.type==="switch"||o.type==="checkbox")&&typeof u!=="boolean")return w(`${i}.stateKey`,"Toggle control requires a boolean state key");if(o.type==="slider")return _P(o,i,u);return TP(o,i,u,l)}function TP(o,i,l,u){switch(o.type){case"textField":return PP(o,i,l);case"select":case"radioGroup":case"segmentedButton":return mP(o,i,l);case"chip":return xP(o,i,l);case"fab":return fP(o,i);case"progress":return yP(o,i,l);case"timePicker":return gP(o,i,u);case"datePicker":return kP(l)?void 0:w(`${i}.stateKey`,"Date picker requires a YYYY-MM-DD state key in 1900..2100");default:return}}function lm(o,i,l){if(typeof o.stateKey!=="string"||o.type!=="tabBar"&&o.type!=="bottomNav"&&o.type!=="pager")return;return cb(l[o.stateKey],{kind:"number",integer:!0,min:0})?void 0:w(`${i}.stateKey`,"Selection requires a nonnegative integer state key")}function Qp(o,i){let l=Re(i.state)??{};for(let{value:u,path:d,item:m}of o.nodes){let k=Ki(u,d,l)??sm(u,d,l)??lm(u,d,l);if(k)return qn(k,m)}return}var Yi={tooltip:"Tooltip",drawer:"Drawer",bottomSheet:"Sheet",dialog:"Dialog",menu:"Menu",snackbar:"Snackbar"};function um(o,i,l){let u=String(o.type),d=Object.hasOwn(Yi,u)?Yi[u]:void 0,m=d===void 0?void 0:Re(o.openWhen)?.key;return typeof m==="string"&&Object.hasOwn(l,m)&&typeof l[m]!=="boolean"?w(`${i}.openWhen.key`,`${d} requires a boolean state key`):void 0}function dm(o,i,l){let u=["scroll","list"].includes(String(o.type))?Re(o.refresh):void 0;if(!u)return;if(o.axis==="horizontal")return w(`${i}.refresh`,`Pull-to-refresh needs a vertical ${o.type}`);let d=u.stateKey;return typeof d==="string"&&(Object.hasOwn(l,d)||o.type==="list")&&typeof l[d]!=="boolean"?w(`${i}.refresh.stateKey`,"Refresh requires a boolean state key"):void 0}function cm(o,i,l){let u=o.type==="scroll"?o.atEndKey:void 0;return typeof u==="string"&&(!Object.hasOwn(l,u)||typeof l[u]!=="boolean")?w(`${i}.atEndKey`,"atEndKey must name a declared boolean state key"):void 0}function em(o,i){let l=Re(i.state)??{};for(let{value:u,path:d,item:m}of o.nodes){let k=um(u,d,l)??dm(u,d,l)??cm(u,d,l);if(k)return qn(k,m)}return}var im={toggle:{check:(o)=>typeof o==="boolean",message:"Toggle requires a boolean state key"},increment:{check:(o)=>typeof o==="number"&&Number.isFinite(o),message:"Increment requires a numeric state key"},decrement:{check:(o)=>typeof o==="number"&&Number.isFinite(o),message:"Decrement requires a numeric state key"}};function EP(o){let i=[o.stateKey,o.type==="adaptive"?o.selectionKey:void 0,o.type==="adaptive"?o.openKey:void 0,o.activeKey,o.hourKey,o.minuteKey,Re(o.trailing)?.stateKey,["scroll","list"].includes(String(o.type))?Re(o.refresh)?.stateKey:void 0,o.type==="scroll"?o.atEndKey:void 0],l=Object.hasOwn(Yi,String(o.type))?Re(o.openWhen):void 0;return[...i,l?.key].filter((u)=>typeof u==="string")}function SP(o,i,l){return Ki(o,i,l)??sm(o,i,l)??lm(o,i,l)??am(o,i,l)??um(o,i,l)??dm(o,i,l)??cm(o,i,l)}function wP(o,i,l){let{key:u,value:d}=o.value;if(typeof u!=="string"||o.operandTemplated||d===void 0||AP(d))return;let m=i.nodes.filter((x)=>EP(x.value).includes(u));if(new Set(m.map((x)=>String(x.value.type))).size!==1)return;let k=Re(d)!==void 0&&typeof Re(d)?.match==="string",_={...l,[u]:k?"":d};for(let x of m){let v=SP(x.value,x.path,_);if(v)return w(`${o.path}.value`,`setState value does not fit the control bound to "${u}": ${v.message}`)}return}function tm(o,i){let l=Re(i.state)??{};for(let u of o.actions){let{value:d,path:m,item:k}=u,_=typeof d.type==="string"&&Object.hasOwn(im,d.type)?im[d.type]:void 0;if(_&&typeof d.key==="string"&&!_.check(l[d.key]))return qn(w(`${m}.key`,_.message),k);let x=d.type==="setState"?wP(u,o,l):Ar(d,m,l);if(x)return qn(x,k)}return}function qn(o,i){return i===void 0?o:{...o,message:`${o.message} (repeat item ${i})`}}var zi=({located:o,value:i,item:l,operandTemplated:u})=>({value:i,path:o.path,item:l,operandTemplated:u});function AP(o){return Re(o)?.event!==void 0||Re(o)?.platform!==void 0}function nm(o,i){return Object.hasOwn(o,"empty")&&(Object.hasOwn(o,"key")||Object.hasOwn(o,"platform"))?w(i?`${i}.empty`:"empty","empty applies only to data conditions"):void 0}function rm(o){let i=o.nodes.flatMap(({value:u,path:d})=>Re(Re(u.ios)?.bottomAccessory)?[`${d}.ios.bottomAccessory`]:[]),l=({path:u})=>!i.some((d)=>u===d||u.startsWith(`${d}.`)||u.startsWith(`${d}[`));o.nodes=o.nodes.filter(l),o.actions=o.actions.filter(l);return}function pm(o){return{list:o.optional(),detail:o.optional(),content:o.optional(),main:o.optional(),supporting:o.optional()}}var RP=["list","detail","content","main","supporting"],OP={listDetail:["list","detail","selectionKey"],navigationSuite:["items","stateKey","content"],supporting:["main","supporting","openKey"]};function mm(o){return f({...o,type:P(["adaptive"]),kind:P(["listDetail","navigationSuite","supporting"]),selectionKey:Y.optional(),stateKey:Y.optional(),openKey:Y.optional(),items:z(f({value:y(),label:y()}).strict()).min(1).max(8).optional()}).strict()}function Ki(o,i,l){if(o.type!=="adaptive")return;let u=OP[String(o.kind)]??[];for(let m of u)if(!Object.hasOwn(o,m))return w(`${i}.${m}`,"Required field");let d=[...RP,"items","selectionKey","stateKey","openKey"];for(let m of d)if(Object.hasOwn(o,m)&&!u.includes(m))return w(`${i}.${m}`,"Field is not allowed for adaptive kind");return $P(o,i,l)}function $P(o,i,l){let u=o.kind==="supporting"?"openKey":o.kind==="listDetail"?"selectionKey":"stateKey",d=l[String(o[u])],m=u==="openKey"?"boolean":"string";if(!Object.hasOwn(l,String(o[u]))||typeof d!==m)return w(`${i}.${u}`,`Adaptive ${o.kind} requires a declared ${m} state key`);if(o.kind==="navigationSuite")return IP(o,i,d);return}function IP(o,i,l){let u=new Set;for(let[d,m]of o.items.entries()){let k=Re(m)?.value;if(u.has(k))return w(`${i}.items[${d}].value`,"Duplicate adaptive item value");u.add(k)}return u.has(l)?void 0:w(`${i}.stateKey`,"Adaptive navigationSuite state must name an item value")}function IY(o){let i=[];return X(o,(l,u)=>{if(l.type==="adaptive")i.push(u)}),i}function $ie(o,i){return`The connected ${i} runtime does not advertise ${Uj}, so it cannot draw adaptive at ${o[0]}. Nothing was shown. Update the runtime or remove adaptive nodes.`}function _Y(o,i){let l=IY(o);return l.length?[{platform:i,construct:"adaptive",effect:"substituted",paths:l.slice(0,20),...l.length>20?{total:l.length}:{},detail:"Adaptive uses native width rules: Android splits panes at expanded and uses a bar/rail/drawer at compact/medium/expanded; iOS horizontalSizeClass regular uses a split/sidebar/inspector and compact a stack/bottom bar/sheet. Breakpoints differ. iOS draws Material-styled containers under every design; native iOS containers are deferred. Compact listDetail back clears selectionKey to an empty string."}]:[]}var c$="prototype_request",db="prototype_response",zD="prototype_request_cancel",d$=["GET","POST","PUT","PATCH","DELETE","HEAD"],l$=["timeout","too_large","connection_refused","blocked_destination","cancelled","invalid_url","invalid_request","network","too_many_in_flight","invalid_response"],Kr=Wr(()=>Ne([y(),A(),Z(),Y3(),z(Kr),kt(Kr)])),Uie=f({type:ee(c$),requestId:y().min(1),prototypeId:y().min(1),method:P(d$),url:y(),headers:kt(y()).optional(),body:Kr.optional(),timeoutMs:A().int().positive().optional()}),Hie=f({type:ee(zD),requestId:y().min(1)}),dM=cd("ok",[f({type:ee(db),requestId:y(),ok:ee(!0),status:A().int(),headers:kt(y()),body:Kr.nullable(),durationMs:A()}),f({type:ee(db),requestId:y(),ok:ee(!1),error:f({code:P(l$),message:y()}),durationMs:A()})]);var fm=Ne([y().max(4096),Fe]),Fi;function hm(o){Fi=o}var CP=Wr(()=>Fi?Fi():io()),ym=z(CP).min(1).max(32).optional(),gm=y().min(1).max(256).regex(ae.uploadDisposition),km=y().min(1).max(256).regex(ae.uploadContentType),bm=f({asset:y().min(1).max(256)}).strict(),MP=f({name:gm,value:Fe.optional(),file:bm.optional(),filename:gm.optional(),contentType:km.optional()}).strict().refine((o)=>o.value!==void 0!==(o.file!==void 0)),zn=f({type:P(["request"]),method:P(d$).optional(),url:y().min(1).max(2048),headers:kt(y().min(1),fm).optional(),query:kt(y().min(1),fm).optional(),body:Ne([Fe,f({multipart:z(MP).min(1).max(V.limits.MAX_PROTOTYPE_UPLOAD_PARTS)}).strict(),f({form:kt(y().min(1),Fe).refine((o)=>Object.keys(o).length>=1&&Object.keys(o).length<=V.limits.MAX_PROTOTYPE_UPLOAD_PARTS)}).strict(),f({file:bm,contentType:km}).strict()]).optional(),progressKey:H.optional(),into:y().min(1).max(V.limits.MAX_PROTOTYPE_DATA_POINTER_LENGTH+5).optional(),append:f({from:W,to:y().min(1).max(V.limits.MAX_PROTOTYPE_DATA_POINTER_LENGTH+5)}).strict().optional(),statusKey:Y.optional(),via:P(["host","device"]).optional(),allowSecureInRequest:Z().optional(),timeoutMs:A().finite().int().min(1).max(V.limits.MAX_PROTOTYPE_REQUEST_TIMEOUT_MS).optional(),onSuccess:ym,onError:ym}).strict();var _m=Ne([ee(""),W]);function xm(o){let i=(u)=>z(Wr(o)).min(u).max(32),l=Ne([f({pointer:_m,equals:dd}).strict(),f({pointer:_m,exists:Z()}).strict(),f({event:y().min(1)}).strict()]);return kt(H,f({kind:P(["websocket","sse"]),url:zn.shape.url,protocols:z(y().min(1)).max(4).optional(),headers:zn.shape.headers,via:P(["host","device"]).optional(),connect:P(["onShow","manual"]).optional(),statusKey:H.optional(),reconnect:f({maxAttempts:A().int().min(0).max(20),initialDelayMs:A().int().min(100).max(60000),maxDelayMs:A().int().min(100).max(60000)}).strict().optional(),decode:P(["json","text"]).optional(),routes:z(f({when:l.optional(),actions:i(1)}).strict()).max(16).optional(),onOpen:i(0).optional(),onClose:i(0).optional(),onError:i(0).optional()}).strict()).and(hr()).refine((u)=>Object.keys(u).length<=V.limits.MAX_PROTOTYPE_CHANNELS)}function jP(){return f({id:y().max(64).regex(ae.stateKey),name:y().max(64).regex(/\S/),email:y().max(254).regex(ae.reservedEmail).describe("Reserved domain only: example.test, example.com or *.invalid"),avatar:y().max(64).regex(ae.stateKey).optional()}).strict()}function vm(){return f({provider:ee("fake"),accounts:z(jP()).min(1).max(8),sessionTtlSeconds:A().finite().int().min(60).max(2592000).optional()}).strict().describe("Fake sign-in accounts for auth.signIn (prototype_platform_auth_v1); unique ids, no passwords or tokens")}function Pm(){return f({accuracy:P(["precise","approximate"]).optional(),minIntervalMs:A().finite().int().min(1000).max(3600000).optional(),minDistanceM:A().finite().min(0).max(1e5).optional()}).strict().describe("Foreground location updates for /platform/location/current (prototype_platform_location_v1); needs location in requires.platform and requires.permissions")}var{MAX_PROTOTYPE_NOTIFICATION_CHANNELS:Tm,MAX_PROTOTYPE_NOTIFICATION_ACTIONS:OM,MAX_PROTOTYPE_NOTIFICATION_ID_LENGTH:$M,MAX_PROTOTYPE_NOTIFICATION_TITLE_LENGTH:IM,MAX_PROTOTYPE_NOTIFICATION_BODY_LENGTH:CM,MAX_PROTOTYPE_NOTIFICATION_DATA_BYTES:MM,MAX_PROTOTYPE_NOTIFICATION_REPLY_BYTES:jM,MAX_PROTOTYPE_NOTIFICATION_BYTES:NM,MAX_PROTOTYPE_NOTIFICATION_BADGE:LM,MAX_PROTOTYPE_NOTIFICATIONS_ACTIVE:qM,MAX_PROTOTYPE_NOTIFICATION_UPDATES_PER_SECOND:zM}=V.limits;function NP(){return f({id:y().max(64).regex(ae.stateKey),name:y().max(64).regex(/\S/),importance:P(["min","low","default","high"]),description:y().max(256).optional(),showBadge:Z().optional()}).strict()}function Em(){return f({channels:z(NP()).min(1).max(Tm)}).strict().describe("Notification channels for notifications.post (prototype_platform_notifications_v1); unique ids")}function LP(){let o=y().max(8).regex(ae.isoPeriod);return f({id:y().max(64).regex(ae.stateKey),title:y().max(64).regex(/\S/),kind:P(["consumable","nonConsumable","subscription"]),price:f({amount:y().max(12).regex(ae.decimalAmount),currency:y().max(3).regex(ae.currencyCode)}).strict(),period:o.optional(),trialPeriod:o.optional()}).strict()}function Sm(){return f({backend:ee("fake"),products:z(LP()).min(1).max(32)}).strict().describe("Fake store catalog for commerce.purchase (prototype_platform_commerce_v1); unique product ids, no real payment fields")}function wm(){let o=f({}).strict(),i=f({rateHz:A().finite().int().min(1).max(30).optional()}).strict();return f({shake:o.optional(),orientation:i.optional(),steps:o.optional(),proximity:o.optional(),light:i.optional()}).strict().describe("Sensors the device listens to for /platform/sensors and sensors.shake (prototype_platform_sensors_v1); needs sensors in requires.platform, and steps needs the motion permission")}function Am(){return{auth:vm().optional(),commerce:Sm().optional(),location:Pm().optional(),notifications:Em().optional(),sensors:wm().optional()}}var Rm={type:P(["divider"]),orientation:P(["horizontal","vertical"]).optional()},Om={type:P(["badge"]),text:y().min(1).optional()};var _t=A().finite().min(0).max(1),Vi=A().finite().min(-360).max(360),nt=(o,i)=>A().finite().min(o).max(i),qP=f({periodMs:A().finite().int().min(400).max(20000)}).strict(),zP=f({x:_t,y:_t}).strict();function $m(o){let i={animate:qP.optional(),phase:_t.optional()},l=(u,d)=>f({type:ee(u),...d,...i}).strict();return cd("type",[l("noise",{amount:_t.optional(),grain:nt(0.5,8).optional(),seed:A().finite().int().min(0).max(65535).optional(),monochrome:Z().optional()}),l("gradientMesh",{colors:z(o).length(4),softness:_t.optional()}),l("shimmer",{color:o.optional(),angle:Vi.optional(),width:nt(0.05,1).optional()}),l("glow",{color:o,radius:nt(0,48).optional(),intensity:_t.optional()}),l("vignette",{color:o.optional(),intensity:_t.optional(),radius:_t.optional()}),l("blur",{radius:nt(0,25)}),l("pixelate",{cell:nt(1,64)}),l("chromaticAberration",{offset:nt(0,8).optional(),angle:Vi.optional()}),l("wave",{amplitude:nt(0,16).optional(),wavelength:nt(8,400).optional(),angle:Vi.optional()}),l("ripple",{amplitude:nt(0,16).optional(),wavelength:nt(8,400).optional(),center:zP.optional()})])}var ve=y().refine((o)=>xg.has(o),(o)=>({message:Tr(o)})),jm=P(["filled","outlined","rounded","sharp","twoTone"]),Fr=f({x:A().finite().min(-1e4).max(1e4),y:A().finite().min(-1e4).max(1e4)}).strict(),DP=f({x:A().finite().min(-1e4).max(1e4),y:A().finite().min(-1e4).max(1e4),width:A().finite().min(0).max(1e4),height:A().finite().min(0).max(1e4)}).strict(),BP,Nm=Wr(()=>BP??=f({elementId:y().min(1).optional(),text:y().refine((o)=>!ae.blankText.test(o)).optional(),index:A().finite().int().min(0).max(2147483647).optional(),selectionStrategy:ee("unique").optional(),container:Nm.optional()}).strict()),YP=f({elementId:y().min(1).optional(),text:y().min(1).optional(),testTag:y().min(1).optional(),container:Nm.optional()}).strict(),nn=Ne([y(),A().finite(),Z()]),KP,xt=Wr(()=>KP??=Ne([f({valid:Ne([Y,z(Y).min(1).max(8)])}).strict(),f({data:W,equals:nn}).strict(),f({data:W,notEquals:nn}).strict(),f({data:W,gt:A().finite()}).strict(),f({data:W,lt:A().finite()}).strict(),f({data:W,empty:Z()}).strict(),f({platform:W,equals:nn}).strict(),f({platform:W,notEquals:nn}).strict(),f({platform:W,gt:A().finite()}).strict(),f({platform:W,lt:A().finite()}).strict(),f({key:Y,equals:nn}).strict(),f({key:Y,notEquals:nn}).strict(),f({key:Y,contains:y().min(1).max(256)}).strict(),f({key:Y,startsWith:y().min(1).max(256)}).strict(),f({key:Y,lengthGt:A().int().min(0).max(1e5)}).strict(),f({key:Y,lengthLt:A().int().min(0).max(1e5)}).strict(),f({key:Y,gt:A().finite()}).strict(),f({key:Y,lt:A().finite()}).strict(),f({all:z(xt).min(1).max(16)}).strict(),f({any:z(xt).min(1).max(16)}).strict(),f({not:xt}).strict()])),on=f({key:Y,equals:Z()}).strict(),Lm=f({edges:z(P(["top","bottom","start","end"])).min(1).max(4),types:z(P(["systemBars","cutout","ime"])).min(1).max(3)}).strict(),Im=Ne([P(["fill","wrap"]),f({dp:A().finite().min(0).max(1e4)}).strict()]),qm=Ne([P(["half","full"]),f({dp:A().finite().min(0.000001).max(1e4)}).strict()]),FP=f({top:A().finite().min(0).max(1e4).optional(),bottom:A().finite().min(0).max(1e4).optional(),start:A().finite().min(0).max(1e4).optional(),end:A().finite().min(0).max(1e4).optional()}).strict(),Dn=["primary","onPrimary","primaryContainer","onPrimaryContainer","inversePrimary","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","surfaceTint","inverseSurface","inverseOnSurface","error","onError","errorContainer","onErrorContainer","outline","outlineVariant","scrim","surfaceBright","surfaceDim","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest","surfaceContainerLow","surfaceContainerLowest"],VP=["none","extraSmall","small","medium","large","extraLarge","full"],WP=f({topStart:A().finite().min(0).max(1e4).optional(),topEnd:A().finite().min(0).max(1e4).optional(),bottomEnd:A().finite().min(0).max(1e4).optional(),bottomStart:A().finite().min(0).max(1e4).optional()}).strict(),Bn=y().regex(ae.color),rn=Ne([Bn,P(Dn)]),Te=Ne([Bn,P(Dn),f({light:rn,dark:rn}).strict()]),Wi=Ne([y().min(1),f({light:y().min(1),dark:y().min(1)}).strict(),f({data:y().regex(ae.pointer)}).strict()]),Cm=f({color:Te,position:A().finite().min(0).max(1).optional()}).strict(),zm=cd("type",[f({type:P(["linear"]),angle:A().finite(),stops:z(Cm).min(2).max(4)}).strict(),f({type:P(["radial"]),stops:z(Cm).min(2).max(4)}).strict()]),ZP=f({width:A().finite().min(0).max(1e4),color:Te.optional(),gradient:zm.optional()}).strict().refine((o)=>o.color!==void 0!==(o.gradient!==void 0),{path:["color"],message:"Exactly one of color, gradient is required"}),UP=f({color:Te,radius:A().finite().min(0).max(1000),spread:A().finite().min(-1000).max(1000).optional(),offset:f({x:A().finite().min(-1000).max(1000),y:A().finite().min(-1000).max(1000)}).strict().optional(),inner:Z().optional()}).strict(),Dm=f({top:A().finite().min(0).max(1000).optional(),bottom:A().finite().min(0).max(1000).optional(),start:A().finite().min(0).max(1000).optional(),end:A().finite().min(0).max(1000).optional()}).strict().refine((o)=>Object.keys(o).length>0,"At least one fade edge is required"),Bm=f({saturation:A().finite().min(0).max(2).optional(),tint:Te.optional()}).strict().refine((o)=>Object.keys(o).length>0,"At least one image filter field is required"),XP=["displayLarge","displayMedium","displaySmall","headlineLarge","headlineMedium","headlineSmall","titleLarge","titleMedium","titleSmall","bodyLarge","bodyMedium","bodySmall","labelLarge","labelMedium","labelSmall"],GP=f({asset:y().min(1).max(256),uniforms:kt(y().regex(/^[A-Za-z_][A-Za-z0-9_]*$(?![\s\S])/),A().finite().min(-1e6).max(1e6)).and(hr()).refine((o)=>Object.keys(o).length<=16).optional()}).strict(),Vr=f({width:Im.optional(),height:Im.optional(),weight:A().finite().min(0.000001).max(1e4).optional(),minWidth:A().finite().min(0).max(1e4).optional(),maxWidth:A().finite().min(0).max(1e4).optional(),minHeight:A().finite().min(0).max(1e4).optional(),maxHeight:A().finite().min(0).max(1e4).optional(),padding:FP.optional(),background:Te.optional(),surface:P(["glass"]).optional(),glass:f({variant:P(["regular","clear"]).optional(),tint:Te.optional(),interactive:Z().optional()}).strict().optional(),cornerRadius:Ne([A().finite().min(0).max(1e4),P(VP),WP]).optional(),border:ZP.optional(),elevation:A().finite().min(0).max(1000).optional(),shadowColor:Te.optional(),shadows:z(UP).min(1).max(3).optional(),cornerStyle:P(["circular","continuous"]).optional(),gradient:zm.optional(),aspectRatio:A().finite().min(0.000001).max(1e4).optional(),offset:Fr.optional(),alpha:A().finite().min(0).max(1).optional(),pressScale:A().finite().min(0.5).max(1).optional(),shimmer:Z().optional(),shader:GP.optional(),scale:A().finite().min(0).max(4).optional(),rotation:A().finite().min(-360).max(360).optional(),effects:z($m(Te)).min(1).max(4).optional(),alignment:P(["topStart","topCenter","topEnd","centerStart","center","centerEnd","bottomStart","bottomCenter","bottomEnd"]).optional(),arrangement:P(["start","center","end","spaceBetween","spaceAround","spaceEvenly"]).optional(),spacing:A().finite().min(0).max(1e4).optional(),runSpacing:A().finite().min(0).max(1e4).optional(),textSize:A().finite().min(0.000001).max(1000).optional(),fontWeight:A().finite().int().min(100).max(900).optional(),color:Te.optional(),textAlign:P(["start","center","end","justify"]).optional(),maxLines:A().finite().int().min(1).max(2147483647).optional(),lineHeight:A().finite().min(0.000001).max(1000).optional(),letterSpacing:A().finite().min(-1000).max(1000).optional(),textDecoration:P(["none","underline","lineThrough","underlineLineThrough"]).optional(),fontStyle:P(["normal","italic"]).optional(),overflow:P(["clip","ellipsis","visible"]).optional(),fontFamily:Ne([P(["default","sansSerif","serif","monospace"]),f({asset:y().min(1)}).strict()]).optional(),textStyle:P(XP).optional()}).strict().superRefine((o,i)=>{if(o.glass!==void 0&&o.surface!=="glass")i.addIssue({code:se.custom,path:["glass"],message:'glass requires surface: "glass"'});if(o.shadows!==void 0&&(o.elevation!==void 0||o.shadowColor!==void 0))i.addIssue({code:se.custom,path:["shadows"],message:"shadows cannot be combined with elevation or shadowColor"})}),Ym=f({when:xt,style:Vr}).strict(),Zi=f({label:y().min(1),icon:ve.optional(),image:Wi.optional()}).strict(),Mm=P(["cover","top","bottom","start","end"]),Km=cd("type",[f({type:P(["bounds"]),bounds:DP,alignment:Mm.optional(),offset:Fr.optional()}).strict(),f({type:P(["element"]),selector:YP,alignment:Mm,offset:Fr.optional()}).strict()]),Fm=cd("type",[f({type:P(["fullscreen"]),scrim:Te.optional()}).strict(),f({type:P(["sheet"]),edge:P(["top","bottom"]),height:A().finite().min(0.000001).max(1e4)}).strict(),f({type:P(["floating"]),gravity:P(["topStart","topCenter","topEnd","centerStart","center","centerEnd","bottomStart","bottomCenter","bottomEnd"]),offset:Fr}).strict()]);var Yn=y().max(256).refine((o)=>!ae.blankText.test(o)),HP=Ne([f({lat:A().min(-90).max(90),lng:A().min(-180).max(180),zoom:A().min(0).max(22),bearing:A().min(0).max(360).optional(),tilt:A().min(0).max(60).optional()}).strict(),f({data:W}).strict()]),JP=f({path:W,as:H,id:Yn,lat:Yn,lng:Yn,title:Yn,icon:ve.optional(),heading:Yn.optional(),animateMs:A().int().min(0).max(2000).optional()}).strict(),QP=f({path:W,width:A().min(1).max(16).optional(),color:Te.optional()}).strict();function Vm(o,i){return f({...o,type:P(["map"]),mapStyle:P(["plain","streets"]).optional(),backend:P(["auto","google","maplibre"]).optional(),camera:HP.optional(),fit:P(["none","markers","route"]).optional(),markers:JP.optional(),polylines:z(QP).min(1).max(8).optional(),showUserLocation:Z().optional(),onMarkerTap:i.optional(),onCameraIdle:f({into:W}).strict().optional()}).strict()}function eT(o,i){return f({...o,type:P(["webView"]),id:H.optional(),url:y().max(2048).regex(ae.webViewUrl),allowedOrigins:z(y().max(256).regex(ae.webOrigin)).min(1).max(8).refine((l)=>new Set(l).size===l.length),javaScript:Z().optional(),navigationStateKey:H.optional(),titleKey:H.optional(),canGoBackKey:H.optional(),onNavigate:i.optional(),onBlockedNavigation:i.optional()}).strict()}function Wm(o,i){return[Vm(o,i),eT(o,i)]}var Zm=f({scale:A().finite().min(0.85).max(1).optional(),alpha:A().finite().min(0.5).max(1).optional()}).strict().refine((o)=>o.scale!==void 0||o.alpha!==void 0,"press needs scale or alpha");var Ui=f({glassGroup:f({spacing:A().finite().min(0).max(200)}).strict().optional(),glassUnion:y().max(64).regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$(?![\s\S])/).optional(),glassTransition:P(["matchedGeometry","materialize","identity"]).optional(),backgroundExtension:ee(!0).optional(),buttonStyle:P(["glass","glassProminent"]).optional(),tab:f({role:P(["search"])}).strict().optional(),sheet:f({sizing:P(["form","page","fitted"])}).strict().optional(),hover:P(["lift","highlight"]).optional(),navigationTitle:P(["large","inline"]).optional()}).strict(),Um=f({predictiveBack:f({style:P(["default","crossActivity","none"])}).strict().optional(),indication:P(["ripple","none"]).optional()}).strict(),tT=f({buttonStyle:Ui.shape.buttonStyle,bottomAccessory:Wr(()=>ke).optional(),...Ui.omit({buttonStyle:!0}).shape}).strict(),Zr={ios:Ui.optional(),android:Um.optional()},Gm={ios:tT.optional(),android:Um.optional()};var Qm=Object.fromEntries(Dn.map((o)=>[o,Bn.optional()])),Hm=f(Qm).strict().refine((o)=>Object.keys(o).length>0),nT=f({seed:Bn.optional(),source:P(["device"]).optional(),light:Hm.optional(),dark:Hm.optional(),...Qm}).strict().refine((o)=>Object.keys(o).length>0),rT=f({scale:A().finite().min(0.75).max(1.5).optional(),fontFamily:P(["sans","serif","mono"]).optional()}).strict().refine((o)=>Object.keys(o).length>0),oT=f({corner:P(["none","small","medium","large","full"]).optional()}).strict().refine((o)=>Object.keys(o).length>0),ef=f({...Zr,design:P(["material","platform"]).optional(),mode:P(["light","dark","system"]).optional(),colors:nT.optional(),typography:rT.optional(),shapes:oT.optional()}).strict().refine((o)=>Object.keys(o).length>0);function tf(o){let{commonNodeShape:i,sheetConditionSchema:l,actionSchema:u,colorValueSchema:d}=o,m=f({...i,type:P(["tooltip"]),openWhen:l,text:y().min(1).refine((_)=>!ae.blankText.test(_)),anchorTo:y().min(1).optional(),caret:P(["auto","top","bottom","start","end"]).optional(),spotlight:f({padding:A().int().min(0).max(64).optional(),cornerRadius:A().int().min(0).max(64).optional()}).strict().optional(),onDismiss:z(u).min(1).max(32).optional()}).strict(),k=f({...i,type:P(["drawer"]),edge:P(["start","end"]),openWhen:l,scrim:d.optional(),dismissOnSwipe:Z().optional()}).strict();return{tooltipBaseSchema:m,drawerBaseSchema:k}}function nf(o,i){if(o.type==="tooltip"&&o.anchorTo!==void 0===(o.anchor!==void 0))i.addIssue({code:se.custom,path:["anchorTo"],message:"Exactly one of anchorTo, anchor is required"})}var rf=A().int().min(0).max(20).optional(),of={minFraction:rf,maxFraction:rf},af=P(["short","medium","long"]).optional(),iT=Ne([f({number:f({...of,grouping:Z().optional()}).strict()}).strict(),f({compact:f({style:P(["short","long"]).optional()}).strict()}).strict(),f({currency:f({code:y().regex(ae.currencyCode)}).strict()}).strict(),f({percent:f(of).strict()}).strict(),f({date:f({style:af}).strict()}).strict(),f({time:f({style:af}).strict()}).strict(),f({relative:f({style:P(["narrow","short","long"]).optional()}).strict()}).strict()]),Ur=H,sf=Ne([y(),A().finite()]),aT=Ne([f({data:W}).strict(),f({state:Ur}).strict(),f({value:sf}).strict()]),lf={format:iT,locale:y().max(35).regex(ae.formatLocale).optional(),timeZone:y().max(128).regex(ae.formatTimeZone).optional()},sT=f({of:aT,...lf}).strict(),lT=f({of:Ne([f({item:Ur}).strict(),f({value:sf}).strict()]),...lf}).strict(),uf=kt(Ur,sT).refine((o)=>Object.keys(o).length<=32),df=kt(Ur,lT).refine((o)=>Object.keys(o).length<=8);var an=z(A().finite()).length(2),uT=f({source:y().min(1),range:an,alpha:an.optional(),scale:an.optional(),offsetY:an.optional(),offsetX:an.optional(),blur:an.optional()}).strict(),dT=f({axis:P(["horizontal","vertical"]),edge:f({scale:A().finite().optional(),alpha:A().finite().optional(),rotation:A().finite().optional()}).strict()}).strict(),cf={scrollLinked:uT.optional(),scrollTransition:dT.optional()};var Fn=V.limits,Gi=y().min(1).max(Fn.MAX_PROTOTYPE_TIMER_ID_LENGTH),pf=A().int().min(Fn.MIN_PROTOTYPE_TIMER_MS).max(Fn.MAX_PROTOTYPE_TIMER_MS),Xi;function mf(o){Xi=o}var ff=f({type:P(["startTimer"]),id:Gi,afterMs:pf,everyMs:pf.optional(),maxRuns:A().int().min(1).max(Fn.MAX_PROTOTYPE_TIMER_RUNS).optional(),actions:z(Wr(()=>Xi?Xi():io())).min(1).max(32)}).strict(),yf=f({type:P(["cancelTimer"]),id:Gi}).strict(),cT=z(f({id:Gi,nextFireInMs:A().int().safe().nonnegative(),runs:A().int().safe().nonnegative()})).max(Fn.MAX_PROTOTYPE_TIMERS);function qie(o){let i=cT.safeParse(o);return i.success?i.data:void 0}var gf=so((o)=>Dr(o)===void 0);var hf=f({heading:Z().optional(),group:Z().optional(),liveRegion:P(["polite","assertive"]).optional(),label:y().min(1).optional(),hint:y().min(1).optional(),traits:z(P(["button","image","selected"])).min(1).max(3).refine((o)=>new Set(o).size===o.length).optional()}).strict().refine((o)=>Object.keys(o).length>0);function kf(o){let i=f({label:y().min(1),icon:ve.optional(),role:P(["default","destructive"]).optional(),color:rn.optional(),onTap:z(o).min(1).max(32)}).strict(),l=z(i).min(1).max(3);return{swipeActions:f({start:l.optional(),end:l.optional(),fullSwipe:Z().optional()}).strict().optional()}}function mT(o,i){return{type:P(["list"]),axis:P(["vertical","horizontal"]).default("vertical"),repeat:f({items:f({path:W}).strict(),as:H,key:H}).strict(),spacing:A().finite().min(0).optional(),contentPadding:A().finite().min(0).optional(),onEndReached:z(o).min(1).max(32).optional(),endThreshold:A().finite().int().min(1).max(50).optional(),refresh:i.optional(),maxItems:A().finite().int().min(1).max(V.limits.MAX_PROTOTYPE_LIST_ITEMS).optional()}}function bf(o){return{children:z(o).length(1),header:o.optional(),footer:o.optional()}}function _f(o,i,l){return f({...o,...mT(i,l)}).strict()}function xf(o){return f({stateKey:Y,onRefresh:z(o).min(1).max(32)}).strict()}var vf=["ultraThin","thin","regular","thick","glass"],Pf=150;function Vie(o){return c(c(o)?.window)?.backdrop===void 0?[]:["window.backdrop"]}function Wie(o,i){let l=i==="ios"?"connected iOS prototype agent":"connected CtrlProxy",u=i==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy";return`The ${l} does not advertise ${uj}, so it would ignore ${o[0]} and draw a plain window. Nothing was shown. ${u}, or remove window.backdrop (a scrim colour on the placement still dims what is behind).`}function u$(o){return o==="blur"||o==="fallback"?{backdrop:o}:{}}function Yj(o,i){return o==="show"&&i.success?u$(i.backdrop):{}}var Tf=f({material:P(vf).describe("Frosted material behind the window: ultraThin, thin, regular, thick, or glass (Liquid Glass on iOS 26+; the fallback dim elsewhere)"),blur:A().finite().int().min(0).max(Pf).optional().describe("Blur radius in dp (points on iOS), 0-150; absent uses the material's own radius"),tint:rn.optional().describe("One colour (hex or Material role, not a per-mode pair) laid over the blur, and the solid fallback where blur is unavailable")}).strict().describe("Blur what is behind the window (needs prototype_backdrop_v1). The show result reports backdrop blur or fallback; fallback is a tonal fill (tint at 85% alpha, else the surfaceContainer role at 85%) where blur is unavailable");var yT=f({path:W,x:H.optional(),y:H,label:y(),color:Te.optional()}).strict(),Ef={type:P(["chart"]),variant:P(["line","area","bar","ring"]),series:z(yT).min(1).max(4),yRange:f({min:A().finite(),max:A().finite()}).strict().optional(),xLabels:P(["none","ends","all"]).optional(),goal:A().finite().optional()};var gT=["bounce","pulse","scale","variableColor","wiggle","rotate","breathe","replace","drawOn"],hT=f({type:P(gT),trigger:Ne([f({key:H}).strict(),f({data:W}).strict()]).optional(),repeat:Ne([ee("infinite"),A().finite().int().min(1).max(20)]).optional()}).strict().refine((o)=>o.trigger===void 0||o.repeat===void 0,{message:"At most one of trigger, repeat is allowed",path:["trigger"]}).describe("Icon animation. trigger {key} or {data} replays on value changes; repeat is infinite or 1-20. trigger and repeat are mutually exclusive; omit both for one play on appearance. replace follows name changes.");function zie(o){let i=[];return X(o,(l,u)=>{if(l.type==="icon"&&l.effect!==void 0)i.push(`${u}.effect`)}),i}function jie(o,i){return`The ${i==="ios"?"connected iOS prototype agent":"connected CtrlProxy"} does not advertise ${mj}, so it cannot run the icon effect at ${o[0]}. Nothing was shown. Update the agent or remove icon.effect.`}var Sf={type:P(["icon"]),name:ve,variant:jm.optional(),effect:hT.optional()};var wf=P(["none","fade","expand","slide","slideStart","slideEnd","scale","blurReplace"]),Af=Ne([wf,f({type:wf,delayMs:A().finite().int().min(0).max(600).optional()}).strict()]),kT=f({ms:A().finite().int().min(0).max(100),order:P(["forward","reverse","center"]).optional()}).strict(),Rf={stagger:kT.optional()};var Of={attentionLoop:kd.optional(),keyframes:Pd.optional(),transition:Af.optional(),animate:f({tempo:P(["fast","default","slow"]).optional(),durationMs:A().finite().int().min(0).max(2000).optional(),easing:P(["standard","emphasized","linear","spring"]).optional()}).strict().superRefine((o,i)=>{let l=Jo(o,"");if(l)i.addIssue({code:se.custom,path:["tempo"],message:l.message})}).optional()},$f={type:P(["image"]),asset:Wi,contentScale:P(["fit","crop","fill"]).optional(),zoomable:f({maxScale:A().finite().min(1).max(8)}).strict().optional()};var bT=Ne([...Fe.options,f({platform:W}).strict(),f({event:Ne([ee(""),W])}).strict()]),Hi;function If(o){Hi=o}var _T=Wr(()=>Hi?Hi():io()),Ji=z(_T).min(1).max(32),Cf=f({type:P(["platform"]),call:y().min(1).max(64),args:kt(y().min(1),Ne([bT,y().min(1).max(64)])).refine((o)=>Object.keys(o).length<=V.limits.MAX_PROTOTYPE_PLATFORM_ARGS).optional(),into:y().min(1).max(V.limits.MAX_PROTOTYPE_DATA_POINTER_LENGTH+5).optional(),statusKey:Y.optional(),timeoutMs:A().finite().int().min(1).max(V.limits.MAX_PROTOTYPE_PLATFORM_TIMEOUT_MS).optional(),onSuccess:Ji.optional(),onError:Ji.optional()}).strict(),xT=V.definitions.platformPermission.fields.name.rule.values,vT=V.definitions.platformRequires.fields.background.rule.item.values,p$=f({platform:z(y().min(1).max(64)).min(1).max(32).optional(),permissions:z(f({name:P(xT),purpose:y().max(512).refine((o)=>!ae.blankText.test(o))}).strict()).min(1).max(16).optional(),background:z(P(vT)).min(1).max(8).optional()}).strict(),Mf=f({on:kt(y().min(1),Ji).refine((o)=>Object.keys(o).length<=V.limits.MAX_PROTOTYPE_PLATFORM_HANDLERS)}).strict();var jf=f({version:A().int().min(1).max(2147483647),keys:z(y().min(1).max(261)).min(1).max(V.limits.MAX_PROTOTYPE_STORAGE_KEYS).refine((o)=>new Set(o).size===o.length),secure:z(y().min(1).max(261)).min(1).max(8).refine((o)=>new Set(o).size===o.length).optional(),secureAuth:kt(y(),ee("biometric")).optional()}).strict();var Qi=Ne([f({message:y().min(1),required:ee(!0)}).strict(),f({message:y().min(1),minLength:A().finite().int().min(0)}).strict(),f({message:y().min(1),maxLength:A().finite().int().min(0)}).strict(),f({message:y().min(1),min:A().finite()}).strict(),f({message:y().min(1),max:A().finite()}).strict(),f({message:y().min(1),format:P(V.definitions.check.fields.format.rule.values)}).strict(),f({message:y().min(1),pattern:y().max(V.definitions.check.fields.pattern.rule.max)}).strict()]);var{MAX_PROTOTYPE_SPEC_BYTES:ua,MAX_PROTOTYPE_TEXT_SPANS:PT,MAX_PROTOTYPE_EMIT_PAYLOAD_BYTES:bh,MAX_PROTOTYPE_EMIT_CONTEXT_ENTRIES:fq,MAX_PROTOTYPE_DATA_BYTES:yq,MAX_PROTOTYPE_DATA_WRITE_BYTES:gq,MAX_PROTOTYPE_DATA_DEPTH:hq,MAX_PROTOTYPE_DATA_ARRAY_ITEMS:Kie,MAX_PROTOTYPE_LIST_ITEMS:jD,MAX_PROTOTYPE_DATA_POINTER_LENGTH:kq,MAX_PROTOTYPE_REPEAT_PATH_CELLS:bq,MAX_PROTOTYPE_PAGER_DP:ea,MAX_PROTOTYPE_SUBSTITUTED_TEXT_LENGTH:_q,MAX_PROTOTYPE_SUBSTITUTED_TEXT_TOTAL:xq}=V.limits;var gp=cd("type",[f({type:P(["emit"]),name:y().min(1),payload:dd.optional(),context:Ku.optional(),requireValid:z(Y).min(1).max(8).optional()}).strict(),f({type:P(["setPage"]),pager:y().min(1),page:Ne([P(["next","prev"]),A().finite().int().min(0).max(2147483647)])}).strict(),f({type:P(["setState"]),key:Y,value:Fu}).strict(),f({type:P(["toggle"]),key:Y}).strict(),f({type:P(["increment"]),key:Y,by:A().finite().optional()}).strict(),f({type:P(["decrement"]),key:Y,by:A().finite().optional()}).strict(),f({type:P(["dismiss"])}).strict(),f({type:P(["hideKeyboard"])}).strict(),f({type:P(["setData"]),...Rn}).strict(),Bu,Yu,f({type:P(["prependData"]),...Rn}).strict(),f({type:P(["removeData"]),path:Wo}).strict(),ff,yf,zn,Cf,ri("push"),f({type:P(["pop"]),stack:y().min(1),force:Z().optional()}).strict(),Md,f({type:P(["popToRoot"]),stack:y().min(1)}).strict(),f({type:P(["scrollTo"]),scroll:y().min(1),to:Ne([P(["start","end"]),f({key:Ne([y(),A().finite(),Z()])}).strict()]),animated:Z().optional()}).strict(),ri("replace")]);mf(()=>gp);hm(()=>gp);If(()=>gp);var Ze=_r(gp),It={onLongPress:Ze.optional(),onDoubleTap:Ze.optional()},sn={enabledWhen:xt.optional()},Ct={...sn,checks:z(Qi).min(1).max(8).optional(),validateOn:P(["change","blur","submit"]).optional()},D={semantics:hf.optional(),onAppear:Ze.optional(),...cf,...Gm,span:A().finite().int().min(1).optional(),id:y().min(1).optional(),testTag:y().min(1).optional(),contentDescription:y().min(1).optional(),onTap:Ze.optional(),style:Vr.optional(),styleWhen:z(Ym).min(1).max(8).optional(),visibleWhen:xt.optional(),sharedKey:H.optional(),press:Zm.optional(),shared:f({key:y().min(1).max(256),as:P(["element","bounds"])}).strict().optional(),...Of,anchor:Km.optional(),safeAreaPadding:Lm.optional()},TT=kt(H,Ne([y(),A().finite(),Z()])),ET=f({items:Ne([z(TT).min(1).max(128),f({path:W}).strict()]),as:H,derive:df.optional(),key:H.optional(),stagger:A().int().min(0).max(100).optional()}).strict(),Jr={repeat:ET.optional()},ta={...Jr,...Rf},ST=f({...D,...It,...ta,type:P(["box"])}).strict(),Nf=kf(gp),wT=f({...D,...It,...Nf,...ta,type:P(["row"])}).strict(),AT=f({...D,...It,...ta,type:P(["column"])}).strict(),RT=f({...D,...Jr,type:P(["flow"]),maxLines:A().finite().int().min(1).optional()}).strict(),OT=f({...D,...Jr,type:P(["grid"]),columns:Ne([A().finite().int().min(1).max(12),f({minWidth:A().finite().positive()}).strict()])}).strict(),Lf=f({text:y().min(1),style:Vr.innerType().pick({color:!0,fontWeight:!0,fontStyle:!0,textDecoration:!0,textSize:!0,letterSpacing:!0,fontFamily:!0,background:!0}).optional(),onTap:D.onTap}).strict(),$T=f({kinds:z(P(["mention","hashtag","url"])).min(1).max(3),style:Lf.shape.style,onTap:Ze}).strict(),IT=f({...D,...It,type:P(["text"]),text:y().optional(),spans:z(Lf).min(1).max(PT).optional(),linkify:$T.optional(),contentTransition:P(["numeric","crossfade","none"]).optional()}).strict(),CT=f({...D,...It,...$f,filter:Bm.optional()}).strict(),MT=f({...D,...It,...Sf}).strict(),jT=f({...D,type:P(["spacer"])}).strict(),Gr=f({icon:ve,label:y().min(1),onTap:Ze.optional()}).strict(),qf=f({...D,...Ct,type:P(["textField"]),stateKey:Y,placeholder:y().optional(),label:y().min(1).optional(),variant:P(["filled","outlined"]).optional(),supportingText:y().min(1).optional(),errorWhen:xt.optional(),errorText:y().min(1).max(256).optional(),keyboardType:P(["text","number","decimal","email","phone","url","password"]).optional(),secure:Z().optional(),multiline:Z().optional(),minLines:A().int().min(1).max(20).optional(),maxLines:A().int().min(1).max(20).optional(),maxLength:A().int().min(1).max(1e4).optional(),leadingIcon:ve.optional(),trailingIcon:Gr.optional(),imeAction:P(["done","next","search","send","go"]).optional(),onSubmit:Ze.optional()}).strict(),NT=f({...D,...Ct,type:P(["switch"]),stateKey:Y,label:y().min(1).optional()}).strict(),LT=f({...D,...Ct,type:P(["checkbox"]),stateKey:Y,label:y().min(1).optional()}).strict(),qT=f({...f(D).omit({onTap:!0}).shape,type:P(["pasteButton"]),into:W}).strict(),zT=f({...D,...sn,type:P(["button"]),label:y().min(1),variant:P(["filled","tonal","elevated","outlined","text"]).optional(),icon:ve.optional()}).strict(),DT=f({...D,...Ct,type:P(["radioGroup"]),stateKey:Y,options:z(f({value:y().min(1),label:y().min(1)}).strict()).min(2).max(16)}).strict(),BT=f({...D,type:P(["select"]),stateKey:Y,label:y().min(1).optional(),options:z(f({value:y().min(1),label:y().min(1)}).strict()).min(2).max(32)}).strict(),YT=cd("type",[f({type:P(["switch"]),stateKey:Y}).strict(),f({type:P(["checkbox"]),stateKey:Y}).strict(),f({type:P(["icon"]),name:ve}).strict()]),KT=f({...D,...sn,...Nf,type:P(["listItem"]),headline:y().min(1),supporting:y().min(1).optional(),leadingIcon:ve.optional(),trailing:YT.optional()}).strict(),FT=f({...D,...Ct,type:P(["slider"]),stateKey:Y,label:y().min(1).optional(),min:A().finite(),max:A().finite(),step:A().finite().optional()}).strict(),VT=f({...D,...sn,type:P(["chip"]),label:y().min(1),variant:P(["assist","filter","input","suggestion"]).optional(),stateKey:Y.optional()}).strict(),WT=f({...D,...It,type:P(["card"]),variant:P(["filled","elevated","outlined"]).optional()}).strict(),Vn=Y,ZT=f({...D,type:P(["searchBar"]),stateKey:Y,placeholder:qf.shape.placeholder,leadingIcon:ve.optional(),trailingActions:z(Gr).min(1).max(2).optional(),activeKey:Y.optional(),variant:P(["bar","docked"]).optional(),onSubmit:Ze.optional()}).strict(),Hr=f({label:y().min(1),onTap:Ze.optional()}).strict(),UT=f({...D,...sn,type:P(["iconButton"]),icon:ve,variant:P(["standard","filled","tonal","outlined"]).optional()}).strict(),XT=f({...D,...sn,type:P(["fab"]),icon:ve,label:y().min(1).optional(),size:P(["small","regular","large"]).optional()}).strict(),GT=f({...D,type:P(["segmentedButton"]),stateKey:Vn,options:z(f({value:y().min(1),label:y().min(1)}).strict()).min(2).max(5)}).strict(),HT=f({...D,type:P(["topAppBar"]),onScroll:P(["pinned","enterAlways","exitUntilCollapsed"]).optional(),scroll:y().min(1).optional(),title:y().min(1),variant:P(["small","centerAligned","medium","large"]).optional(),navigationIcon:Gr.optional(),actions:z(Gr).min(1).max(3).optional()}).strict(),JT=f({...D,...Rm}).strict(),QT=f({...D,...Om}).strict(),e0=f({...D,type:P(["progress"]),variant:P(["linear","circular"]).optional(),stateKey:Vn.optional(),max:A().finite().optional()}).strict(),t0=f({...D,...Ef}).strict(),n0=Wm(D,Ze),r0=Wc(D),o0=f({...D,type:P(["dialog"]),openWhen:on,title:y().min(1).optional(),text:y().min(1).optional(),icon:ve.optional(),confirm:Hr,dismiss:Hr.optional()}).strict(),i0=Ne([Hr.extend({icon:ve.optional(),trailingText:y().min(1).optional(),enabled:Z().optional()}).strict(),f({type:ee("divider")}).strict()]),a0=f({...D,type:P(["menu"]),openWhen:on,items:z(i0).min(1).max(16)}).strict(),s0=f({...D,type:P(["snackbar"]),openWhen:on,text:y().min(1),action:Hr.optional(),durationMs:A().int().min(1).max(600000).optional()}).strict(),l0=f({...D,...Ct,type:P(["timePicker"]),hourKey:Vn,minuteKey:Vn,is24Hour:Z().optional()}).strict(),u0=f({...D,...Ct,type:P(["datePicker"]),stateKey:Vn}).strict(),zf=xf(gp),d0=_f(D,gp,zf),c0=f({...D,type:P(["scroll"]),axis:P(["vertical","horizontal"]).default("vertical"),refresh:zf.optional(),fadeEdges:Dm.optional(),edgeEffect:P(["soft","hard","none"]).optional(),reverse:Z().optional(),stickToEnd:Z().optional(),atEndKey:Y.optional(),onStartReached:Ze.optional()}).strict(),Xr=A().finite().min(0).max(ea),p0=f({...D,type:P(["pager"]),stateKey:Y.optional(),id:y().min(1),axis:P(["horizontal","vertical"]).optional(),pageSpacing:Xr.optional(),peek:f({start:Xr.optional(),end:Xr.optional()}).strict().optional(),pageSize:Ne([P(["fill"]),f({dp:A().finite().min(0.000001).max(ea)}).strict()]).optional(),indicator:P(["none","dots"]).optional(),indicatorPlacement:P(["over","below"]).optional()}).strict(),m0=f({...D,...Jr,type:P(["carousel"]),variant:P(["multiBrowse","hero","uncontained"]).optional(),itemWidth:A().finite().min(0.000001).max(ea),itemSpacing:Xr.optional()}).strict(),f0=f({...D,type:P(["tabBar"]),onScroll:P(["none","hide","minimize"]).optional(),scroll:y().min(1).optional(),items:z(Zi).min(1).max(32),pager:y().min(1).optional(),stateKey:Y.optional(),scrollable:Z().optional()}).strict(),y0=f({...D,type:P(["bottomNav"]),onScroll:P(["none","hide","minimize"]).optional(),scroll:y().min(1).optional(),items:z(Zi).min(2).max(5),pager:y().min(1).optional(),stateKey:Y.optional()}).strict(),{tooltipBaseSchema:g0,drawerBaseSchema:h0}=tf({commonNodeShape:D,sheetConditionSchema:on,actionSchema:gp,colorValueSchema:Te}),k0=f({...D,type:P(["bottomSheet"]),openWhen:on,detents:z(qm).min(1).max(8),scrim:Te.optional(),dragHandle:Z().optional(),dismissOnSwipe:Z().optional()}).strict(),b0=jd(gp),_0=f({...D,transition:ni,type:P(["stack"]),id:y().min(1),start:y().min(1),routes:kt(b0).and(hr()).optional()}).strict(),x0=mm(D),v0=hr().transform((o,i)=>{let l=c(o);if(!l||Object.keys(l).length<1||Object.keys(l).length>V.limits.MAX_PROTOTYPE_STACK_SCREENS)return i.addIssue({code:se.custom,message:"Expected 1..32 screens"}),py;let u=[];for(let[d,m]of Object.entries(l)){if(!d.length){i.addIssue({code:se.custom,path:[d],message:"Empty screen name"});continue}let k=ke.safeParse(m);if(k.success)u.push([d,k.data]);else for(let _ of k.error.issues)i.addIssue({..._,path:[d,..._.path]})}return Object.fromEntries(u)}),P0,T0=Wr(()=>P0??=cd("type",[ST.extend({children:z(Wr(()=>ke)).min(0)}),wT.extend({children:z(Wr(()=>ke)).min(0)}),AT.extend({children:z(Wr(()=>ke)).min(0)}),RT.extend({children:z(Wr(()=>ke)).min(0)}),OT.extend({children:z(Wr(()=>ke)).min(0)}),m0.extend({children:z(Wr(()=>ke)).min(1)}),x0.extend(pm(Wr(()=>ke))),IT,CT,MT,jT,qf,ZT.extend({child:Wr(()=>ke).optional()}),NT,LT,qT,zT,DT,BT,KT,FT,VT,WT.extend({children:z(Wr(()=>ke)).min(0)}),UT,XT,GT,HT,JT,QT,e0,...n0,...r0,t0,o0.extend({child:Wr(()=>ke).optional()}),g0,h0.extend({child:Wr(()=>ke)}),a0,s0,l0,u0,d0.extend(bf(Wr(()=>ke))),c0.extend({child:Wr(()=>ke)}),p0.extend({children:z(Wr(()=>ke)).min(1)}),_0.extend({screens:v0}),f0,y0,k0.extend({child:Wr(()=>ke)})])),ke=T0.superRefine((o,i)=>{if(nf(o,i),o.type==="text"&&o.text!==void 0===(o.spans!==void 0))i.addIssue({code:se.custom,path:[o.spans!==void 0?"spans":"text"],message:o.spans!==void 0?"text and spans cannot both be set":"text node needs text or spans"})}),E0=f({...Zr,placement:Fm,backdrop:Tf.optional(),transition:P(["auto","none","fade","slide","scale"]).optional(),chrome:P(["none","bar"]).optional().describe("Fullscreen only: none (default on a device advertising prototype_window_chrome_v1) removes the host dismiss bar; a two-finger long press (about 1 s) reveals a dismiss pill for 5 s. Device persistence defaults to bar. An older device keeps the bar and refuses explicit none; lastResult.chrome reports what it draws"),deadTaps:Z().optional(),layoutDirection:P(["ltr","rtl"]).optional().describe("Prototype layout direction; absent follows the host. Needs prototype_layout_direction_v1"),keepScreenOn:Z().optional().describe("Keep the screen awake while shown; needs prototype_platform_window_controls_v1"),brightness:Ne([ee("system"),A().finite().int().min(0).max(100)]).optional().describe("Screen brightness 0-100 for the prototype window while shown, or system; needs prototype_platform_window_controls_v1"),orientation:P(["portrait","landscape","unlocked"]).optional().describe("Requested orientation while shown (best effort over an overlay); needs prototype_platform_window_controls_v1"),statusBar:P(["light","dark","auto"]).optional().describe("Status bar content style while shown (best effort where the runtime does not own the status bar); needs prototype_platform_window_controls_v1"),opacity:A().finite().int().min(0).max(100).default(100),layer:P(["app","system"]).optional().describe("system (default): above system UI. app: just above apps, so the shade, keyboard and screenshot preview draw over it; needs SYSTEM_ALERT_WINDOW, granted with appops at show time; some system apps (for example Settings) hide app-layer prototypes; the show result then carries visible: false"),persistence:P(["session","device"]).optional().describe("session (default): dismissed when the last host client disconnects or after the idle timeout. device: stays interactive after USB/adb disconnect and session end, with no idle timeout, until its close control, an explicit dismiss, a replacing show, or the CtrlProxy service stops")}).strict(),S0=f({id:y().min(1),window:E0,theme:ef.optional(),strings:gf.optional(),data:so((o)=>{if(typeof o!=="object"||o===null||Array.isArray(o))return!1;let i=Object.getPrototypeOf(o);return i===Object.prototype||i===null}).optional(),state:so((o)=>kt(H,Ne([y(),A().finite(),Z()])).safeParse(o).success).optional(),motion:P(["none","standard","reduced","expressive"]).optional(),storage:jf.optional(),requires:p$.optional(),platform:Mf.optional(),channels:xm(()=>gp).optional(),...Am(),media:Fc.optional(),derive:uf.optional(),root:Wr(()=>ke)}).strict(),vu=S0;function m$(o){let i=!1;return X(o,(l)=>{if(l.type==="stack")i=!0}),i}function Gie(o){return Mr(o).flatMap(({node:i,path:l})=>m$({root:i})?[l]:[])}function $k(o){return`The ${o==="ios"?"connected iOS prototype agent":"connected CtrlProxy"} does not advertise ${kg}, so it cannot draw stack navigation. Nothing was shown. ${o==="ios"?"Relaunch the app with launchApp prototype: true to load the agent built for this AutoMobile version":"Update the connected CtrlProxy"}, or use a spec without stacks.`}
40
+ export{se,so,ye,y,A,Z,Y3,hr,z,f,Ne,cd,kt,Wr,ee,P,J3,yoe,hu,Gz,X3,Z3,_k,Yz,xk,Vre,Wre,zre,jre,Kre,Jz,gl,Tn,Q3,n,Xz,a,eY,h,Gre,ER,Ck,Oe,jn,Yre,Jre,b,Ag,s,GB,IR,Ee,Ko,tY,Me,voe,p,I,Xre,YB,boe,Soe,pp,Dk,gu,Zre,ae,V,dd,rY,ao,c,mp,ld,JB,cr,or,Mr,X,Jm,yl,nY,XB,_R,ZB,ud,ib,xR,Zz,CR,$D,iY,fp,Tg,ob,sb,Qz,ej,tj,rj,nj,ij,oj,sj,aj,cj,dj,lj,uj,Qre,ene,tne,QB,rne,nne,pj,mj,fj,ine,oY,one,hj,gj,yj,sY,vj,sne,bj,Sj,wj,Rj,Pj,Aj,Tj,kj,Ej,ane,cne,Ij,kg,UD,_j,Ok,xj,Cj,Dj,dne,aY,cY,lne,une,pne,DR,dY,lY,Eg,e$,OR,MR,Oj,uY,pY,mY,fY,hY,gY,mne,yY,fne,hne,gne,yne,Mj,Mk,Nj,Fj,Lj,Bj,$j,vne,Uj,HD,ws,Ig,Us,_g,Pt,Xm,bne,vY,Sne,wne,Rne,Pne,Nk,Ane,bY,Hj,pd,SY,Kn,rr,Tne,kne,vl,Fk,qj,Ene,Ine,NR,_ne,t$,xg,xne,Cne,Dne,One,Mne,Nne,Fne,Lne,Bne,$ne,Une,Hne,wY,qne,Vne,Wne,zne,jne,Kne,RY,Gne,Yne,Jne,Xne,Zne,Qne,eie,tie,bl,qD,rie,Vj,nie,Wj,iie,oie,sie,yu,FR,r$,PY,zj,md,AY,aie,cie,ab,die,jj,Cg,n$,Ua,Kj,TY,i$,Lk,Bk,o$,Ha,LR,Dg,kY,BR,s$,lie,uie,pie,mie,fie,EY,hie,gie,Gj,$R,yie,vie,bie,Sie,wie,Rie,Pie,Aie,Tie,kie,Eie,Iie,a$,_ie,xie,Cie,Die,Oie,Mie,VD,hp,UR,WD,Nie,Fie,Lie,Bie,Re,cb,IY,$ie,_Y,c$,db,zD,d$,l$,Uie,Hie,qie,Vie,Wie,u$,Yj,zie,jie,p$,ua,Kie,jD,gp,vu,m$,Gie,$k};
41
+
42
+ //# debugId=15A3B39D353DC66D64756E2164756E21