UNPKG

bucklescript-tea

Version:
1,114 lines (956 loc) 36.6 kB
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE 'use strict'; var List = require("bs-platform/lib/js/list.js"); var Vdom = require("./vdom.js"); var Block = require("bs-platform/lib/js/block.js"); var Curry = require("bs-platform/lib/js/curry.js"); var $$String = require("bs-platform/lib/js/string.js"); var Tea_app = require("./tea_app.js"); var Tea_json = require("./tea_json.js"); var Tea_result = require("./tea_result.js"); var Caml_option = require("bs-platform/lib/js/caml_option.js"); function text(str) { return /* Text */Block.__(1, [str]); } var lazy1 = Vdom.lazyGen; function node($staropt$star, tagName, $staropt$star$1, $staropt$star$2, props, nodes) { var namespace = $staropt$star !== undefined ? $staropt$star : ""; var key = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; var unique = $staropt$star$2 !== undefined ? $staropt$star$2 : ""; return Vdom.fullnode(namespace, tagName, key, unique, props, nodes); } function br(props) { return Vdom.fullnode("", "br", "br", "br", props, /* [] */0); } function br$prime($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "br", key, unique, props, nodes); } function div($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "div", key, unique, props, nodes); } function span($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "span", key, unique, props, nodes); } function p($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "p", key, unique, props, nodes); } function pre($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "pre", key, unique, props, nodes); } function a($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "a", key, unique, props, nodes); } function section($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "section", key, unique, props, nodes); } function header($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "header", key, unique, props, nodes); } function footer($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "footer", key, unique, props, nodes); } function h1($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h1", key, unique, props, nodes); } function h2($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h2", key, unique, props, nodes); } function h3($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h3", key, unique, props, nodes); } function h4($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h4", key, unique, props, nodes); } function h5($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h5", key, unique, props, nodes); } function h6($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "h6", key, unique, props, nodes); } function i($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "i", key, unique, props, nodes); } function strong($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "strong", key, unique, props, nodes); } function button($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "button", key, unique, props, nodes); } function input$prime($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "input", key, unique, props, nodes); } function textarea($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "textarea", key, unique, props, nodes); } function label($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "label", key, unique, props, nodes); } function ul($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "ul", key, unique, props, nodes); } function ol($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "ol", key, unique, props, nodes); } function li($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "li", key, unique, props, nodes); } function table($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "table", key, unique, props, nodes); } function thead($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "thead", key, unique, props, nodes); } function tfoot($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "tfoot", key, unique, props, nodes); } function tbody($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "tbody", key, unique, props, nodes); } function th($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "th", key, unique, props, nodes); } function tr($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "tr", key, unique, props, nodes); } function td($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "td", key, unique, props, nodes); } function progress($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "progress", key, unique, props, nodes); } function img($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "img", key, unique, props, nodes); } function select($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "select", key, unique, props, nodes); } function option$prime($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "option", key, unique, props, nodes); } function form($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "form", key, unique, props, nodes); } function nav($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "nav", key, unique, props, nodes); } function main($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "main", key, unique, props, nodes); } function aside($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "aside", key, unique, props, nodes); } function article($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "article", key, unique, props, nodes); } function details($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "details", key, unique, props, nodes); } function figcaption($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "figcaption", key, unique, props, nodes); } function figure($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "figure", key, unique, props, nodes); } function mark($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "mark", key, unique, props, nodes); } function summary($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "summary", key, unique, props, nodes); } function time($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "time", key, unique, props, nodes); } function hr($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "hr", key, unique, props, nodes); } function blockquote($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "blockquote", key, unique, props, nodes); } function code($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "code", key, unique, props, nodes); } function em($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "em", key, unique, props, nodes); } function b($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "b", key, unique, props, nodes); } function u($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "u", key, unique, props, nodes); } function sub($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "sub", key, unique, props, nodes); } function sup($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "sup", key, unique, props, nodes); } function dl($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "dl", key, unique, props, nodes); } function dt($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "dt", key, unique, props, nodes); } function dd($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "dd", key, unique, props, nodes); } function iframe($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "iframe", key, unique, props, nodes); } function canvas($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "canvas", key, unique, props, nodes); } function address($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "address", key, unique, props, nodes); } function caption($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "caption", key, unique, props, nodes); } function colgroup($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "colgroup", key, unique, props, nodes); } function col($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "col", key, unique, props, nodes); } function fieldset($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "fieldset", key, unique, props, nodes); } function legend($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "legend", key, unique, props, nodes); } function datalist($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "datalist", key, unique, props, nodes); } function optgroup($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "optgroup", key, unique, props, nodes); } function output($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "output", key, unique, props, nodes); } function meter($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "meter", key, unique, props, nodes); } function audio($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "audio", key, unique, props, nodes); } function video($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "video", key, unique, props, nodes); } function source($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "source", key, unique, props, nodes); } function track($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "track", key, unique, props, nodes); } function embed($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "embed", key, unique, props, nodes); } function object$prime($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "object", key, unique, props, nodes); } function param($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "param", key, unique, props, nodes); } function ins($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "ins", key, unique, props, nodes); } function del($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "del", key, unique, props, nodes); } function small($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "small", key, unique, props, nodes); } function cite($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "cite", key, unique, props, nodes); } function dfn($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "dfn", key, unique, props, nodes); } function abbr($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "abbr", key, unique, props, nodes); } function var$prime($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "var", key, unique, props, nodes); } function samp($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "samp", key, unique, props, nodes); } function kbd($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "kbd", key, unique, props, nodes); } function s($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "s", key, unique, props, nodes); } function q($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "q", key, unique, props, nodes); } function rt($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "rt", key, unique, props, nodes); } function bdi($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "bdi", key, unique, props, nodes); } function bdo($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "bdo", key, unique, props, nodes); } function wbr($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "wbr", key, unique, props, nodes); } function menuitem($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "menuitem", key, unique, props, nodes); } function menu($staropt$star, $staropt$star$1, props, nodes) { var key = $staropt$star !== undefined ? $staropt$star : ""; var unique = $staropt$star$1 !== undefined ? $staropt$star$1 : ""; return Vdom.fullnode("", "menu", key, unique, props, nodes); } function id(str) { return /* RawProp */Block.__(0, [ "id", str ]); } function href(str) { return /* Attribute */Block.__(1, [ "", "href", str ]); } function src(str) { return /* Attribute */Block.__(1, [ "", "src", str ]); } function title(str) { return /* Attribute */Block.__(1, [ "", "title", str ]); } function class$prime(name) { return /* RawProp */Block.__(0, [ "className", name ]); } function classList(classes) { var name = $$String.concat(" ", List.map((function (param) { return param[0]; }), List.filter((function (param) { return param[1]; }))(classes))); return /* RawProp */Block.__(0, [ "className", name ]); } function type$prime(typ) { return /* RawProp */Block.__(0, [ "type", typ ]); } var style = Vdom.style; function styles(s) { return /* Style */Block.__(4, [s]); } function placeholder(str) { return /* RawProp */Block.__(0, [ "placeholder", str ]); } function autofocus(b) { if (b) { return /* RawProp */Block.__(0, [ "autofocus", "autofocus" ]); } else { return /* NoProp */0; } } function value(str) { return /* RawProp */Block.__(0, [ "value", str ]); } function name(str) { return /* RawProp */Block.__(0, [ "name", str ]); } function checked(b) { if (b) { return /* RawProp */Block.__(0, [ "checked", "checked" ]); } else { return /* NoProp */0; } } function for$prime(str) { return /* RawProp */Block.__(0, [ "htmlFor", str ]); } function hidden(b) { if (b) { return /* RawProp */Block.__(0, [ "hidden", "hidden" ]); } else { return /* NoProp */0; } } function target(t) { return /* RawProp */Block.__(0, [ "target", t ]); } function action(a) { return /* RawProp */Block.__(0, [ "action", a ]); } function method$prime(m) { return /* RawProp */Block.__(0, [ "method", m ]); } var onCB = Vdom.onCB; var onMsg = Vdom.onMsg; function onInputOpt($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return Vdom.onCB("input", key, (function (ev) { var match = ev.target; if (match !== undefined) { var match$1 = match.value; if (match$1 !== undefined) { return Curry._1(msg, match$1); } else { return ; } } })); } function onInput($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return onInputOpt(key, (function (ev) { return Caml_option.some(Curry._1(msg, ev)); })); } function onChangeOpt($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return Vdom.onCB("change", key, (function (ev) { var match = ev.target; if (match !== undefined) { var match$1 = match.value; if (match$1 !== undefined) { return Curry._1(msg, match$1); } else { return ; } } })); } function onChange($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return onChangeOpt(key, (function (ev) { return Caml_option.some(Curry._1(msg, ev)); })); } function onClick(msg) { return Vdom.onMsg("click", msg); } function onDoubleClick(msg) { return Vdom.onMsg("dblclick", msg); } function onBlur(msg) { return Vdom.onMsg("blur", msg); } function onFocus(msg) { return Vdom.onMsg("focus", msg); } function onCheckOpt($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return Vdom.onCB("change", key, (function (ev) { var match = ev.target; if (match !== undefined) { var match$1 = match.checked; if (match$1 !== undefined) { return Curry._1(msg, match$1); } else { return ; } } })); } function onCheck($staropt$star, msg) { var key = $staropt$star !== undefined ? $staropt$star : ""; return onCheckOpt(key, (function (ev) { return Caml_option.some(Curry._1(msg, ev)); })); } function onMouseDown(msg) { return Vdom.onMsg("mousedown", msg); } function onMouseUp(msg) { return Vdom.onMsg("mouseup", msg); } function onMouseEnter(msg) { return Vdom.onMsg("mouseenter", msg); } function onMouseLeave(msg) { return Vdom.onMsg("mouseleave", msg); } function onMouseOver(msg) { return Vdom.onMsg("mouseover", msg); } function onMouseOut(msg) { return Vdom.onMsg("mouseout", msg); } var defaultOptions = { stopPropagation: false, preventDefault: false }; function onWithOptions(key, eventName, options, decoder) { return Vdom.onCB(eventName, key, (function ($$event) { if (options.stopPropagation) { $$event.stopPropagation(); } if (options.preventDefault) { $$event.preventDefault(); } return Tea_result.result_to_option(Tea_json.Decoder.decodeEvent(decoder, $$event)); })); } function on(key, eventName, decoder) { return onWithOptions(key, eventName, defaultOptions, decoder); } var targetValue = Tea_json.Decoder.at(/* :: */[ "target", /* :: */[ "value", /* [] */0 ] ], Tea_json.Decoder.string); var targetChecked = Tea_json.Decoder.at(/* :: */[ "target", /* :: */[ "checked", /* [] */0 ] ], Tea_json.Decoder.bool); var keyCode = Tea_json.Decoder.field("keyCode", Tea_json.Decoder.$$int); function max(value) { return /* Attribute */Block.__(1, [ "", "max", value ]); } function min(value) { return /* Attribute */Block.__(1, [ "", "min", value ]); } function step(value) { return /* Attribute */Block.__(1, [ "", "step", value ]); } function disabled(b) { if (b) { return /* Attribute */Block.__(1, [ "", "disabled", "true" ]); } else { return /* NoProp */0; } } function selected(b) { if (b) { return /* Attribute */Block.__(1, [ "", "selected", "true" ]); } else { return /* NoProp */0; } } function acceptCharset(c) { return /* Attribute */Block.__(1, [ "", "accept-charset", c ]); } function rel(value) { return /* Attribute */Block.__(1, [ "", "rel", value ]); } var Attributes = { max: max, min: min, step: step, disabled: disabled, selected: selected, acceptCharset: acceptCharset, rel: rel }; var Cmds = /* alias */0; var map = Tea_app.map; var noNode = Vdom.noNode; var noProp = /* NoProp */0; exports.Cmds = Cmds; exports.map = map; exports.noNode = noNode; exports.text = text; exports.lazy1 = lazy1; exports.node = node; exports.br = br; exports.br$prime = br$prime; exports.div = div; exports.span = span; exports.p = p; exports.pre = pre; exports.a = a; exports.section = section; exports.header = header; exports.footer = footer; exports.h1 = h1; exports.h2 = h2; exports.h3 = h3; exports.h4 = h4; exports.h5 = h5; exports.h6 = h6; exports.i = i; exports.strong = strong; exports.button = button; exports.input$prime = input$prime; exports.textarea = textarea; exports.label = label; exports.ul = ul; exports.ol = ol; exports.li = li; exports.table = table; exports.thead = thead; exports.tfoot = tfoot; exports.tbody = tbody; exports.th = th; exports.tr = tr; exports.td = td; exports.progress = progress; exports.img = img; exports.select = select; exports.option$prime = option$prime; exports.form = form; exports.nav = nav; exports.main = main; exports.aside = aside; exports.article = article; exports.details = details; exports.figcaption = figcaption; exports.figure = figure; exports.mark = mark; exports.summary = summary; exports.time = time; exports.hr = hr; exports.blockquote = blockquote; exports.code = code; exports.em = em; exports.b = b; exports.u = u; exports.sub = sub; exports.sup = sup; exports.dl = dl; exports.dt = dt; exports.dd = dd; exports.iframe = iframe; exports.canvas = canvas; exports.address = address; exports.caption = caption; exports.colgroup = colgroup; exports.col = col; exports.fieldset = fieldset; exports.legend = legend; exports.datalist = datalist; exports.optgroup = optgroup; exports.output = output; exports.meter = meter; exports.audio = audio; exports.video = video; exports.source = source; exports.track = track; exports.embed = embed; exports.object$prime = object$prime; exports.param = param; exports.ins = ins; exports.del = del; exports.small = small; exports.cite = cite; exports.dfn = dfn; exports.abbr = abbr; exports.var$prime = var$prime; exports.samp = samp; exports.kbd = kbd; exports.s = s; exports.q = q; exports.rt = rt; exports.bdi = bdi; exports.bdo = bdo; exports.wbr = wbr; exports.menuitem = menuitem; exports.menu = menu; exports.noProp = noProp; exports.id = id; exports.href = href; exports.src = src; exports.title = title; exports.class$prime = class$prime; exports.classList = classList; exports.type$prime = type$prime; exports.style = style; exports.styles = styles; exports.placeholder = placeholder; exports.autofocus = autofocus; exports.value = value; exports.name = name; exports.checked = checked; exports.for$prime = for$prime; exports.hidden = hidden; exports.target = target; exports.action = action; exports.method$prime = method$prime; exports.onCB = onCB; exports.onMsg = onMsg; exports.onInputOpt = onInputOpt; exports.onInput = onInput; exports.onChangeOpt = onChangeOpt; exports.onChange = onChange; exports.onClick = onClick; exports.onDoubleClick = onDoubleClick; exports.onBlur = onBlur; exports.onFocus = onFocus; exports.onCheckOpt = onCheckOpt; exports.onCheck = onCheck; exports.onMouseDown = onMouseDown; exports.onMouseUp = onMouseUp; exports.onMouseEnter = onMouseEnter; exports.onMouseLeave = onMouseLeave; exports.onMouseOver = onMouseOver; exports.onMouseOut = onMouseOut; exports.defaultOptions = defaultOptions; exports.onWithOptions = onWithOptions; exports.on = on; exports.targetValue = targetValue; exports.targetChecked = targetChecked; exports.keyCode = keyCode; exports.Attributes = Attributes; /* targetValue Not a pure module */