{"version":3,"sources":["jsdelivr-header.js","/npm/views-morph@12.0.3/morph/react/wrap.js","/npm/views-morph@12.0.3/morph/react/safe.js","/npm/views-morph@12.0.3/morph/utils.js","/npm/views-morph@12.0.3/morph/react/block-add-test-id-prop.js","/npm/views-morph@12.0.3/morph/react-dom/block-capture.js","/npm/views-morph@12.0.3/morph/react/block-explicit-children.js","/npm/views-morph@12.0.3/morph/react-dom/block-go-to.js","/npm/views-morph@12.0.3/morph/react/block-group.js","/npm/views-morph@12.0.3/morph/react/block-in-list.js","/npm/views-morph@12.0.3/morph/react/block-list.js","/npm/views-morph@12.0.3/morph/react/block-name.js","/npm/views-morph@12.0.3/morph/react-dom/get-block-name.js","/npm/views-morph@12.0.3/morph/react-dom/block-name.js","/npm/views-morph@12.0.3/morph/react/block-off-when.js","/npm/views-morph@12.0.3/morph/react/properties-children-proxy-map.js","/npm/views-morph@12.0.3/morph/react-dom/properties-class-name.js","/npm/views-morph@12.0.3/morph/react-dom/properties-image.js","/npm/views-morph@12.0.3/morph/react/properties-route.js","/npm/views-morph@12.0.3/morph/react/properties-style.js","/npm/views-morph@12.0.3/morph/hash.js","/npm/views-morph@12.0.3/morph/react-dom/properties-style.js","/npm/views-morph@12.0.3/morph/react/property-ref.js","/npm/views-morph@12.0.3/morph/react/property-rest.js","/npm/views-morph@12.0.3/morph/react/property-style.js","/npm/views-morph@12.0.3/morph/react/property-text.js","/npm/views-morph@12.0.3/morph/react-dom/is-valid-property-for-block.js","/npm/views-morph@12.0.3/morph/react-dom/block-properties.js","/npm/views-morph@12.0.3/morph/react/block-proxy.js","/npm/views-morph@12.0.3/morph/react/block-route.js","/npm/views-morph@12.0.3/morph/react/block-set-test-id.js","/npm/views-morph@12.0.3/morph/react/block-teleport.js","/npm/views-morph@12.0.3/morph/react-dom/block.js","/npm/views-morph@12.0.3/morph/fonts.js","/npm/views-morph@12.0.3/morph/react-dom/get-style-for-property.js","/npm/views-morph@12.0.3/morph/react-dom/get-styles.js","/npm/views-morph@12.0.3/morph/react-dom/get-value-for-property.js","/npm/views-morph@12.0.3/morph/react-dom/maybe-uses-router.js","/npm/views-morph@12.0.3/morph/react/restricted-names.js","/npm/views-morph@12.0.3/morph/react/get-body.js","/npm/views-morph@12.0.3/morph/react/get-context.js","/npm/views-morph@12.0.3/morph/react/get-default-props.js","/npm/views-morph@12.0.3/morph/react/svg.js","/npm/views-morph@12.0.3/morph/react/get-dependencies.js","/npm/views-morph@12.0.3/morph/react/to-component.js","/npm/views-morph@12.0.3/morph/walk.js","/npm/views-morph@12.0.3/morph/react-dom.js","/npm/views-morph@12.0.3/morph/react-native/block-background-image.js","/npm/views-morph@12.0.3/morph/react-native/block-capture.js","/npm/views-morph@12.0.3/morph/react-native/get-block-name.js","/npm/views-morph@12.0.3/morph/react-native/block-name.js","/npm/views-morph@12.0.3/morph/react-native/properties-style.js","/npm/views-morph@12.0.3/morph/react-native/is-valid-property-for-block.js","/npm/views-morph@12.0.3/morph/react-native/block-properties.js","/npm/views-morph@12.0.3/morph/react-native/block-wrap.js","/npm/views-morph@12.0.3/morph/react-native/block.js","/npm/views-morph@12.0.3/morph/react-native/get-style-for-property.js","/npm/views-morph@12.0.3/morph/react-native/get-styles.js","/npm/views-morph@12.0.3/morph/react-native/get-value-for-property.js","/npm/views-morph@12.0.3/morph/react-native/maybe-uses-router.js","/npm/views-morph@12.0.3/morph/react-native/maybe-uses-style-sheet.js","/npm/views-morph@12.0.3/morph/react-native.js","/npm/views-morph@12.0.3/morph/e2e/block.js","/npm/views-morph@12.0.3/morph/e2e/to-file.js","/npm/views-morph@12.0.3/morph/e2e.js","/npm/views-morph@12.0.3/morphers.js","/npm/views-morph@12.0.3/get-view-not-found.js","/npm/views-morph@12.0.3/morph/react-dom/morph-font.js","/npm/views-morph@12.0.3/morph/react-native/morph-font.js","/npm/views-morph@12.0.3/morph/font.js","/npm/views-morph@12.0.3/restricted-names.js","/npm/views-morph@12.0.3/parse/prop-is-style.js","/npm/views-morph@12.0.3/parse/did-you-mean.js","/npm/views-morph@12.0.3/parse/prop-is-number.js","/npm/views-morph@12.0.3/parse/helpers.js","/npm/views-morph@12.0.3/parse/get-loc.js","/npm/views-morph@12.0.3/parse/get-tags.js","/npm/views-morph@12.0.3/parse/index.js","/npm/views-morph@12.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,moBCNA,KAAA,SAAe,G,UAAS,EAAT,GAAf,ECGA,KAAA,SAAe,G,MACI,iBAAV,GAAuB,OAAO,GAEjC,KAAK,GADL,KAAK,UAAU,EAFrB,E,wkCCEM,UAAY,SAAA,G,MACC,iBAAV,GAAuB,OAAO,GAAiC,EAAxB,KAAK,UAAU,E,EAElD,gBAAkB,SAAC,EAAM,G,QACnB,UAAb,GAAqC,aAAb,IAA4B,EAAK,UAGlC,EAAK,OAAO,OAAO,MAC5C,SAAA,G,OAAS,EAAM,QAAU,C,MAGG,EAAK,OAAO,IAAM,EAAK,OAAO,M,EAGxD,cAAgB,WACT,gBAAkB,SAAA,G,OAAO,cAAc,KAAK,E,EAC5C,cAAgB,SAAA,G,IACrB,EAAQ,EAAI,MAAM,e,OACjB,EAAQ,EAAM,GAAK,C,EAGf,kBAAoB,SAApB,EAAoB,G,OAC/B,KACE,OAAO,KAAK,GACT,KAAI,SAAA,G,IACG,EACc,WAAlB,QAAO,EAAI,KAAmB,QAAQ,EAAI,IACtC,EAAkB,EAAI,IACtB,EAAI,G,OACA,KAAK,UAAU,GAAzB,KAAgC,C,IAEjC,KAAK,K,EAGC,sBAAwB,SAAA,G,IAC7B,EAAM,G,SAEP,SAAQ,SAAA,G,EACP,EAAK,MAAQ,UAAU,EAAK,M,IAG3B,kBAAkB,E,EAGd,QAAU,SAAC,EAAM,G,IACtB,EACW,iBAAR,EAAmB,SAAA,G,OAAK,EAAE,OAAS,C,EAAM,SAAA,G,OAAK,EAAI,KAAK,EAAE,K,SAE3D,EAAK,YAAc,EAAK,WAAW,KAAK,E,EAK3C,UAAY,SAAA,G,OACh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O,KAEjB,MAGD,I,EACM,KAAO,SAAS,OAAO,EAAQ,KAAM,C,aAC9B,E,cACE,SAIZ,C,EAGI,gBAAkB,SAAC,EAAI,EAAM,G,OACxC,kBAAkB,GAAI,EAAM,E,EAExB,SAAW,SAAA,G,OACf,cAAS,GACN,QAAQ,aAAQ,GAAQ,IACxB,QAAQ,mBAAoB,KAC5B,QAAQ,KAAM,IACd,QAAQ,KAAM,IACd,QAAQ,QAAS,M,EAET,WAAa,SAAA,G,OACxB,aAAa,SAAS,cAAS,GAAM,QAAQ,QAAS,K,EAE3C,qBAAuB,SAAC,EAAM,G,OACzC,gBAAgB,GAAI,SAAS,E","file":"/npm/views-morph@12.0.3/lib.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/views-morph@12.0.3/lib.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export default s => `{${s}}`\n","import { isSlot } from '../utils.js'\nimport wrap from './wrap.js'\n\nexport default value =>\n  typeof value === 'string' && !isSlot(value)\n    ? JSON.stringify(value)\n    : wrap(value)\n","import safe from './react/safe.js'\nimport wrap from './react/wrap.js'\nimport toCamelCase from 'to-camel-case'\nimport toSlugCase from 'to-slug-case'\n\nconst safeScope = value =>\n  typeof value === 'string' && !isSlot(value) ? JSON.stringify(value) : value\n\nexport const checkParentStem = (node, styleKey) => {\n  if (styleKey !== 'hover' || styleKey !== 'disabled' || !node.parent)\n    return false\n\n  const matchingParentStem = node.parent.scopes.some(\n    scope => scope.value === styleKey\n  )\n\n  return matchingParentStem && (node.parent.is || node.parent.name)\n}\n\nconst INTERPOLATION = /\\${(.+)}/\nexport const isInterpolation = str => INTERPOLATION.test(str)\nexport const deinterpolate = str => {\n  const match = str.match(INTERPOLATION)\n  return match ? match[1] : str\n}\n\nexport const getObjectAsString = obj =>\n  wrap(\n    Object.keys(obj)\n      .map(k => {\n        const v =\n          typeof obj[k] === 'object' && hasKeys(obj[k])\n            ? getObjectAsString(obj[k])\n            : obj[k]\n        return `${JSON.stringify(k)}: ${v}`\n      })\n      .join(',')\n  )\n\nexport const getPropertiesAsObject = list => {\n  const obj = {}\n\n  list.forEach(prop => {\n    obj[prop.name] = safeScope(prop.value)\n  })\n\n  return getObjectAsString(obj)\n}\n\nexport const getProp = (node, key) => {\n  const finder =\n    typeof key === 'string' ? p => p.name === key : p => key.test(p.name)\n\n  return node.properties && node.properties.find(finder)\n}\n\nexport const getScope = node => node.value.split('when ')[1]\n\nconst maybeSafe = node =>\n  node.tags.slot\n    ? node.value\n    : typeof node.value === 'string' ? safe(node.value) : node.value\n\nconst getScopedProps = (propNode, blockNode) => {\n  const scopes = blockNode.scopes\n    .filter(scope => !scope.isSystem)\n    .map(scope => {\n      const prop = scope.properties.find(prop => prop.name === propNode.name)\n      return prop && { prop, when: scope.value }\n    })\n    .filter(Boolean)\n    .reverse()\n\n  if (isEmpty(scopes)) return false\n\n  return scopes\n}\n\nexport const getScopedCondition = (propNode, blockNode) => {\n  let conditional = maybeSafe(propNode)\n\n  if (!getScopedProps(propNode, blockNode)) return false\n\n  getScopedProps(propNode, blockNode).forEach(scope => {\n    conditional = `${scope.when} ? ${maybeSafe(scope.prop)} : ` + conditional\n  })\n\n  return conditional\n}\n\nexport const getScopedImageCondition = (scopes, scopedNames, defaultName) => {\n  let conditional = defaultName\n\n  scopes.forEach((scope, index) => {\n    conditional = `${scope.when} ? ${scopedNames[index]} : ` + conditional\n  })\n\n  return conditional\n}\n\nexport const getScopedRequireCondition = (scopes, paths, defaultName) => {\n  let conditional = `requireImage('${defaultName}')`\n\n  scopes.forEach((scope, index) => {\n    conditional =\n      `${scope.when} ? requireImage('${paths[index]}') : ` + conditional\n  })\n\n  return conditional\n}\n\nconst styleStems = ['hover', 'focus', 'placeholder', 'disabled', 'print']\nexport const getStyleType = node =>\n  styleStems.find(tag => isTag(node, tag)) || 'base'\nexport const hasKeys = obj => Object.keys(obj).length > 0\nexport const hasKeysInChildren = obj =>\n  Object.keys(obj).some(k => hasKeys(obj[k]))\n\nexport const hasProp = (node, key, match) => {\n  const prop = getProp(node, key)\n  if (!prop) return false\n  return typeof match === 'function' ? match(prop.value) : true\n}\n\nexport const hasDefaultProp = (node, parent) =>\n  parent.properties.some(prop => prop.nameRaw === node.nameRaw)\n\nexport const isSlot = node =>\n  typeof node === 'string' ? /props/.test(node) : isTag(node, 'slot')\nexport const isStyle = node => isTag(node, 'style')\nexport const isTag = (node, tag) => node && node.tags[tag]\n\nexport const getActionableParent = node => {\n  if (!node.parent) return false\n  if (node.parent.action) return node.parent\n  return getActionableParent(node.parent)\n}\n\nexport const getAllowedStyleKeys = node => {\n  if (node.isCapture) {\n    return ['base', 'focus', 'hover', 'disabled', 'placeholder', 'print']\n  } else if (node.action || getActionableParent(node)) {\n    return ['base', 'focus', 'hover', 'disabled', 'print']\n  }\n  return ['base', 'focus', 'print']\n}\n\nexport const isList = node =>\n  node && node.type === 'Block' && node.name === 'List'\n\nexport const isEmpty = list => list.length === 0\n\nexport const isValidImgSrc = (node, parent) =>\n  node.name === 'source' && parent.name === 'Image' && parent.isBasic\n\nexport const pushImageToState = (state, scopedNames, paths) =>\n  scopedNames.forEach(name => {\n    const path = paths[scopedNames.findIndex(item => item === name)]\n    if (!state.images.includes(path)) {\n      state.images.push({\n        name,\n        file: path,\n      })\n    }\n  })\n\nexport const getScopes = (node, parent) => {\n  const scopedProps = getScopedProps(node, parent)\n  if (!scopedProps) return false\n  const paths = scopedProps.map(scope => scope.prop.value)\n  const scopedNames = paths.map(path => toCamelCase(path))\n\n  return { scopedProps, paths, scopedNames }\n}\n\nexport const isSvg = node => /^Svg/.test(node.name) && node.isBasic\n\nexport const getScopeDescription = scope => {\n  const dictionary = {}\n  const re = /(?:^|\\W)props.(\\w+)(?!\\w)/g\n\n  let match = re.exec(scope)\n  while (match) {\n    dictionary[match[1]] = toSlugCase(match[1])\n    match = re.exec(scope)\n  }\n\n  for (let key in dictionary) {\n    scope = scope.replace(new RegExp(key, 'g'), dictionary[key])\n  }\n\n  return toCamelCase(\n    scope\n      .replace(/\\|\\|/g, '-or-')\n      .replace(/!/g, 'not-')\n      .replace(/&&/g, '-and-')\n      .replace(/props\\./g, '')\n      .replace(/\\s/g, '')\n  )\n}\n\nexport const makeOnClickTracker = (node, state) => {\n  const block = node.testId\n    ? `\"${state.name}.${node.testId}\"`\n    : `props[\"${state.testIdKey}\"] || \"${state.name}\"`\n\n  state.isTracking = true\n\n  return `event => context.track({ block: ${block}, action: \"click\", callback: ${\n    node.value\n  }, event })`\n}\n","import { getScopeDescription } from '../utils.js'\n\nexport const enter = (node, parent, state) => {\n  if (node.name === 'Proxy') return\n\n  const scopes = node.scopes\n    .filter(scope => !scope.isSystem)\n    .map(scope => scope.value)\n    .filter(Boolean)\n    .reverse()\n\n  let conditional = scopes.reduce(\n    (prev, scope) => `${scope} ? '${getScopeDescription(scope)}|' : ${prev}`,\n    \"''\"\n  )\n  conditional = scopes.length > 0 ? `\\${${conditional}}` : ''\n\n  let value\n  if (parent) {\n    value = `{\\`${state.name}.${node.testId}|${conditional}\\`}`\n  } else {\n    value = `{\\`\\${props['${state.testIdKey}'] || '${\n      node.testId\n    }'}|${conditional}\\`}`\n  }\n\n  state.render.push(` ${state.testIdKey}=${value}`)\n}\n","import { getProp } from '../utils.js'\nimport toCamelCase from 'to-camel-case'\n\nconst typesMap = {\n  CaptureEmail: 'email',\n  CaptureText: 'text',\n  CaptureNumber: 'number',\n  CapturePhone: 'tel',\n  CaptureSecure: 'password',\n}\n\nexport const enter = (node, parent, state) => {\n  const blockType = node.name\n\n  if (!/Capture/.test(blockType)) return\n\n  node.isCapture = true\n\n  const name = toCamelCase(node.is || blockType)\n  state.captures.push(name)\n\n  if (typesMap[blockType]) {\n    state.render.push(` type='${typesMap[blockType]}'`)\n  }\n\n  // if you specify a value, then you're supposed to manage the input from\n  // outside the view\n  if (getProp(node, 'value')) return\n\n  state.render.push(\n    ` onChange={event => this.setState({ ${name}: event.target.value })}`\n  )\n  state.render.push(` value={state.${name}}`)\n\n  if (state.debug) {\n    state.render.push(` tabIndex={-1}`)\n  }\n}\n","export function leave(node, parent, state) {\n  if (node.explicitChildren) {\n    state.render.push('>')\n    state.render.push(node.explicitChildren)\n  }\n}\n","import { getProp } from '../utils.js'\nimport safe from '../react/safe.js'\n\nexport const enter = (node, parent, state) => {\n  if (node.goTo) {\n    const goTo = getProp(node, 'goTo')\n    state.render.push(\n      ` href=${safe(\n        goTo.value,\n        goTo\n      )} rel='noopener noreferrer' target='_blank'`\n    )\n  }\n}\n","export function enter(node, parent, state) {\n  if (node.isGroup && node.children.length > 0) {\n    state.render.push('>')\n  }\n}\n","import { isList } from '../utils.js'\n\nexport function enter(node, parent, state) {\n  if (isList(parent)) {\n    state.render.push(' {...item} key={item.id || index}')\n  }\n}\n","import { getProp, isList } from '../utils.js'\n\nexport function enter(node, parent, state) {\n  if (isList(node)) {\n    const from = getProp(node, 'from')\n    if (!from) return\n\n    state.render.push(\n      `{Array.isArray(${from.value}) && ${from.value}.map((item, index) => `\n    )\n  }\n}\n\nexport function leave(node, parent, state) {\n  if (isList(node)) {\n    state.render.push(')}')\n  }\n}\n","export function leave(node, parent, state) {\n  if (\n    (!parent && node.isGroup) ||\n    node.explicitChildren ||\n    (node.isGroup && node.children.length > 0)\n  ) {\n    if (!parent && node.isGroup) {\n      if (node.children.length === 0) {\n        state.render.push('>')\n      }\n\n      if (!node.usesProxy) {\n        state.render.push(`{props.children}`)\n      }\n    }\n    state.render.push(`</${node.nameFinal}>`)\n  } else {\n    state.render.push('/>')\n  }\n}\n","import { getProp, hasProp } from '../utils.js'\nimport toCamelCase from 'to-camel-case'\n\nexport default (node, parent, state) => {\n  let name = node.name\n\n  switch (node.name) {\n    case 'CaptureEmail':\n    case 'CaptureFile':\n    case 'CaptureNumber':\n    case 'CapturePhone':\n    case 'CaptureSecure':\n    case 'CaptureText':\n      name = 'input'\n      break\n\n    case 'CaptureTextArea':\n      name = 'textarea'\n      break\n\n    case 'Horizontal':\n    case 'Vertical':\n      name = getGroupBlockName(node, parent, state)\n      break\n\n    case 'Image':\n      name = 'img'\n      break\n\n    case 'Text':\n      return 'span'\n\n    case 'List':\n      name = 'div'\n      break\n\n    case 'Proxy':\n      return null\n\n    case 'Svg':\n      name = 'svg'\n      break\n\n    case 'SvgGroup':\n      name = 'g'\n      break\n\n    case 'SvgCircle':\n    case 'SvgEllipse':\n    case 'SvgLinearGradient':\n    case 'SvgRadialGradient':\n    case 'SvgLine':\n    case 'SvgText':\n    case 'SvgPath':\n    case 'SvgPolygon':\n    case 'SvgPolyline':\n    case 'SvgRect':\n    case 'SvgSymbol':\n    case 'SvgUse':\n    case 'SvgDefs':\n    case 'SvgStop':\n      name = toCamelCase(node.name.replace('Svg', ''))\n      break\n\n    default:\n      break\n  }\n\n  return name\n}\n\nconst getGroupBlockName = (node, parent, state) => {\n  let name = 'div'\n\n  if (hasProp(node, 'teleportTo')) {\n    name = 'Link'\n    node.teleport = true\n  } else if (hasProp(node, 'goTo')) {\n    name = 'a'\n    node.goTo = true\n  } else if (hasProp(node, 'onClick')) {\n    const propNode = getProp(node, 'onClick')\n    let prevParent = parent\n    let canBeButton = true\n\n    while (prevParent && canBeButton) {\n      if (prevParent.type === 'Block') {\n        canBeButton = !hasProp(prevParent, 'onClick')\n      }\n      prevParent = prevParent.parent\n    }\n\n    if (canBeButton) {\n      name = 'button'\n      node.action = propNode.value\n    }\n  } else if (hasProp(node, 'overflowY', v => v === 'auto' || v === 'scroll')) {\n    name = 'div'\n  } else if (hasProp(node, 'onSubmit')) {\n    name = 'form'\n  }\n\n  return name\n}\n","import { checkParentStem } from '../utils.js'\nimport { leave } from '../react/block-name.js'\nimport getBlockName from './get-block-name.js'\n\nexport function enter(node, parent, state) {\n  let name = getBlockName(node, parent, state)\n  if (name === null) return true\n\n  node.nameFinal = name\n  node.nameTag = name\n  state.use(name)\n\n  if (node.isBasic) {\n    const hasDynamicStyles = node.properties.some(\n      prop => prop.tags.style && prop.tags.slot\n    )\n\n    const hasDynamicScopedStyles = node.scopes.some(\n      scope =>\n        scope.isSystem\n          ? scope.properties.some(prop => prop.tags.style && prop.tags.slot)\n          : scope.properties.some(prop => prop.tags.style)\n    )\n\n    // TODO expand to active, focus, etc\n    const hasHoverStem = node.scopes.some(scope => scope.value === 'hover')\n    const hasMatchingParentWithHover =\n      hasHoverStem && checkParentStem(node, 'hover')\n\n    node.isDynamic =\n      hasDynamicStyles || hasDynamicScopedStyles || hasMatchingParentWithHover\n\n    if (node.isDynamic) {\n      // we need to reset it to the block's name or value\n      let finalValue = node.is || node.name\n\n      // count repeatead ones\n      if (state.usedBlockNames[finalValue]) {\n        finalValue = `${finalValue}${state.usedBlockNames[finalValue]++}`\n      } else {\n        state.usedBlockNames[finalValue] = 1\n      }\n\n      node.nameFinal = finalValue\n    }\n  }\n\n  state.render.push(`<${node.nameFinal}`)\n}\n\nexport { leave }\n","import { getProp, isList } from '../utils.js'\n\nexport function enter(node, parent, state) {\n  // onWhen lets you show/hide blocks depending on props\n  const onWhen = getProp(node, 'onWhen')\n\n  if (onWhen) {\n    node.onWhen = true\n\n    if (parent && !isList(parent)) state.render.push('{')\n\n    state.render.push(`${onWhen.value} ? `)\n  }\n}\n\nexport function leave(node, parent, state) {\n  if (node.onWhen) {\n    state.render.push(` : null`)\n    if (parent && !isList(parent)) state.render.push('}')\n  }\n}\n","import { getObjectAsString } from '../utils.js'\n\nexport function leave(node, parent, state) {\n  if (node.childrenProxyMap) {\n    state.render.push(\n      ` childrenProxyMap={${getObjectAsString(node.childrenProxyMap)}}`\n    )\n  }\n}\n","import { deinterpolate, getProp, isSlot, isInterpolation } from '../utils.js'\nimport wrap from '../react/wrap.js'\n\nexport const enter = (node, parent, state) => {\n  node.className = ['views-block']\n\n  const className = getProp(node, 'className')\n  if (className) {\n    node.className.push(\n      className.tags.slot ? `\\${${className.value}}` : className.value\n    )\n  }\n\n  if (state.debug && node.isCapture) {\n    node.className.push('mousetrap')\n  }\n}\n\nexport const leave = (node, parent, state) => {\n  if (node.className.length === 1) {\n    let className = node.className[0]\n    let shouldWrap = true\n\n    if (isInterpolation(className)) {\n      className = deinterpolate(className)\n    } else if (!isSlot(className)) {\n      className = `\"${className}\"`\n      shouldWrap = false\n    }\n\n    state.render.push(` className=${shouldWrap ? wrap(className) : className}`)\n  } else if (node.className.length > 1) {\n    const className = `\\`${node.className.join(' ')}\\``\n    state.render.push(` className=${wrap(className)}`)\n  }\n}\n","export const enter = (node, parent, state) => {\n  // TODO caption\n  if (node.name === 'Image') {\n    state.render.push(' alt={\"\"}')\n  }\n}\n","export function leave(node, parent, state) {\n  if (node.isRoute) {\n    state.render.push(' {...routeProps}')\n  }\n}\n","import { checkParentStem, isSlot } from '../utils.js'\nimport safe from './safe.js'\n\nexport function enter(node, parent, state) {\n  node.style = {\n    dynamic: {\n      base: {},\n      hover: {},\n      focus: {},\n      disabled: {},\n      placeholder: {},\n      print: {},\n    },\n    static: {\n      base: {},\n      hover: {},\n      focus: {},\n      disabled: {},\n      placeholder: {},\n      print: {},\n    },\n  }\n\n  // TODO use this directly in styles without having to go through this\n  node.scopes.filter(scope => scope.isSystem).forEach(scope => {\n    scope.properties.forEach(propNode => {\n      if (propNode.name === 'when') return\n\n      const { _isProp, ...styleForProperty } = state.getStyleForProperty(\n        propNode,\n        node,\n        isSlot(propNode)\n      )\n\n      if (_isProp) {\n        Object.keys(styleForProperty).forEach(k =>\n          state.render.push(` ${k}=${safe(styleForProperty[k], node)}`)\n        )\n      } else {\n        const hasMatchingParent =\n          parent && node.isDynamic ? checkParentStem(node, scope.value) : false\n        const target =\n          isSlot(propNode) || hasMatchingParent\n            ? node.style.dynamic\n            : node.style.static\n        Object.assign(target[scope.value], styleForProperty)\n      }\n    })\n  })\n\n  // ensure flex-direction in Horizontals\n  if (node.isGroup && node.name === 'Horizontal') {\n    node.style.static.base.flexDirection = 'row'\n  }\n}\n","// https://raw.githubusercontent.com/threepointone/glam/master/src/hash.js\n// murmurhash2 via https://gist.github.com/raycmorgan/588423\n\nexport default (arr, prefix = 'h') => `h${hash(arr)}`\nfunction hash(arr) {\n  let str = (Array.isArray(arr)\n    ? arr\n    : Object.keys(arr).map(k => `${k}:${JSON.stringify(arr[k])}`)).join(',')\n  return murmur2(str, str.length).toString(36)\n}\n\nexport function murmur2(str, seed) {\n  let m = 0x5bd1e995\n  let r = 24\n  let h = seed ^ str.length\n  let length = str.length\n  let currentIndex = 0\n\n  while (length >= 4) {\n    let k = UInt32(str, currentIndex)\n\n    k = Umul32(k, m)\n    k ^= k >>> r\n    k = Umul32(k, m)\n\n    h = Umul32(h, m)\n    h ^= k\n\n    currentIndex += 4\n    length -= 4\n  }\n\n  switch (length) {\n    case 3:\n      h ^= UInt16(str, currentIndex)\n      h ^= str.charCodeAt(currentIndex + 2) << 16\n      h = Umul32(h, m)\n      break\n\n    case 2:\n      h ^= UInt16(str, currentIndex)\n      h = Umul32(h, m)\n      break\n\n    case 1:\n      h ^= str.charCodeAt(currentIndex)\n      h = Umul32(h, m)\n      break\n  }\n\n  h ^= h >>> 13\n  h = Umul32(h, m)\n  h ^= h >>> 15\n\n  return h >>> 0\n}\n\nfunction UInt32(str, pos) {\n  return (\n    str.charCodeAt(pos++) +\n    (str.charCodeAt(pos++) << 8) +\n    (str.charCodeAt(pos++) << 16) +\n    (str.charCodeAt(pos) << 24)\n  )\n}\n\nfunction UInt16(str, pos) {\n  return str.charCodeAt(pos++) + (str.charCodeAt(pos++) << 8)\n}\n\nfunction Umul32(n, m) {\n  n = n | 0\n  m = m | 0\n  let nlo = n & 0xffff\n  let nhi = n >>> 16\n  let res = (nlo * m + (((nhi * m) & 0xffff) << 16)) | 0\n  return res\n}\n","import { enter } from '../react/properties-style.js'\nimport {\n  getActionableParent,\n  getAllowedStyleKeys,\n  hasKeys,\n  hasKeysInChildren,\n} from '../utils.js'\nimport hash from '../hash.js'\n\nexport { enter }\n\nexport function leave(node, parent, state) {\n  const { dynamic, static: staticStyle } = node.style\n\n  const allowedStyleKeys = getAllowedStyleKeys(node)\n  let scopedUnderParent =\n    !node.isCapture && !node.action && getActionableParent(node)\n  if (scopedUnderParent) {\n    scopedUnderParent = scopedUnderParent.styleName\n  }\n\n  // dynamic merges static styles\n  if (hasKeysInChildren(dynamic)) {\n    state.cssDynamic = true\n    node.styleName = node.nameFinal\n\n    let cssStatic = Object.keys(staticStyle)\n      .filter(\n        key => allowedStyleKeys.includes(key) && hasKeys(staticStyle[key])\n      )\n      .map(key =>\n        asCss(\n          asStaticCss(staticStyle[key], Object.keys(dynamic[key])),\n          key,\n          scopedUnderParent\n        ).join('\\n')\n      )\n      .join(',\\n')\n\n    let cssDynamic = ['({ props }) => ({']\n    cssDynamic = cssDynamic.concat(\n      Object.keys(dynamic)\n        .filter(key => allowedStyleKeys.includes(key) && hasKeys(dynamic[key]))\n        .map(key =>\n          asCss(asDynamicCss(dynamic[key]), key, scopedUnderParent).join('\\n')\n        )\n        .join(',\\n')\n    )\n\n    cssDynamic.push('})')\n    cssDynamic = cssDynamic.join('\\n')\n\n    if (cssStatic || cssDynamic) {\n      state.styles[node.nameFinal] = `const ${node.nameFinal} = styled('${\n        node.nameTag\n      }')(${cssStatic ? `{${cssStatic}}, ` : ''}${cssDynamic})`\n\n      // TODO we may want to be smarter here and only pass what's needed\n      state.render.push(` props={props}`)\n    }\n  } else if (hasKeysInChildren(staticStyle)) {\n    state.cssStatic = true\n\n    const id = `${node.is || node.name}_${hash(staticStyle)}`\n    node.styleName = id\n    node.className.push(`\\${${id}}`)\n\n    const css = Object.keys(staticStyle)\n      .filter(\n        key => allowedStyleKeys.includes(key) && hasKeys(staticStyle[key])\n      )\n      .map(key =>\n        asCss(asStaticCss(staticStyle[key]), key, scopedUnderParent).join('\\n')\n      )\n      .join(',\\n')\n\n    if (css) {\n      state.styles[id] = `const ${id} = css({${css}})`\n    }\n  }\n}\n\nconst asDynamicCss = styles =>\n  Object.keys(styles).map(prop => `${prop}: ${styles[prop]}`)\n\nconst safe = str =>\n  typeof str === 'string' ? `\"${str.replace(/\"/g, \"'\")}\"` : str\n\nconst asStaticCss = (styles, dynamicStyles = []) =>\n  Object.keys(styles)\n    .filter(prop => !dynamicStyles.includes(prop))\n    .map(prop => `${prop}: ${safe(styles[prop])}`)\n\nconst asCss = (styles, key, scopedUnderParent) => {\n  let css = []\n\n  if (key !== 'base') {\n    if (scopedUnderParent) {\n      let parent = `\\${${scopedUnderParent}}`\n      if (/_/.test(scopedUnderParent)) {\n        parent = `.${parent}`\n      }\n      css.push(`[\\`${parent}:${key} &, ${parent}.${key} &\\`]: {`)\n    } else if (\n      key === 'hover' ||\n      key === 'disabled' ||\n      key === 'focus' ||\n      key === 'placeholder'\n    ) {\n      css.push(`\"&:${key}, &.${key}\": {`)\n    } else if (key === 'print') {\n      // TODO can we use this to support all media queries?\n      css.push('\"@media print\": {')\n    }\n  }\n\n  css.push(styles.join(',\\n'))\n\n  if (key !== 'base') css.push(`}`)\n\n  return css\n}\n","import wrap from '../react/wrap.js'\n\nexport function enter(node, parent, state) {\n  if (node.name === 'ref') {\n    state.render.push(\n      ` ${parent.isDynamic ? 'innerRef' : 'ref'}=${wrap(node.value)}`\n    )\n    return true\n  }\n}\n","export function enter(node, parent, state) {\n  const value = state.getValueForProperty(node, parent, state)\n\n  if (value) {\n    Object.keys(value).forEach(k => state.render.push(` ${k}=${value[k]}`))\n  }\n}\n","import {\n  checkParentStem,\n  getScopedCondition,\n  getStyleType,\n  isSlot,\n  isStyle,\n  isSvg,\n} from '../utils.js'\nimport safe from './safe.js'\n\nexport function enter(node, parent, state) {\n  if (\n    !isStyle(node) ||\n    !parent.isBasic ||\n    (isSvg(parent) && state.isReactNative) ||\n    parent.name === 'SvgGroup'\n  )\n    return\n\n  let styleForProperty, isScopedVal, _isProp\n\n  const code = isSlot(node)\n\n  // TODO refactor\n  if (getScopedCondition(node, parent)) {\n    isScopedVal = true\n\n    styleForProperty = {\n      [node.name]: getScopedCondition(node, parent),\n    }\n  } else {\n    ;({ _isProp, ...styleForProperty } = state.getStyleForProperty(\n      node,\n      parent,\n      code\n    ))\n  }\n\n  if (_isProp) {\n    Object.keys(styleForProperty).forEach(k =>\n      state.render.push(` ${k}=${safe(styleForProperty[k], node)}`)\n    )\n  } else {\n    const hasMatchingParent =\n      parent && node.isDynamic\n        ? checkParentStem(node, getStyleType(node))\n        : false\n    const target =\n      code || isScopedVal || hasMatchingParent\n        ? parent.style.dynamic\n        : parent.style.static\n    Object.assign(target[getStyleType(node)], styleForProperty)\n  }\n\n  return true\n}\n","import { getScopedCondition, isSlot } from '../utils.js'\nimport wrap from './wrap.js'\n\nexport function enter(node, parent, state) {\n  if (node.name === 'text' && parent.name === 'Text') {\n    if (getScopedCondition(node, parent)) {\n      parent.explicitChildren = wrap(getScopedCondition(node, parent))\n    } else {\n      parent.explicitChildren = isSlot(node) ? wrap(node.value) : node.value\n    }\n\n    return true\n  }\n}\n","const blacklist = ['classname', 'teleportto', 'goto']\nconst blacklistDebug = ['autofocus', 'tabindex']\n\nexport default (node, parent, state) => {\n  const name = node.name.toLowerCase()\n\n  return !(\n    blacklist.includes(name) ||\n    (state.debug && blacklistDebug.includes(name))\n  )\n}\n","import * as PropertiesChildrenProxyMap from '../react/properties-children-proxy-map.js'\nimport * as PropertiesClassName from './properties-class-name.js'\nimport * as PropertiesImage from './properties-image.js'\nimport * as PropertiesRoute from '../react/properties-route.js'\nimport * as PropertiesStyle from './properties-style.js'\nimport * as PropertyRef from '../react/property-ref.js'\nimport * as PropertyRest from '../react/property-rest.js'\nimport * as PropertyStyle from '../react/property-style.js'\nimport * as PropertyText from '../react/property-text.js'\nimport isValidPropertyForBlock from './is-valid-property-for-block.js'\n\nexport function enter(node, parent, state) {\n  PropertiesStyle.enter(node, parent, state)\n  PropertiesClassName.enter(node, parent, state)\n  PropertiesImage.enter(node, parent, state)\n\n  node.properties.forEach(propNode => {\n    if (\n      propNode.name === 'at' ||\n      propNode.name === 'when' ||\n      propNode.name === 'onWhen' ||\n      (propNode.name === 'ref' && state.debug) ||\n      propNode.tags.unsupportedShorthand ||\n      (!isValidPropertyForBlock(propNode, node, state) && node.isBasic) ||\n      (propNode.name === 'from' && node.name === 'List')\n    )\n      return\n\n    !PropertyRef.enter(propNode, node, state) &&\n      !PropertyStyle.enter(propNode, node, state) &&\n      !PropertyText.enter(propNode, node, state) &&\n      PropertyRest.enter(propNode, node, state)\n  })\n\n  PropertiesStyle.leave(node, parent, state)\n  PropertiesRoute.leave(node, parent, state)\n  PropertiesChildrenProxyMap.leave(node, parent, state)\n  PropertiesClassName.leave(node, parent, state)\n}\n","import { getPropertiesAsObject } from '../utils.js'\n\nexport function enter(node, parent, state) {\n  if (node.name !== 'Proxy') return\n\n  let prevParent = parent\n  while (prevParent) {\n    if (prevParent.type === 'Block' && !prevParent.parent) {\n      prevParent.usesProxy = true\n    }\n    prevParent = prevParent.parent\n  }\n\n  let proxied = node.properties.find(p => p.name === 'from')\n  if (!proxied) return\n  proxied = proxied.value\n\n  const otherProperties = node.properties.filter(\n    p => p.name !== 'from' && p.name !== 'onWhen' && p.name !== 'when'\n  )\n\n  if (!node.onWhen) {\n    state.render.push('{')\n  }\n\n  if (proxied === 'all') {\n    const childContent =\n      otherProperties.length > 0\n        ? `React.Children.map(props.children, child => React.cloneElement(child, ${getPropertiesAsObject(\n            otherProperties\n          )}))`\n        : 'props.children'\n\n    state.render.push(childContent)\n  } else {\n    if (!node.onWhen) {\n      state.render.push('props.childrenProxyMap && ')\n    }\n    const child = `childrenArray[props.childrenProxyMap['${proxied}']]`\n\n    if (otherProperties.length > 0) {\n      if (node.onWhen) {\n        if (state.render[state.render.length - 1].endsWith(' ? ')) {\n          state.render[state.render.length - 1] = state.render[\n            state.render.length - 1\n          ].replace(' ? ', ' && ')\n        }\n      }\n\n      state.render.push(\n        ` ${child} ? React.cloneElement(${child}, ${getPropertiesAsObject(\n          otherProperties\n        )}) : null`\n      )\n    } else {\n      state.render.push(child)\n    }\n\n    state.usesChildrenArray = true\n  }\n\n  state.render.push('}')\n\n  // skip next\n  return true\n}\n","import { getProp, isSlot } from '../utils.js'\nimport safe from './safe.js'\n\nexport function enter(node, parent, state) {\n  const at = getProp(node, 'at')\n  if (at) {\n    let [path, isExact = false] = at.value.split(' ')\n    state.use('Route')\n\n    if (path === '/') state.use('Router')\n\n    if (!path.startsWith('/')) {\n      path = isSlot(path) ? `\\`\\${${path}}\\`` : path\n      // path = `\\`\\${props.match.url}/${to}\\``\n    }\n\n    node.isRoute = true\n    state.render.push(\n      `<Route path=${safe(path)} ${\n        isExact ? 'exact' : ''\n      } render={routeProps => `\n    )\n  }\n}\n\nexport function leave(node, parent, state) {\n  if (node.isRoute) {\n    state.render.push('} />')\n  }\n}\n","export const enter = (node, parent, state) => {\n  if (node.name === 'Proxy') return\n\n  let blockName = node.is || node.name\n\n  if (typeof state.testIds[blockName] === 'number') {\n    state.testIds[blockName]++\n    blockName = `${blockName}:${state.testIds[blockName]}`\n  } else {\n    state.testIds[blockName] = 0\n  }\n\n  node.testId = blockName\n}\n","import { getProp } from '../utils.js'\nimport safe from '../react/safe.js'\n\nexport const enter = (node, parent, state) => {\n  if (node.teleport) {\n    const to = getProp(node, 'teleportTo').value\n\n    state.render.push(` to=${safe(to)}`)\n  }\n}\n","import * as BlockAddTestIdProp from '../react/block-add-test-id-prop.js'\nimport * as BlockCapture from './block-capture.js'\nimport * as BlockExplicitChildren from '../react/block-explicit-children.js'\nimport * as BlockGoTo from './block-go-to.js'\nimport * as BlockGroup from '../react/block-group.js'\nimport * as BlockInList from '../react/block-in-list.js'\nimport * as BlockList from '../react/block-list.js'\nimport * as BlockName from './block-name.js'\nimport * as BlockOffWhen from '../react/block-off-when.js'\nimport * as BlockProperties from './block-properties.js'\nimport * as BlockProxy from '../react/block-proxy.js'\nimport * as BlockRoute from '../react/block-route.js'\nimport * as BlockSetTestId from '../react/block-set-test-id.js'\nimport * as BlockTeleport from '../react/block-teleport.js'\n\nexport const enter = [\n  BlockSetTestId.enter,\n  BlockOffWhen.enter,\n  BlockProxy.enter,\n  BlockRoute.enter,\n  BlockName.enter,\n  BlockCapture.enter,\n  BlockTeleport.enter,\n  BlockGoTo.enter,\n  BlockInList.enter,\n  BlockAddTestIdProp.enter,\n  BlockProperties.enter,\n  BlockGroup.enter,\n  BlockList.enter,\n]\n\nexport const leave = [\n  BlockList.leave,\n  BlockExplicitChildren.leave,\n  BlockName.leave,\n  BlockRoute.leave,\n  BlockOffWhen.leave,\n]\n","import list from 'google-fonts-complete/api-response.json'\n\nconst getWeights = variants =>\n  variants\n    .filter(v => !v.includes('italic'))\n    .map(v => (v === 'regular' ? 400 : v))\n\nconst all = list.map(font => ({\n  category: font.category,\n  value: font.family,\n  weights: getWeights(font.variants),\n}))\n\nconst byName = {}\nall.forEach(f => (byName[f.value] = f))\n\nexport const fontFamily = all.map(f => f.value)\n\nexport const isGoogleFont = family => !!byName[family]\n\nexport const maybeAddFallbackFont = f => {\n  const font = byName[f]\n\n  return font && font.category ? `${f}, ${font.category}` : f\n}\n","import { getProp, isSlot } from '../utils.js'\nimport { maybeAddFallbackFont } from '../fonts.js'\n\nexport default (node, parent, code) => {\n  switch (node.name) {\n    case 'appRegion':\n      return {\n        WebkitAppRegion: node.value,\n      }\n\n    case 'backgroundImage':\n      return {\n        backgroundImage: code\n          ? `\\`url(\\${${node.value}})\\``\n          : `url(\"${node.value}\")`,\n      }\n\n    case 'fontFamily':\n      return {\n        fontFamily: code ? node.value : maybeAddFallbackFont(node.value),\n      }\n\n    case 'shadowColor':\n    case 'shadowRadius':\n    case 'shadowOffsetX':\n    case 'shadowOffsetY':\n    case 'shadowSpread':\n      return getShadow(node, parent)\n\n    case 'userSelect':\n      return {\n        WebkitUserSelect: node.value,\n      }\n\n    case 'zIndex':\n      return {\n        zIndex: code ? node.value : parseInt(node.value, 10),\n      }\n\n    default:\n      return {\n        [node.name]: node.value,\n      }\n  }\n}\n\nconst getPropValue = (prop, unit = '') => {\n  if (!prop) return false\n\n  if (prop.tags.slot) {\n    return `\\${${prop.value}}${unit}`\n  }\n\n  return `${prop.value}${unit}`\n}\n\nconst getShadow = (node, parent) => {\n  const isText = parent.name === 'Text'\n\n  const shadowColor = getProp(parent, 'shadowColor')\n  const shadowRadius = getProp(parent, 'shadowRadius')\n  const shadowOffsetX = getProp(parent, 'shadowOffsetX')\n  const shadowOffsetY = getProp(parent, 'shadowOffsetY')\n  const shadowSpread = getProp(parent, 'shadowSpread')\n\n  let value = [\n    getPropValue(shadowOffsetX, 'px'),\n    getPropValue(shadowOffsetY, 'px'),\n    getPropValue(shadowRadius, 'px'),\n    !isText && getPropValue(shadowSpread, 'px'),\n    getPropValue(shadowColor),\n  ]\n    .filter(Boolean)\n    .join(' ')\n\n  if (\n    isSlot(shadowColor) ||\n    isSlot(shadowRadius) ||\n    isSlot(shadowOffsetY) ||\n    isSlot(shadowOffsetX) ||\n    isSlot(shadowSpread)\n  ) {\n    value = `\\`${value}\\``\n  }\n\n  return {\n    [isText ? 'textShadow' : 'boxShadow']: value,\n  }\n}\n","export default ({ styles }) =>\n  `\\n${Object.keys(styles)\n    .map(k => styles[k])\n    .join('\\n')}`\n","import {\n  getScopedCondition,\n  getScopedImageCondition,\n  getScopedRequireCondition,\n  getScopes,\n  isValidImgSrc,\n  makeOnClickTracker,\n  pushImageToState,\n} from '../utils.js'\nimport safe from '../react/safe.js'\nimport wrap from '../react/wrap.js'\nimport toCamelCase from 'to-camel-case'\n\nconst isUrl = str => /^https?:\\/\\//.test(str)\n\nconst getImageSource = (node, state, parent) => {\n  const scopes = getScopes(node, parent)\n  if (scopes && (isUrl(node.value) || node.tags.slot)) {\n    return wrap(getScopedCondition(node, parent))\n  } else if (isUrl(node.value) || node.tags.slot) {\n    return safe(node.value)\n  } else {\n    if (scopes && state.debug) {\n      return wrap(\n        getScopedRequireCondition(scopes.scopedProps, scopes.paths, node.value)\n      )\n    } else if (state.debug) {\n      return `{requireImage(\"${node.value}\")}`\n    } else {\n      if (scopes) {\n        pushImageToState(state, scopes.scopedNames, scopes.paths)\n      }\n      const name = toCamelCase(node.value)\n      if (!state.images.includes(node.value)) {\n        state.images.push({\n          name,\n          file: node.value,\n        })\n      }\n      return scopes\n        ? wrap(\n            getScopedImageCondition(\n              scopes.scopedProps,\n              scopes.scopedNames,\n              name\n            )\n          )\n        : `{${name}}`\n    }\n  }\n}\n\nexport default (node, parent, state) => {\n  if (isValidImgSrc(node, parent)) {\n    return {\n      src: getImageSource(node, state, parent),\n    }\n  } else if (parent.isBasic && node.name === 'isDisabled') {\n    return {\n      disabled: safe(node.value, node),\n    }\n  } else if (getScopedCondition(node, parent)) {\n    return {\n      [node.name]: safe(getScopedCondition(node, parent)),\n    }\n  } else if (\n    parent.isBasic &&\n    node.name === 'onClick' &&\n    state.track &&\n    !state.debug\n  ) {\n    return {\n      onClick: wrap(makeOnClickTracker(node, state)),\n    }\n  } else {\n    return {\n      [node.name]: safe(node.value, node),\n    }\n  }\n}\n","export default state => {\n  if (state.uses.includes('Router')) {\n    state.render = ['<Router>', ...state.render, '</Router>']\n  }\n}\n","export default [\n  'CaptureEmail',\n  'CaptureFile',\n  'CaptureInput',\n  'CaptureNumber',\n  'CapturePhone',\n  'CaptureSecure',\n  'CaptureText',\n  'Horizontal',\n  'Vertical',\n  'Image',\n  'Text',\n  'List',\n  'Proxy',\n  'SvgText',\n  'Svg',\n  'SvgCircle',\n  'SvgEllipse',\n  'SvgGroup',\n  'SvgLinearGradient',\n  'SvgRadialGradient',\n  'SvgLine',\n  'SvgPath',\n  'SvgPolygon',\n  'SvgPolyline',\n  'SvgRect',\n  'SvgSymbol',\n  'SvgUse',\n  'SvgDefs',\n  'SvgStop',\n  'Router',\n  'Route',\n  'Link',\n]\n","export default ({ state, name }) => {\n  const render = state.render.join('')\n  const maybeChildrenArray = state.usesChildrenArray\n    ? `const childrenArray = React.Children.toArray(props.children)`\n    : ''\n\n  const maybeState =\n    state.captures.length > 0\n      ? `constructor(props) {\n    super(props)\n    this.state = {}\n  }`\n      : ''\n\n  const block = `this.props[\"${state.testIdKey}\"] || \"${state.name}\"`\n  const maybeTracking =\n    state.track && !state.debug\n      ? `componentDidMount() {\n  this.context.track({ block: ${block}, action: \"enter\" })\n}\n\ncomponentWillUnmount() {\n  this.context.track({ block: ${block}, action: \"leave\" })\n}`\n      : ''\n\n  if (maybeState || maybeTracking) {\n    return `class ${name} extends React.Component {\n  ${maybeState}\n  ${maybeTracking}\n\n  render() {\n    const { ${maybeTracking ? 'context,' : ''} props, ${\n      maybeState ? 'state' : ''\n    } } = this\n    ${maybeChildrenArray}\n    return (${render})\n  }\n}`\n  } else {\n    return `const ${name} = (props ${maybeTracking ? ', context' : ''}) => {\n  ${maybeChildrenArray}\n  return (${render})\n}`\n  }\n}\n","export default ({ state, name }) => {\n  if (state.track && !state.debug) {\n    return `${name}.contextTypes = {\n  track: PropTypes.func.isRequired\n}`\n  }\n\n  return ''\n}\n","const stringify = slot =>\n  /^[0-9]+$/.test(slot.defaultValue)\n    ? slot.defaultValue\n    : JSON.stringify(slot.defaultValue)\n\nexport default ({ state, name }) => {\n  const slots = state.slots\n    .filter(slot => slot.defaultValue !== false)\n    .map(slot => `${slot.name}: ${stringify(slot)}`)\n\n  return slots.length === 0\n    ? ''\n    : `${name}.defaultProps = {${slots.join(',\\n')}}`\n}\n","export default [\n  'Svg',\n  'SvgCircle',\n  'SvgEllipse',\n  'SvgDefs',\n  'SvgGroup',\n  'SvgLinearGradient',\n  'SvgRadialGradient',\n  'SvgLine',\n  'SvgPath',\n  'SvgPolygon',\n  'SvgPolyline',\n  'SvgRect',\n  'SvgSymbol',\n  'SvgText',\n  'SvgUse',\n  'SvgDefs',\n  'SvgStop',\n]\n","import SVG from './svg.js'\n\nconst NATIVE = [\n  'Animated',\n  'Image',\n  'KeyboardAvoidingView',\n  'ScrollView',\n  'StyleSheet',\n  'Text',\n  'TextInput',\n  'TouchableWithoutFeedback',\n  'TouchableHighlight',\n  'View',\n]\n\nexport default (state, getImport) => {\n  const usesNative = []\n  const usesSvg = []\n\n  const useNative = d => {\n    if (!usesNative.includes(d)) {\n      usesNative.push(d)\n    }\n  }\n  const useSvg = d => {\n    if (!usesSvg.includes(d)) {\n      usesSvg.push(d)\n    }\n  }\n\n  const dependencies = []\n  state.uses.sort().forEach(d => {\n    if (state.isReactNative && NATIVE.includes(d)) {\n      useNative(d)\n    } else if (state.isReactNative && SVG.includes(d)) {\n      useSvg(\n        d === 'Svg'\n          ? d\n          : d === 'SvgGroup'\n            ? `G as SvgGroup`\n            : `${d.replace('Svg', '')} as ${d}`\n      )\n    } else if (d.endsWith('SvgInline')) {\n      dependencies.push(`import ${d} from \"./${d}.view.js\"`)\n    } else if (/^[A-Z]/.test(d)) {\n      dependencies.push(getImport(d))\n    }\n  })\n\n  // TODO native\n  if (!state.isReactNative) {\n    dependencies.push(getImport('ViewsBaseCss'))\n\n    state.fonts.forEach(usedFont => {\n      const font = state.getFont(usedFont)\n      if (font) {\n        dependencies.push(`import \"${font}\"`)\n      }\n    })\n  }\n\n  // TODO we probably want to check that the file exists and do something if it\n  // doesn;t, like warn the user at least?\n  state.images.forEach(img =>\n    dependencies.push(`import ${img.name} from \"${img.file}\"`)\n  )\n\n  if (state.cssDynamic && state.cssStatic) {\n    dependencies.push('import styled, { css } from \"react-emotion\"')\n  } else if (state.cssStatic) {\n    dependencies.push('import { css } from \"react-emotion\"')\n  } else if (state.cssDynamic) {\n    dependencies.push('import styled from \"react-emotion\"')\n  }\n\n  if (usesSvg.length > 0) {\n    const svg = usesSvg.filter(m => m !== 'Svg').join(', ')\n    dependencies.push(`import Svg, { ${svg} } from 'react-native-svg'`)\n  }\n\n  if (usesNative.length > 0) {\n    dependencies.push(`import { ${usesNative.join(', ')} } from 'react-native'`)\n  }\n\n  if (state.track && !state.debug) {\n    dependencies.push('import PropTypes from \"prop-types\"')\n  }\n\n  return dependencies.join('\\n')\n}\n","import getBody from './get-body.js'\nimport getContext from './get-context.js'\nimport getDefaultProps from './get-default-props.js'\nimport getDependencies from './get-dependencies.js'\n\nexport default ({ getImport, getStyles, name, state }) => {\n  // TODO Emojis should be wrapped in <span>, have role=\"img\", and have an accessible description\n  // with aria-label or aria-labelledby  jsx-a11y/accessible-emoji\n  return `/* eslint-disable jsx-a11y/accessible-emoji, no-unused-vars */\nimport React from 'react'\n${getDependencies(state, getImport)}\n${getStyles(state, name)}\n\n${getBody({ state, name })}\n${getContext({ state, name })}\n${getDefaultProps({ state, name })}\nexport default ${name}`\n}\n","export default function walk(ast, { enter, leave }, state) {\n  visit(ast, null, enter, leave, state)\n}\n\nfunction visit(node, parent, enter, leave, state) {\n  if (!node) return\n\n  if (enter) {\n    if (enter.some(fn => fn(node, parent, state))) return\n  }\n\n  if (Array.isArray(node.children)) {\n    node.children.forEach(child => {\n      child.parent = node\n      visit(child, node, enter, leave, state)\n    })\n  }\n\n  if (leave) {\n    leave.forEach(fn => fn(node, parent, state))\n  }\n}\n","import * as visitor from './react-dom/block.js'\nimport getStyleForProperty from './react-dom/get-style-for-property.js'\nimport getStyles from './react-dom/get-styles.js'\nimport getValueForProperty from './react-dom/get-value-for-property.js'\nimport maybeUsesRouter from './react-dom/maybe-uses-router.js'\nimport restrictedNames from './react-dom/restricted-names.js'\nimport toComponent from './react/to-component.js'\nimport walk from './walk.js'\n\nconst imports = {\n  Animated: \"import Animated from 'react-dom-animated'\",\n  Link: \"import { Link } from 'react-router-dom'\",\n  Route: \"import { Route } from 'react-router-dom'\",\n  Router: \"import { BrowserRouter as Router } from 'react-router-dom'\",\n}\n\nexport default ({\n  debug,\n  enableAnimated = true,\n  file,\n  getFont = () => false,\n  getImport,\n  name,\n  track = true,\n  views,\n}) => {\n  const finalName = restrictedNames.includes(name) ? `${name}1` : name\n  if (name !== finalName) {\n    console.warn(\n      `// \"${name}\" is a Views reserved name.\n      We've renamed it to \"${finalName}\", so your view should work but this isn't ideal.\n      To fix this, change its file name to something else.`\n    )\n  }\n\n  const state = {\n    captures: [],\n    cssDynamic: false,\n    cssStatic: false,\n    enableAnimated,\n    debug,\n    file,\n    getFont,\n    getStyleForProperty,\n    getValueForProperty,\n    images: [],\n    isDynamic: false,\n    isReactNative: false,\n    name: finalName,\n    render: [],\n    styles: {},\n    svgs: [],\n    usedBlockNames: { [finalName]: 1 },\n    uses: [],\n    testIdKey: 'data-test-id',\n    testIds: {},\n    track,\n    use(block) {\n      if (\n        state.uses.includes(block) ||\n        /props/.test(block) ||\n        block === finalName\n      )\n        return\n\n      state.uses.push(block)\n    },\n  }\n\n  if (name !== finalName) {\n    console.warn(\n      `// ${name} is a Views reserved name. To fix this, change its file name to something else.`\n    )\n  }\n\n  const parsed = views[name]\n  state.fonts = parsed.fonts\n  state.slots = parsed.slots\n\n  walk(parsed.views[0], visitor, state)\n  maybeUsesRouter(state)\n\n  const finalGetImport = name => imports[name] || getImport(name)\n\n  return {\n    code: toComponent({\n      getImport: finalGetImport,\n      getStyles,\n      name: finalName,\n      state,\n    }),\n    fonts: parsed.fonts,\n    slots: parsed.slots,\n    svgs: state.svgs,\n  }\n}\n","import { hasProp, getObjectAsString, getProp } from '../utils.js'\nimport safe from '../react/safe.js'\nconst BORDER_RADIUS = [\n  'borderRadius',\n  'borderTopLeftRadius',\n  'borderTopRightRadius',\n  'borderBottomLeftRadius',\n  'borderBottomRightRadius',\n]\n\nexport const enter = (node, parent, state) => {\n  if (node.backgroundImage) {\n    const source = getObjectAsString({ uri: node.backgroundImage })\n\n    let resizeMode = getProp(node, 'backgroundSize')\n    resizeMode = safe(resizeMode ? resizeMode.value.value : 'cover')\n\n    state.render.push(` resizeMode=${resizeMode} source={${source}}`)\n\n    // hack until https://github.com/facebook/react-native/issues/8885\n    // is fixed\n    BORDER_RADIUS.forEach(prop => {\n      if (hasProp(node, prop)) {\n        const propNode = getProp(node, prop)\n        state.render.push(` ${prop}={${propNode.value.value}}`)\n      }\n    })\n  }\n}\n","import { getProp } from '../utils.js'\nimport safe from '../react/safe.js'\nimport toCamelCase from 'to-camel-case'\n\nconst keyboardType = {\n  CaptureEmail: 'email-address',\n  CaptureText: 'default',\n  CaptureTextArea: 'default',\n  CaptureNumber: 'numeric',\n  CapturePhone: 'phone-pad',\n}\n\nexport const enter = (node, parent, state) => {\n  const blockType = node.name\n\n  if (!/Capture/.test(node.name)) return\n  node.isCapture = true\n\n  const name = toCamelCase(node.is || blockType)\n  state.captures.push(name)\n\n  const { captureNext } = node\n  let onSubmit = getProp(node, 'onSubmit') || null\n  if (onSubmit) onSubmit = onSubmit.value.value\n\n  if (captureNext) {\n    state.render.push(` blurOnSubmit={false}`)\n    state.render.push(\n      ` onSubmitEditing={this.$${captureNext}? () => this.$${captureNext}.focus() : ${onSubmit}}`\n    )\n    state.render.push(` returnKeyType = {this.$${captureNext}? 'next' : 'go'}`)\n  } else {\n    if (onSubmit) {\n      state.render.push(` onSubmitEditing={${onSubmit}}`)\n      state.render.push(` returnKeyType=\"go\"`)\n    } else {\n      state.render.push(` returnKeyType=\"done\"`)\n    }\n  }\n  state.render.push(` onChangeText = {${name} => this.setState({ ${name} })}`)\n  state.render.push(` ref={$e => this.$${name} = $e}`)\n  state.render.push(` value={state.${name}}`)\n\n  if (node.name === 'CaptureSecure') {\n    state.render.push(` secureTextEntry`)\n  } else {\n    state.render.push(` keyboardType='${keyboardType[blockType]}'`)\n  }\n\n  if (node.name === 'CaptureTextArea') {\n    state.render.push(` multiline={true}`)\n  }\n\n  // TODO rest of props\n  const onBlur = getProp(node, 'onBlur')\n  if (onBlur) {\n    state.render.push(` onBlur=${safe(onBlur.value.value)}`)\n  }\n\n  const onFocus = getProp(node, 'onFocus')\n  if (onFocus) {\n    state.render.push(` onFocus=${safe(onFocus.value.value)}`)\n  }\n\n  const autoCorrect = getProp(node, 'autoCorrect')\n  state.render.push(\n    ` autoCorrect=${autoCorrect ? safe(autoCorrect.value.value) : '{false}'}`\n  )\n\n  const placeholder = getProp(node, 'placeholder')\n  if (placeholder) {\n    state.render.push(` placeholder=${safe(placeholder.value.value)}`)\n  }\n\n  const defaultValue = getProp(node, 'defaultValue')\n  if (defaultValue) {\n    state.render.push(` defaultValue=${safe(defaultValue.value.value)}`)\n  }\n\n  const underlineColorAndroid = getProp(node, 'underlineColorAndroid')\n  const underlineColorAndroidValue = underlineColorAndroid\n    ? underlineColorAndroid.value.value\n    : 'transparent'\n  state.render.push(\n    ` underlineColorAndroid=${safe(underlineColorAndroidValue)}`\n  )\n}\n","import { getProp, hasProp, isSlot } from '../utils.js'\nimport toPascalCase from 'to-pascal-case'\n\nexport default (node, parent, state) => {\n  switch (node.name) {\n    case 'CaptureEmail':\n    // case 'CaptureFile':\n    case 'CaptureNumber':\n    case 'CapturePhone':\n    case 'CaptureSecure':\n    case 'CaptureText':\n    case 'CaptureTextArea':\n      return 'TextInput'\n\n    case 'Horizontal':\n    case 'Vertical':\n      return getGroupBlockName(node, state)\n\n    case 'Image':\n      return getImageName(node, state)\n\n    case 'List':\n      return getListBlockName(node)\n\n    case 'Proxy':\n      return null\n\n    case 'Text':\n      return node.maybeAnimated ? `Animated.Text` : 'Text'\n\n    default:\n      return node.name\n  }\n}\n\nconst getGroupBlockName = (node, state) => {\n  let name = 'View'\n\n  if (hasProp(node, 'teleportTo')) {\n    node.teleport = true\n  } else if (hasProp(node, 'goTo')) {\n    node.goTo = true\n  } else if (hasProp(node, 'onClick')) {\n    const propNode = getProp(node, 'onClick')\n    node.action = propNode.value\n  }\n\n  if (hasProp(node, 'backgroundImage')) {\n    const propNode = getProp(node, 'backgroundImage')\n    node.backgroundImage = isSlot(propNode)\n      ? propNode.value\n      : JSON.stringify(propNode.value)\n\n    name = 'Image'\n  } else if (hasProp(node, 'overflowY', v => v === 'auto' || v === 'scroll')) {\n    name = 'ScrollView'\n  }\n\n  if (node.maybeAnimated && name !== 'Link') {\n    name = `Animated.${name}`\n  }\n\n  return name\n}\n\nconst getListBlockName = node => {\n  const base = hasProp(node, /^overflow/, v => v === 'auto' || v === 'scroll')\n    ? 'ScrollView'\n    : 'View'\n  return node.maybeAnimated ? `Animated.${base}` : base\n}\n\nconst isSvg = str => /\\.svg$/.test(str)\nconst getImageName = (node, state) => {\n  if (hasProp(node, 'source')) {\n    const source = getProp(node, 'source')\n    const { value } = source.value\n\n    if (isSvg(value)) {\n      const name = `${toPascalCase(value)}Inline`\n      node.isSvg = true\n\n      if (!state.svgs.some(svg => svg.source === value)) {\n        state.svgs.push({\n          source: value,\n          view: name,\n        })\n      }\n      return name\n    }\n  }\n\n  return 'Image'\n}\n","import { leave } from '../react/block-name.js'\nimport getBlockName from './get-block-name.js'\n\nexport function enter(node, parent, state) {\n  let name = getBlockName(node, parent, state)\n  if (name === null) return true\n\n  state.use(/Animated/.test(name) ? 'Animated' : name)\n\n  node.nameFinal = name\n  state.render.push(`<${name}`)\n}\n\nexport { leave }\n","import { enter } from '../react/properties-style.js'\nimport { getObjectAsString, hasKeys } from '../utils.js'\nimport hash from '../hash.js'\n\nexport { enter }\n\nexport const leave = (node, parent, state) => {\n  let style = null\n\n  if (\n    node.ensureBackgroundColor &&\n    (!('backgroundColor' in node.style.static.base) ||\n      !('backgroundColor' in node.style.dynamic.base))\n  ) {\n    node.style.static.base.backgroundColor = 'transparent'\n  }\n\n  if (hasKeys(node.style.static.base)) {\n    const id = hash(node.style.static.base)\n    state.styles[id] = node.style.static.base\n    node.styleId = id\n    style = `styles.${id}`\n  }\n  if (hasKeys(node.style.dynamic.base)) {\n    const dynamic = getObjectAsString(node.style.dynamic.base)\n    style = style ? `[${style},${dynamic}]` : dynamic\n  }\n\n  if (style) {\n    state.render.push(` style={${style}}`)\n  }\n}\n","const blacklist = [\n  'appregion',\n  'backgroundimage',\n  'backgroundsize',\n  'classname',\n  'clippath',\n  'cursor',\n  'fontweight',\n  'goto',\n  'isdisabled',\n  'onclick',\n  'onsubmit',\n  'overflow',\n  'overflowx',\n  'overflowy',\n  'pagebreakinside',\n  'shadowspread',\n  'teleportto',\n  'texttransform',\n  'userselect',\n]\n\nexport default (node, parent, state) =>\n  !blacklist.includes(node.name.toLowerCase())\n","import * as PropertiesChildrenProxyMap from '../react/properties-children-proxy-map.js'\nimport * as PropertiesRoute from '../react/properties-route.js'\nimport * as PropertiesStyle from './properties-style.js'\nimport * as PropertyRef from '../react/property-ref.js'\nimport * as PropertyRest from '../react/property-rest.js'\nimport * as PropertyStyle from '../react/property-style.js'\nimport * as PropertyText from '../react/property-text.js'\nimport isValidPropertyForBlock from './is-valid-property-for-block.js'\n\nexport function enter(node, parent, state) {\n  PropertiesStyle.enter(node, parent, state)\n\n  node.properties.forEach(propNode => {\n    if (\n      propNode.name === 'at' ||\n      propNode.name === 'when' ||\n      propNode.name === 'onWhen' ||\n      (propNode.name === 'ref' && state.debug) ||\n      propNode.tags.unsupportedShorthand ||\n      (!isValidPropertyForBlock(propNode, node, state) && node.isBasic) ||\n      (propNode.name === 'from' && node.name === 'List')\n    )\n      return\n\n    !PropertyRef.enter(propNode, node, state) &&\n      !PropertyStyle.enter(propNode, node, state) &&\n      !PropertyText.enter(propNode, node, state) &&\n      PropertyRest.enter(propNode, node, state)\n  })\n\n  PropertiesStyle.leave(node, parent, state)\n  PropertiesRoute.leave(node, parent, state)\n  PropertiesChildrenProxyMap.leave(node, parent, state)\n}\n","import { getScopedCondition, getProp, makeOnClickTracker } from '../utils.js'\nimport getBlockName from './get-block-name.js'\nimport safe from '../react/safe.js'\nimport wrap from '../react/wrap.js'\n\nexport const enter = (node, parent, state) => {\n  const name = getBlockName(node, parent, state)\n\n  if (\n    name === 'Text' &&\n    parent &&\n    (parent.backgroundImage || parent.ensureBackgroundColor)\n  ) {\n    node.ensureBackgroundColor = true\n  }\n\n  if (node.action) {\n    const block = 'TouchableWithoutFeedback'\n    const isDisabled = getProp(node, 'isDisabled')\n    const onClick = getProp(node, 'onClick')\n\n    const hasScopedActions = getScopedCondition(onClick, node)\n    const key = getProp(node, 'key')\n\n    state.use(block)\n\n    state.render.push(\n      `<${block}\n          activeOpacity={0.7}\n          ${\n            hasScopedActions\n              ? `onPress=${wrap(getScopedCondition(onClick, node))}`\n              : `onPress=${wrap(makeOnClickTracker(onClick, state))}`\n          }\n          ${isDisabled ? `disabled=${wrap(isDisabled.value)}` : ''}\n          underlayColor='transparent'\n          ${node.isInList ? `key={${key ? key.value : 'index'}}` : ''}>`\n    )\n    node.wrapEnd = `</${block}>`\n  } else if (node.teleport) {\n    state.use('Link')\n    const to = getProp(node, 'teleportTo').value\n\n    state.render.push(\n      `<Link\n          activeOpacity={0.7}\n          to=${safe(to)}\n          underlayColor='transparent'>`\n    )\n    node.wrapEnd = '</Link>'\n  } else if (node.goTo) {\n    // const goTo = getProp(node, 'goTo')\n    // TODO https://facebook.github.io/react-native/docs/linking.html\n  }\n}\n\nexport const leave = (node, parent, state) => {\n  if (node.wrapEnd) {\n    state.render.push(node.wrapEnd)\n  }\n}\n","import * as BlockBackgroundImage from './block-background-image.js'\nimport * as BlockCapture from './block-capture.js'\nimport * as BlockExplicitChildren from '../react/block-explicit-children.js'\n// import * as BlockGoTo from './block-go-to.js'\nimport * as BlockInList from '../react/block-in-list.js'\nimport * as BlockName from './block-name.js'\nimport * as BlockList from '../react/block-list.js'\nimport * as BlockGroup from '../react/block-group.js'\nimport * as BlockProperties from './block-properties.js'\nimport * as BlockProxy from '../react/block-proxy.js'\nimport * as BlockRoute from '../react/block-route.js'\nimport * as BlockSetTestId from '../react/block-set-test-id.js'\nimport * as BlockTeleport from '../react/block-teleport.js'\nimport * as BlockAddTestIdProp from '../react/block-add-test-id-prop.js'\nimport * as BlockOffWhen from '../react/block-off-when.js'\nimport * as BlockWrap from './block-wrap.js'\n\nexport const enter = [\n  BlockSetTestId.enter,\n  BlockOffWhen.enter,\n  BlockProxy.enter,\n  BlockRoute.enter,\n  BlockWrap.enter,\n  BlockName.enter,\n  BlockCapture.enter,\n  BlockBackgroundImage.enter,\n  BlockTeleport.enter,\n  // BlockGoTo.enter,\n  BlockInList.enter,\n  BlockAddTestIdProp.enter,\n  BlockProperties.enter,\n  BlockGroup.enter,\n  BlockList.enter,\n]\n\nexport const leave = [\n  BlockList.leave,\n  BlockExplicitChildren.leave,\n  BlockName.leave,\n  BlockWrap.leave,\n  BlockRoute.leave,\n  BlockOffWhen.leave,\n]\n","import { getProp, isTag } from '../utils.js'\n\nexport default (node, parent, code) => {\n  switch (node.name) {\n    case 'shadowColor':\n    case 'shadowRadius':\n    case 'shadowOffsetX':\n    case 'shadowOffsetY':\n      return getShadow(node, parent)\n\n    case 'fontFamily':\n      return {\n        fontFamily: getFontFamily(node, parent),\n      }\n\n    case 'zIndex':\n      return {\n        zIndex: code ? node.value : parseInt(node.value, 10),\n      }\n\n    case 'color':\n      // TODO handle this but differently as we don't have the placeholder tag anymore\n      if (/Capture/.test(parent.name) && isTag(node, 'placeholder')) {\n        return {\n          _isProp: true,\n          placeholderTextColor: node.value,\n        }\n      }\n      // Just returning the node.value in cases where if statement is not true\n      // Otherwise it was falling through to the next case.\n      return {\n        color: node.value,\n      }\n\n    case 'lineHeight':\n      return {\n        lineHeight: getLineHeight(node, parent),\n      }\n\n    default:\n      return {\n        [node.name]: node.value,\n      }\n  }\n}\n\nconst getFontFamily = (node, parent) => {\n  const fontWeight = getProp(parent, 'fontWeight')\n  // const key = node.key.value\n  const fontFamily = node.value.replace(/\\s/g, '')\n\n  return fontWeight ? `${fontFamily}-${fontWeight.value}` : fontFamily\n}\n\nconst getLineHeight = (node, parent) => {\n  const fontSize = getProp(parent, 'fontSize')\n  // using a default font size of 16 if none specified\n  const fontSizeValue = fontSize ? fontSize.value : 16\n  return node.value * fontSizeValue\n}\n\nconst getShadow = (node, parent) => {\n  const shadowColor = getProp(parent, 'shadowColor')\n  const shadowRadius = getProp(parent, 'shadowRadius')\n  const shadowOffsetX = getProp(parent, 'shadowOffsetX')\n  const shadowOffsetY = getProp(parent, 'shadowOffsetY')\n\n  return {\n    // Android\n    elevation: 1,\n    // iOS,\n    shadowOffset: {\n      width: shadowOffsetX ? shadowOffsetX.value : undefined,\n      height: shadowOffsetY ? shadowOffsetY.value : undefined,\n    },\n    shadowRadius: shadowRadius ? shadowRadius.value : undefined,\n    shadowOpacity: 1,\n    shadowColor: shadowColor ? shadowColor.value : undefined,\n  }\n}\n","import { hasKeys } from '../utils.js'\n\nexport default ({ styles }) =>\n  hasKeys(styles)\n    ? `const styles = StyleSheet.create(${JSON.stringify(styles)})`\n    : ''\n","import {\n  getScopedCondition,\n  getScopedImageCondition,\n  getScopes,\n  isValidImgSrc,\n  pushImageToState,\n} from '../utils.js'\nimport safe from '../react/safe.js'\nimport wrap from '../react/wrap.js'\nimport toCamelCase from 'to-camel-case'\n\nconst isUrl = str => /^https?:\\/\\//.test(str)\n\nconst getImageSource = (node, state, parent) => {\n  const scopes = getScopes(node, parent)\n\n  if (scopes && (isUrl(node.value) || node.tags.slot)) {\n    return `{{ uri: ${getScopedCondition(node, parent)} }}`\n  } else if (isUrl(node.value) || node.tags.slot) {\n    return `{{ uri: ${node.tags.slot ? node.value : safe(node.value)} }}`\n  } else {\n    if (scopes) {\n      pushImageToState(state, scopes.scopedNames, scopes.paths)\n    }\n    const name = toCamelCase(node.value)\n    if (!state.images.includes(node.value)) {\n      state.images.push({\n        name,\n        file: node.value,\n      })\n    }\n\n    return scopes\n      ? wrap(\n          getScopedImageCondition(scopes.scopedProps, scopes.scopedNames, name)\n        )\n      : `{${name}}`\n  }\n}\n\nexport default (node, parent, state) => {\n  if (isValidImgSrc(node, parent)) {\n    return (\n      !parent.isSvg && {\n        source: getImageSource(node, state, parent),\n      }\n    )\n  } else if (getScopedCondition(node, parent)) {\n    return {\n      [node.name]: safe(getScopedCondition(node, parent)),\n    }\n  } else {\n    return {\n      [node.name]: safe(node.value, node),\n    }\n  }\n}\n","export default state => {\n  if (state.uses.includes('Router')) {\n    state.render = ['<Router>', ...state.render, '</Router>']\n  }\n}\n","export default state => {\n  if (Object.keys(state.styles).length > 0) {\n    state.uses.push('StyleSheet')\n  }\n}\n","import * as visitor from './react-native/block.js'\nimport getStyleForProperty from './react-native/get-style-for-property.js'\nimport getStyles from './react-native/get-styles.js'\nimport getValueForProperty from './react-native/get-value-for-property.js'\nimport maybeUsesTextInput from './react-native/maybe-uses-text-input.js'\nimport maybeUsesRouter from './react-native/maybe-uses-router.js'\nimport maybeUsesStyleSheet from './react-native/maybe-uses-style-sheet.js'\nimport restrictedNames from './react-native/restricted-names.js'\nimport toComponent from './react/to-component.js'\nimport walk from './walk.js'\n\nconst imports = {\n  DismissKeyboard: `import dismissKeyboard from 'dismissKeyboard'`,\n  Link: \"import { Link } from 'react-router-native'\",\n  Route: \"import { Route } from 'react-router-native'\",\n  Router: \"import { NativeRouter as Router } from 'react-router-native'\",\n}\n\nexport default ({ file, getImport, name, track = true, views }) => {\n  const finalName = restrictedNames.includes(name) ? `${name}1` : name\n  if (name !== finalName) {\n    console.warn(\n      `// \"${name}\" is a Views reserved name.\n      We've renamed it to \"${finalName}\", so your view should work but this isn't ideal.\n      To fix this, change its file name to something else.`\n    )\n  }\n\n  const state = {\n    captures: [],\n    images: [],\n    getStyleForProperty,\n    getValueForProperty,\n    isReactNative: true,\n    name: finalName,\n    remap: {},\n    render: [],\n    styles: {},\n    svgs: [],\n    testIdKey: 'testID',\n    testIds: {},\n    track,\n    uses: [],\n    use(block) {\n      if (\n        state.uses.includes(block) ||\n        /props/.test(block) ||\n        block === finalName\n      )\n        return\n\n      state.uses.push(block)\n    },\n  }\n\n  const parsed = views[name]\n  state.fonts = parsed.fonts\n  state.slots = parsed.slots\n\n  walk(parsed.views[0], visitor, state)\n\n  maybeUsesTextInput(state)\n  maybeUsesRouter(state)\n  maybeUsesStyleSheet(state)\n\n  const finalGetImport = name => imports[name] || getImport(name)\n\n  return {\n    code: toComponent({\n      getImport: finalGetImport,\n      getStyles,\n      name: finalName,\n      state,\n    }),\n    fonts: parsed.fonts,\n    slots: parsed.slots,\n    svgs: state.svgs,\n  }\n}\n","import { getScopeDescription } from '../utils.js'\n\nexport const enter = [\n  (node, parent, state) => {\n    if (node.name === 'Proxy') return\n\n    let blockName = node.is || node.name\n\n    if (typeof state.testIds[blockName] === 'number') {\n      state.testIds[blockName]++\n      blockName = `${blockName}:${state.testIds[blockName]}`\n    } else {\n      state.testIds[blockName] = 0\n    }\n\n    let scopes = node.scopes\n      .filter(scope => !scope.isSystem)\n      .map(scope => getScopeDescription(scope.value))\n      .filter(Boolean)\n      .reverse()\n\n    if (!node.isBasic) {\n      const groupView =\n        state.views[node.name] && state.views[node.name].views[0]\n\n      if (groupView && groupView.scopes.length > 0) {\n        let groupScopes = groupView.scopes\n          .filter(scope => !scope.isSystem)\n          .map(scope => getScopeDescription(scope.value))\n          .filter(Boolean)\n          .reverse()\n\n        scopes = [...scopes, ...groupScopes]\n      }\n    }\n\n    let component = []\n\n    component.push(\n      `${blockName.replace(':', '')}: get('${state.name}.${blockName}'`\n    )\n\n    scopes.forEach(function(scope) {\n      component.push(`, '${scope}'`)\n    })\n\n    component.push(`),`)\n\n    state.render.push(component.join(''))\n  },\n]\n\nexport const leave = []\n","export default ({ name, state }) => {\n  const render = state.render.sort().join('')\n\n  return ` const { get } = require(\"@viewstools/e2e\");\n\n  module.exports = {\n    ${render}\n  };`\n}\n","import * as visitor from './e2e/block.js'\nimport toFile from './e2e/to-file.js'\nimport walk from './walk.js'\n\nexport default ({ name, views }) => {\n  const state = {\n    name,\n    render: [],\n    testIds: {},\n    views,\n  }\n  const parsed = views[name]\n  walk(parsed.views[0], visitor, state)\n\n  return {\n    code: toFile({\n      name,\n      state,\n    }),\n  }\n}\n","import reactDom from './morph/react-dom.js'\nimport reactNative from './morph/react-native.js'\nimport e2e from './morph/e2e.js'\n\nexport default {\n  'react-dom': reactDom,\n  'react-native': reactNative,\n  e2e,\n}\n","const reactDom = (name, warning) =>\n  `const ${name} = () => { console.warn(\"${warning}\"); return null; }`\n\nconst reactNative = (name, warning) =>\n  `const ${name} = () => { console.warn(\"${warning}\"); return null; }`\n\nexport default {\n  'react-dom': reactDom,\n  'react-native': reactNative,\n}\n","import { isGoogleFont } from '../fonts.js'\nimport sort from 'bubblesort'\n\nconst fontsOrder = ['eot', 'woff2', 'woff', 'ttf', 'svg', 'otf']\n\nconst sortFonts = (a, b) =>\n  fontsOrder.indexOf(b.type) - fontsOrder.indexOf(a.type)\n\nexport default ({ font, files }) => {\n  let body\n\n  if (isGoogleFont(font.family)) {\n    body = `injectGlobal(\"@import url('https://fonts.googleapis.com/css?family=${font.family.replace(\n      /\\s/g,\n      '+'\n    )}:${font.weight}${font.style === 'italic' ? 'i' : ''}');body{}\")`\n  } else {\n    const sources = sort(files.filter(src => font.id === src.id), sortFonts)\n\n    body = `${sources\n      .map(src => `import ${src.type} from '${src.relativeFile}'`)\n      .join('\\n')}\n\ninjectGlobal(\\`@font-face {\n  font-family: '${font.family}';\n  font-style: ${font.style};\n  font-weight: ${font.weight};\n  src: ${sources\n    .map(src => `url(\\${${src.type}}) format('${src.type}')`)\n    .join(', ')};\n}\\`)`\n  }\n\n  return `import { injectGlobal } from 'react-emotion'\\n${body}`\n}\n","export default () => `// TODO`\n","import morphFontAsReactDom from './react-dom/morph-font.js'\nimport morphFontAsReactNative from './react-native/morph-font.js'\n\nexport default ({ as, font, files }) =>\n  as === 'react-dom'\n    ? morphFontAsReactDom({ font, files })\n    : morphFontAsReactNative({ font, files })\n","import reactDom from './morph/react-dom/restricted-names.js'\nimport reactNative from './morph/react-native/restricted-names.js'\n\nexport default {\n  'react-dom': reactDom,\n  'react-native': reactNative,\n  e2e: [],\n}\n","export const STYLE = [\n  'alignContent',\n  'alignItems',\n  'alignSelf',\n  'appRegion',\n  'background',\n  'backgroundColor',\n  'backgroundImage',\n  'backgroundSize',\n  'borderBottomColor',\n  'borderBottomLeftRadius',\n  'borderBottomRightRadius',\n  'borderBottomStyle',\n  'borderBottomWidth',\n  'borderColor',\n  'borderLeftColor',\n  'borderLeftStyle',\n  'borderLeftWidth',\n  'borderRightColor',\n  'borderRightStyle',\n  'borderRightWidth',\n  'borderStyle',\n  'borderTopColor',\n  'borderTopLeftRadius',\n  'borderTopRightRadius',\n  'borderTopStyle',\n  'borderTopWidth',\n  'borderWidth',\n  'bottom',\n  'clipPath',\n  'color',\n  'cursor',\n  'fill',\n  'filter',\n  'flex',\n  'flex-grow',\n  'flexBasis',\n  'flexDirection',\n  'flexFlow',\n  'flexShrink',\n  'flexWrap',\n  'fontFamily',\n  'fontSize',\n  'fontStyle',\n  'fontWeight',\n  'height',\n  'hyphens',\n  'justifyContent',\n  'left',\n  'letterSpacing',\n  'lineHeight',\n  'marginBottom',\n  'marginLeft',\n  'marginRight',\n  'marginTop',\n  'maxHeight',\n  'maxWidth',\n  'minHeight',\n  'minWidth',\n  'opacity',\n  'outlineColor',\n  'outlineOffset',\n  'outlineStyle',\n  'outlineWidth',\n  'overflowWrap',\n  'overflowX',\n  'overflowY',\n  'paddingBottom',\n  'paddingLeft',\n  'paddingRight',\n  'paddingTop',\n  'pointerEvents',\n  'position',\n  'resize',\n  'right',\n  'shadowColor',\n  'shadowOffsetX',\n  'shadowOffsetY',\n  'shadowRadius',\n  'shadowSpread',\n  'stroke',\n  'textAlign',\n  'textDecoration',\n  'top',\n  'transform',\n  'transformOrigin',\n  'transition',\n  'userSelect',\n  'whiteSpace',\n  'width',\n  'wordBreak',\n  'wordSpacing',\n  'wordWrap',\n  'zIndex',\n  // '@fontFace',\n  // '@keyframes',\n  // '@media',\n  // 'background',\n  // 'backgroundAttachment',\n  // 'backgroundBlend-mode',\n  // 'backgroundClip',\n  // 'backgroundOrigin',\n  // 'backgroundPosition',\n  // 'backgroundRepeat',\n  // 'border',\n  // 'borderBottom',\n  // 'borderCollapse',\n  // 'borderImage',\n  // 'borderImageOutset',\n  // 'borderImageRepeat',\n  // 'borderImageSlice',\n  // 'borderImageSource',\n  // 'borderImageWidth',\n  // 'borderLeft',\n  // 'borderRadius',\n  // 'borderRight',\n  // 'borderSpacing',\n  // 'borderTop',\n  // 'boxShadow',\n  // 'boxSizing',\n  // 'captionSide',\n  // 'clear',\n  // 'clip',\n  // 'column-gap',\n  // 'columnCount',\n  // 'columnFill',\n  // 'columnRule',\n  // 'columnRuleColor',\n  // 'columnRuleStyle',\n  // 'columnRuleWidth',\n  // 'columnSpan',\n  // 'columnWidth',\n  // 'columns',\n  // 'content',\n  // 'counterIncrement',\n  // 'counterReset',\n  // 'direction',\n  // 'display',\n  // 'emptyCells',\n  // 'float',\n  // 'font',\n  // 'font-variant',\n  // 'fontSizeAdjust',\n  // 'fontStretch',\n  // 'hangingPunctuation',\n  // 'listStyle',\n  // 'listStyleImage',\n  // 'listStylePosition',\n  // 'listStyleType',\n  // 'margin',\n  // 'nav-up',\n  // 'navDown',\n  // 'navIndex',\n  // 'navLeft',\n  // 'navRight',\n  // 'order',\n  // 'outline',\n  // 'overflow',\n  // 'padding',\n  // 'pageBreakAfter',\n  // 'pageBreakBefore',\n  // 'pageBreakInside',\n  // 'perspective',\n  // 'perspectiveOrigin',\n  // 'quotes',\n  // 'tabSize',\n  // 'tableLayout',\n  // 'textAlignLast',\n  // 'textDecorationColor',\n  // 'textDecorationLine',\n  // 'textDecorationStyle',\n  // 'textIndent',\n  // 'textJustify',\n  // 'textOverflow',\n  // 'textShadow',\n  // 'textTransform',\n  // 'transformStyle',\n  // 'transitionDelay',\n  // 'transitionDuration',\n  // 'transitionProperty',\n  // 'transitionTimingFunction',\n  // 'unicodeBidi',\n  // 'verticalAlign',\n  // 'visibility',\n]\n\nexport const isStyle = name => STYLE.includes(name)\n","import Levenshtein from 'levenshtein'\nimport sortBy from 'lodash.sortby'\n\n/**\n * Creates a fuzzy matcher.\n *\n * Usage:\n *\n * ```\n * var m = new Matcher({\n *   values: 'init install update upgrade',\n *   threshold: 4\n * });\n *\n * m.list('udpate')  // [ { value: 'update', distance: 2 }, { value: 'upgrade', distance: 4 } ]\n * m.get('udpate')   // { value: 'update', distance: 2 }\n * ```\n *\n * You can also initialize with an array or with a string directly:\n *\n * ```\n * new Matcher('init install update upgrade');\n * new Matcher(['init', 'install', 'update', 'upgrade']);\n * ```\n *\n * @param options {Object} may contain:\n *\n *   * `threshold` (number, default `2`) — maximum search distance, increase\n *     for more relaxed search\n *\n *   * `values` (array or string, default `[]`) — an array of words to match from;\n *     if a string is given, values can be separated with comma or whitespace\n *\n *   * `caseSensitive` (boolean, default `false`) — ignore case when matching\n */\nvar Matcher = function(options) {\n  options = options || {}\n  if (typeof options == 'string' || Array.isArray(options))\n    options = { values: options }\n  this.values = []\n  this.threshold = options.threshold || 2\n\n  // Try to initialize via `options.values`\n\n  if (Array.isArray(options.values)) this.values = options.values\n  else if (typeof options.values == 'string')\n    this.values = options.values.split(/[, ]\\s*/g)\n\n  this.caseSensitive = options.caseSensitive || false\n}\n\n/**\n * Adds values to the dictionary.\n *\n * Usage:\n *\n * ```\n * new Matcher().add('update', 'upgrade', 'delete').get('deete')\n * ```\n *\n * @returns {Matcher} this for chaining\n */\nMatcher.prototype.add = function() {\n  ;[].push.apply(this.values, arguments)\n  return this\n}\n\n/**\n * Chainable helper for settings `this.caseSensitive = false`.\n *\n * @returns {Matcher} this for chaining\n */\nMatcher.prototype.ignoreCase = function() {\n  this.caseSensitive = false\n  return this\n}\n\n/**\n * Chainable helper for settings `this.caseSensitive = true`.\n *\n * @returns {Matcher} this for chaining\n */\nMatcher.prototype.matchCase = function() {\n  this.caseSensitive = true\n  return this\n}\n\n/**\n * Chainable helper for settings `this.threshold`.\n *\n * @param num {Number} new threshold\n * @returns {Matcher} this for chaining\n */\nMatcher.prototype.setThreshold = function(num) {\n  this.threshold = num\n  return this\n}\n\n/**\n * Calculate distance (how much difference) between two strings\n *\n * @param word1 {String} a string input\n * @param word2 {String} the other string input\n * @returns {Number} Levenshtein distance between word1 and word2\n */\nMatcher.prototype.distance = function(word1, word2) {\n  return new Levenshtein(word1, word2).distance\n}\n\n/**\n * Lists all results from dictionary which are similar to `q`.\n *\n * ```\n * new Matcher({\n *   values: 'init install update upgrade',\n *   threshold: 4\n * }).list('udpdate');\n * // [ { value: 'update', distance: 2 }, { value: 'upgrade', distance: 4 } ]\n * ```\n *\n * The results are sorted by their distance (similarity). The distance of `0` means\n * a strict match.\n *\n * You can increase `threshold` for more relaxed search, or decrease it to shorten the results.\n *\n * @param q {String} — search string\n * @returns {Array} — an array of objects `{ value: String, distance: Number }`\n */\nMatcher.prototype.list = function(q) {\n  var m = this\n  q = q.trim()\n  if (!m.caseSensitive) q = q.toLowerCase()\n  var matches = this.values.reduce(function(results, word) {\n    var d = m.distance(q, m.caseSensitive ? word : word.toLowerCase())\n    if (d > m.threshold) return results\n    return results.concat({\n      value: word,\n      distance: d,\n    })\n  }, [])\n  return sortBy(matches, 'distance')\n}\n\n/**\n * Returns a single closest match (or `null` if no values from the dictionary\n * are similar to `q`).\n *\n * @param q {String} — search string\n * @returns {String} — closest match or `null`\n */\nMatcher.prototype.get = function(q) {\n  var closest = this.list(q)[0]\n  return closest ? closest.value : null\n}\n\nexport default Matcher\n","export default {\n  width: true,\n  maxWidth: true,\n  minWidth: true,\n  height: true,\n  maxHeight: true,\n  minHeight: true,\n  margin: true,\n  marginBottom: true,\n  marginLeft: true,\n  marginRight: true,\n  marginTop: true,\n  padding: true,\n  paddingBottom: true,\n  paddingLeft: true,\n  paddingRight: true,\n  paddingTop: true,\n  bottom: true,\n  left: true,\n  right: true,\n  top: true,\n  outline: true,\n  opacity: true,\n  zIndex: true,\n  scale: true,\n  translateX: true,\n  translateY: true,\n  borderBottomLeftRadius: true,\n  borderBottomRightRadius: true,\n  borderBottomWidth: true,\n  borderLeftWidth: true,\n  borderRadius: true,\n  borderRightWidth: true,\n  borderTopLeftRadius: true,\n  borderTopRightRadius: true,\n  borderTopWidth: true,\n  borderWidth: true,\n  fontSize: true,\n  fontWeight: true,\n  letterSpacing: true,\n  lineHeight: true,\n  wordSpacing: true,\n}\n","import { isStyle, STYLE } from './prop-is-style.js'\nimport DidYouMeanMatcher from './did-you-mean.js'\nimport isNumber from './prop-is-number.js'\n\nconst dymBlockMatcher = new DidYouMeanMatcher(\n  'CaptureEmail|CaptureFile|CaptureNumber|CapturePhone|CaptureSecure|CaptureText|CaptureTextArea|G|Horizontal|Image|List|Svg|SvgCircle|SvgEllipse|SvgDefs|SvgGroup|SvgLinearGradient|SvgRadialGradient|SvgLine|SvgPath|SvgPolygon|SvgPolyline|SvgRect|SvgSymbol|SvgText|SvgUse|SvgStop|Text|Vertical'.split(\n    '|'\n  )\n)\nconst dymPropMatcher = new DidYouMeanMatcher([\n  ...STYLE,\n  'defaultValue',\n  'fill',\n  'stroke',\n  'from',\n  'viewBox',\n  'stroke',\n  'strokeWidth',\n  'strokeLinecap',\n  'strokeMiterlimit',\n  'at',\n  'd',\n  'x',\n  'x1',\n  'y1',\n  'y',\n  'x2',\n  'y2',\n  'strokeLinejoin',\n  'onBlur',\n  'onChange',\n  'onClick',\n  'onDrag',\n  'onDragEnd',\n  'onDragOver',\n  'onDragStart',\n  'onFocus',\n  'onMouseDown',\n  'onMouseMove',\n  'onMouseOver',\n  'onMouseUp',\n  'onWheel',\n  'onWhen',\n  'ref',\n  'tabIndex',\n  'text',\n  'value',\n  'when',\n])\n\nexport const didYouMeanBlock = block => dymBlockMatcher.get(block)\nexport const didYouMeanProp = prop => dymPropMatcher.get(prop)\n\nconst BASIC = /^(CaptureEmail|CaptureFile|CaptureNumber|CapturePhone|CaptureSecure|CaptureText|CaptureTextArea|Horizontal|Image|List|Svg|SvgCircle|SvgEllipse|SvgDefs|SvgGroup|SvgLinearGradient|SvgRadialGradient|SvgLine|SvgPath|SvgPolygon|SvgPolyline|SvgRect|SvgSymbol|SvgText|SvgUse|SvgStop|Text|Vertical)$/i\nconst BLOCK = /^([A-Z][a-zA-Z0-9]*)(\\s+([A-Z][a-zA-Z0-9]*))?$/\nconst BOOL = /^(false|true)$/i\nconst CAPTURE = /^(CaptureEmail|CaptureFile|CaptureNumber|CapturePhone|CaptureSecure|CaptureText|CaptureTextArea)$/i\nconst COMMENT = /^#(.+)$/\nconst FLOAT = /^-?[0-9]+\\.[0-9]+$/\nconst FONTABLE = /^(CaptureEmail|CaptureNumber|CapturePhone|CaptureSecure|CaptureText|CaptureTextArea|Text)$/\nconst INT = /^-?[0-9]+$/\nconst NOT_GROUP = /^(Image|Text|Proxy|SvgCircle|SvgEllipse|SvgLine|SvgPath|SvgPolygon|SvgPolyline|SvgRect|SvgText|SvgStop)$/i\nconst PROP = /^([a-z][a-zA-Z0-9]*)(\\s+(.+))?$/\nconst UNSUPPORTED_SHORTHAND = {\n  border: ['borderWidth', 'borderStyle', 'borderColor'],\n  borderBottom: ['borderBottomWidth', 'borderBottomStyle', 'borderBottomColor'],\n  borderTop: ['borderTopWidth', 'borderTopStyle', 'borderTopColor'],\n  borderRight: ['borderRightWidth', 'borderRightStyle', 'borderRightColor'],\n  borderLeft: ['borderLeftWidth', 'borderLeftStyle', 'borderLeftColor'],\n  borderRadius: [\n    'borderTopLeftRadius',\n    'borderTopRightRadius',\n    'borderBottomLeftRadius',\n    'borderBottomRightRadius',\n  ],\n  boxShadow: [\n    'shadowOffsetX',\n    'shadowOffsetY',\n    'shadowRadius',\n    'shadowSpread',\n    'shadowColor',\n  ],\n  margin: ['marginTop', 'marginRight', 'marginBottom', 'marginLeft'],\n  padding: ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'],\n  textShadow: ['shadowOffsetX', 'shadowOffsetY', 'shadowRadius', 'shadowColor'],\n  outline: ['outlineWidth', 'outlineStyle', 'outlineColor'],\n  overflow: ['overflowX', 'overflowY'],\n}\nconst TRUE = /^true$/i\nconst USER_COMMENT = /^##(.*)$/\n// TODO slot can't start with a number\nconst SLOT = /^<((!)?([a-zA-Z0-9]+))?(\\s+(.+))?$/\n\nexport const is = (thing, line) => thing.test(line)\nexport const isBasic = line => is(BASIC, line)\nexport const isBlock = line => is(BLOCK, line)\nexport const isBool = line => is(BOOL, line)\nexport const isCapture = line => is(CAPTURE, line)\nexport const isComment = line => is(COMMENT, line)\nexport const isEmptyText = line => line === ''\nexport const isEnd = line => line === ''\nexport const isFloat = line => is(FLOAT, line)\nexport const isFontable = line => is(FONTABLE, line)\nexport const isGroup = line => !is(NOT_GROUP, line) && !isCapture(line)\nexport const isList = line => line === 'List'\nexport const isInt = line => is(INT, line)\nexport const isProp = line => is(PROP, line)\nexport const isSlot = line => is(SLOT, line)\nexport const isUnsupportedShorthand = name => name in UNSUPPORTED_SHORTHAND\nexport { isStyle }\nexport const isTrue = line => is(TRUE, line)\nexport const isUserComment = line => is(USER_COMMENT, line)\n\nconst get = (regex, line) => line.match(regex)\n\nexport const getBlock = line => {\n  // eslint-disable-next-line\n  const [_, is, _1, block] = get(BLOCK, line)\n  return {\n    block: block || is,\n    is: block ? is : null,\n  }\n}\nexport const getComment = line => {\n  try {\n    return get(COMMENT, line).slice(1)\n  } catch (err) {\n    return ''\n  }\n}\nexport const getProp = line => {\n  // eslint-disable-next-line\n  let [_, name, _1, value = ''] = get(PROP, line)\n\n  const prop = { name, isSlot: false, value }\n\n  if (is(SLOT, value)) {\n    const [\n      // eslint-disable-next-line\n      _2,\n      slotIsNot = false,\n      slotName = '',\n      // eslint-disable-next-line\n      _3,\n      // eslint-disable-next-line\n      defaultValue = '',\n    ] = getSlot(value)\n\n    prop.isSlot = true\n    prop.slotIsNot = slotIsNot === '!'\n    prop.slotName = slotName\n    prop.value = defaultValue || value\n  }\n\n  return prop\n}\nexport const getSlot = line => get(SLOT, line).slice(1)\nexport const getUnsupportedShorthandExpanded = (name, value) => {\n  const props = UNSUPPORTED_SHORTHAND[name]\n\n  if (name === 'borderRadius') {\n    const theValue = value.replace('px', '')\n\n    return [\n      `${props[0]} ${theValue}`,\n      `${props[1]} ${theValue}`,\n      `${props[2]} ${theValue}`,\n      `${props[3]} ${theValue}`,\n    ]\n  } else if (name.startsWith('border') || name === 'outline') {\n    const [width, style, ...color] = value.split(' ')\n\n    return [\n      `${props[0]} ${width.replace('px', '')}`,\n      `${props[1]} ${style}`,\n      `${props[2]} ${color.join(' ')}`,\n    ]\n  } else if (name === 'boxShadow') {\n    const [offsetX, offsetY, blurRadius, spreadRadius, ...color] = value.split(\n      ' '\n    )\n\n    return [\n      `${props[0]} ${offsetX.replace('px', '')}`,\n      `${props[1]} ${offsetY.replace('px', '')}`,\n      `${props[2]} ${blurRadius.replace('px', '')}`,\n      `${props[3]} ${spreadRadius.replace('px', '')}`,\n      `${props[4]} ${color.join(' ')}`,\n    ]\n  } else if (name === 'textShadow') {\n    const [offsetX, offsetY, blurRadius, ...color] = value.split(' ')\n\n    return [\n      `${props[0]} ${offsetX.replace('px', '')}`,\n      `${props[1]} ${offsetY.replace('px', '')}`,\n      `${props[2]} ${blurRadius.replace('px', '')}`,\n      `${props[3]} ${color.join(' ')}`,\n    ]\n  } else if (name === 'overflow') {\n    return [`${props[0]} ${value}`, `${props[1]} ${value}`]\n  } else if (name === 'padding' || name === 'margin') {\n    let [top, right, bottom, left] = value.split(' ')\n    top = top.replace('px', '')\n    right = right ? right.replace('px', '') : top\n    bottom = bottom ? bottom.replace('px', '') : top\n    left = left ? left.replace('px', '') : right || top\n\n    return [\n      `${props[0]} ${top}`,\n      `${props[1]} ${right}`,\n      `${props[2]} ${bottom}`,\n      `${props[3]} ${left}`,\n    ]\n  }\n}\nexport const getValue = value => {\n  if (isFloat(value)) {\n    return parseFloat(value, 10)\n  } else if (isInt(value)) {\n    return parseInt(value, 10)\n  } else if (isEmptyText(value)) {\n    return ''\n  } else if (isBool(value)) {\n    return isTrue(value)\n  } else {\n    return value\n  }\n}\n\nconst SYSTEM_SCOPES = [\n  'active',\n  // TODO disabled should be a prop instead I think\n  'disabled',\n  'focus',\n  'hover',\n  'placeholder',\n  'print',\n  // TODO do we want to do media queries here?\n]\nexport const isSystemScope = name => SYSTEM_SCOPES.includes(name)\n\nconst isActionable = name => name !== 'onWhen' && /^on[A-Z]/.test(name)\n\nexport const getPropType = (block, name, defaultValue) =>\n  block.isList && name === 'from'\n    ? 'array'\n    : isActionable(name) ? 'function' : isNumber[name] ? 'number' : 'string'\n","export default (line, scolumn, ecolumn) => ({\n  start: {\n    line,\n    column: scolumn,\n  },\n  end: {\n    line,\n    column: ecolumn,\n  },\n})\n","import { isUnsupportedShorthand, isStyle, isSlot } from './helpers.js'\n\nconst SLOT_PROPS = ['from', 'when', 'onClick', 'onFocus', 'onWhen']\nconst shouldBeSlot = prop => SLOT_PROPS.includes(prop) || /^on[A-Z]/.test(prop)\n\nexport default ({ name, isSlot, slotName, slotIsNot, value, block }) => {\n  const tags = {}\n\n  if (isStyle(name)) tags.style = true\n  if (isUnsupportedShorthand(name) && block.isBasic) {\n    tags.unsupportedShorthand = true\n  }\n\n  if (shouldBeSlot(name)) tags.shouldBeSlot = true\n  if (isSlot) tags.slot = true\n  if (slotIsNot) tags.slotIsNot = true\n\n  tags.validSlot = tags.slot || (tags.shouldBeSlot && tags.slot) || null\n\n  return tags\n}\n","import {\n  didYouMeanBlock,\n  didYouMeanProp,\n  getBlock,\n  getComment,\n  getProp,\n  getPropType,\n  getUnsupportedShorthandExpanded,\n  getValue,\n  isBasic,\n  isBlock,\n  isCapture,\n  isComment,\n  isEnd,\n  isFontable,\n  isGroup,\n  isList,\n  isProp,\n  isSystemScope,\n  isUserComment,\n} from './helpers.js'\nimport getLoc from './get-loc.js'\nimport getTags from './get-tags.js'\n\nexport default ({\n  convertSlotToProps = true,\n  skipComments = true,\n  source,\n} = {}) => {\n  // convert crlf to lf\n  const text = source.replace(/\\r\\n/g, '\\n')\n  const rlines = text.split('\\n')\n  const lines = rlines.map(line => line.trim())\n  const fonts = []\n  const stack = []\n  const slots = []\n  const views = []\n  const warnings = []\n  let lastCapture\n\n  const getChildrenProxyMap = block => {\n    const childrenProxyMap = {}\n\n    block.children.forEach((child, i) => {\n      let maybeName = child.is || child.name\n      let name = maybeName\n      let next = 1\n      while (name in childrenProxyMap) {\n        name = `${maybeName}${next}`\n        next++\n      }\n      childrenProxyMap[name] = i\n    })\n\n    return Object.keys(childrenProxyMap).length === 0 ? null : childrenProxyMap\n  }\n\n  const lookForFonts = block => {\n    if (block.properties && (isFontable(block.name) || !block.isBasic)) {\n      const fontFamilyProp = block.properties.find(p => p.name === 'fontFamily')\n\n      if (fontFamilyProp) {\n        const fontFamily = fontFamilyProp.value\n        const fontWeightProp = block.properties.find(\n          p => p.name === 'fontWeight'\n        )\n        const fontStyleProp = block.properties.find(p => p.name === 'fontStyle')\n        const fontWeight = fontWeightProp\n          ? fontWeightProp.value.toString()\n          : '400'\n\n        const fontStyle = fontStyleProp\n          ? fontStyleProp.value.toString()\n          : 'normal'\n\n        if (\n          !fonts.find(\n            font =>\n              font.family === fontFamily &&\n              font.weight === fontWeight &&\n              font.style === fontStyle\n          )\n        ) {\n          fonts.push({\n            id: `${fontFamily}-${fontWeight}${\n              fontStyle === 'italic' ? '-italic' : ''\n            }`,\n            family: fontFamily,\n            weight: fontWeight,\n            style: fontStyle,\n          })\n        }\n      }\n    }\n  }\n\n  const end = (block, endLine) => {\n    block.loc.end = {\n      line: endLine,\n      column: Math.max(0, lines[endLine].length - 1),\n    }\n\n    if (block.isGroup && !block.isBasic) {\n      block.childrenProxyMap = getChildrenProxyMap(block)\n    }\n\n    if (!block.properties) {\n      block.properties = []\n    }\n\n    if (\n      block.name === 'List' &&\n      !block.properties.some(prop => prop.name === 'from')\n    ) {\n      warnings.push({\n        loc: block.loc,\n        type: `A List needs \"from <\" to work`,\n        line: lines[block.loc.start.line],\n      })\n    }\n\n    if (stack.length === 0) {\n      // if we're the last block on the stack, then this is the view!\n      views.push(block)\n      return true\n    }\n    return false\n  }\n\n  const parseBlock = (line, i) => {\n    const { block: name, is } = getBlock(line)\n    let shouldPushToStack = false\n\n    const block = {\n      type: 'Block',\n      name,\n      isBasic: isBasic(name),\n      isGroup: false,\n      loc: getLoc(i, 0),\n      properties: [],\n      scopes: [],\n    }\n\n    if (is && !block.isBasic) {\n      const meant = didYouMeanBlock(name)\n      if (meant && meant !== name) {\n        warnings.push({\n          loc: block.loc,\n          type: `Did you mean \"${meant}\" instead of \"${name}\"?`,\n          line,\n        })\n      }\n    }\n\n    if (is) {\n      block.is = is\n\n      if (isCapture(name)) {\n        if (lastCapture) {\n          lastCapture.captureNext = is\n        }\n        lastCapture = block\n      }\n    }\n\n    const last = stack[stack.length - 1]\n    if (last) {\n      shouldPushToStack = true\n      if (last.isGroup) {\n        if (last.isList) {\n          if (block.isBasic) {\n            warnings.push({\n              loc: block.loc,\n              type: `A basic block \"${\n                block.name\n              }\" can't be inside a List. Use a view you made instead.`,\n              line,\n              blocker: true,\n            })\n          } else if (last.children.length > 0) {\n            warnings.push({\n              loc: block.loc,\n              type: `A List can only have one view inside. \"${\n                block.name\n              }\" is outside of it. Put 1 empty line before.`,\n              line,\n            })\n          } else {\n            last.children.push(block)\n          }\n        } else {\n          last.children.push(block)\n        }\n      } else {\n        // the block is inside a block that isn't a group\n        end(stack.pop(), i)\n\n        if (last.isBasic) {\n          warnings.push({\n            loc: block.loc,\n            type: `An empty line is required after every block. Put 1 empty line before`,\n            line,\n          })\n        } else if (views[0] && views[0].isGroup) {\n          warnings.push({\n            loc: block.loc,\n            type:\n              lines[i - 1] === ''\n                ? `Put 1 empty line before`\n                : `Put 2 empty lines before`,\n            line,\n          })\n        } else {\n          warnings.push({\n            loc: block.loc,\n            type: `Add Vertical at the top`,\n            line,\n          })\n        }\n      }\n    } else if (views.length > 0) {\n      // the block is outside the top level block\n      let newLinesBeforePreviousBlock = 1\n      while (isEnd(lines[i - newLinesBeforePreviousBlock])) {\n        newLinesBeforePreviousBlock++\n      }\n\n      const help = []\n      if (!views[0].isGroup) {\n        help.push(`Add Vertical at the top`)\n      }\n      if (newLinesBeforePreviousBlock > 2) {\n        const linesToRemove = newLinesBeforePreviousBlock - 2\n        help.push(\n          `remove ${linesToRemove} empty line${\n            linesToRemove > 1 ? 's' : ''\n          } before`\n        )\n      }\n      warnings.push({\n        loc: block.loc,\n        type: help.join(', '),\n        line,\n      })\n    }\n\n    if (isGroup(name)) {\n      block.isGroup = true\n      block.isList = isList(name)\n      block.children = []\n    }\n\n    if (shouldPushToStack || stack.length === 0) {\n      stack.push(block)\n    }\n\n    parseProps(i, block)\n    lookForFonts(block)\n  }\n\n  const parseProps = (i, block) => {\n    let endOfBlockIndex = i\n    while (\n      endOfBlockIndex < lines.length - 1 &&\n      !isBlock(lines[endOfBlockIndex + 1])\n    ) {\n      endOfBlockIndex++\n    }\n\n    const properties = []\n    const scopes = []\n    let scope\n    let inScope = false\n\n    for (let j = i; j <= endOfBlockIndex; j++) {\n      const line = lines[j]\n\n      let propNode = null\n\n      if (isProp(line)) {\n        const { name, isSlot, slotName, slotIsNot, value } = getProp(line)\n        const loc = getLoc(j, line.indexOf(name), line.length - 1)\n        const tags = getTags({\n          name,\n          isSlot,\n          slotIsNot,\n          slotName,\n          value,\n          block,\n        })\n\n        if (block.isBasic) {\n          if (tags.unsupportedShorthand) {\n            warnings.push({\n              loc,\n              type: `The shorthand ${name} isn't supported. You need to expand it like:\\n${getUnsupportedShorthandExpanded(\n                name,\n                value\n              ).join('\\n')}`,\n              line,\n            })\n          } else {\n            const meant = didYouMeanProp(name)\n            if (meant && meant !== name) {\n              warnings.push({\n                loc,\n                type: `Did you mean \"${meant}\" instead of \"${name}\"?`,\n                line,\n              })\n            }\n          }\n        }\n\n        if (name === 'when') {\n          const isSystem = isSystemScope(value)\n\n          if (value === '' || value === '<' || value === '<!') {\n            warnings.push({\n              loc,\n              type:\n                'This when has no condition assigned to it. Add one like: when <isCondition',\n              line,\n            })\n          } else if (!isSystem && !tags.validSlot) {\n            warnings.push({\n              loc,\n              type: `The value you used in the slot \"${name}\" is invalid`,\n              line,\n            })\n          }\n\n          tags.scope = value\n          inScope = true\n          scope = {\n            isSystem,\n            value,\n            name,\n            properties: [],\n          }\n\n          if (!isSystem) {\n            if (convertSlotToProps) {\n              scope.value = `${slotIsNot ? '!' : ''}props.${slotName || name}`\n            }\n            scope.slotIsNot = slotIsNot\n            scope.slotName = slotName\n          }\n          scopes.push(scope)\n        } else if ((tags.slot || tags.shouldBeSlot) && !tags.validSlot) {\n          warnings.push({\n            loc,\n            type: `The value you used in the slot \"${name}\" is invalid`,\n            line,\n          })\n        }\n\n        if (name === 'onWhen' && properties.length > 0) {\n          warnings.push({\n            type: `Put onWhen at the top of the block. It's easier to see it that way!`,\n            line,\n            loc,\n          })\n        }\n\n        propNode = {\n          type: 'Property',\n          loc,\n          name,\n          tags,\n          value: getValue(value),\n        }\n\n        if (tags.slot) {\n          const needsDefaultValue =\n            block.isBasic && !tags.shouldBeSlot && /</.test(propNode.value)\n\n          propNode.defaultValue = propNode.value\n          propNode.slotName = slotName\n          if (convertSlotToProps) {\n            propNode.value = `${slotIsNot ? '!' : ''}props.${slotName || name}`\n          }\n\n          if (needsDefaultValue) {\n            if (name === 'text' && block.name === 'Text') {\n              propNode.defaultValue = ''\n            } else {\n              propNode.defaultValue = false\n              warnings.push({\n                loc,\n                type: `Add a default value to \"${name}\" like: \"${name} <${slotName} default value\"`,\n                line,\n              })\n            }\n          }\n\n          if (!inScope && !slots.some(vp => vp.name === name)) {\n            slots.push({\n              name: slotName || name,\n              type: getPropType(block, name, value),\n              defaultValue:\n                tags.shouldBeSlot || !block.isBasic\n                  ? false\n                  : propNode.defaultValue,\n            })\n          }\n        }\n      } else if (isComment(line) && !skipComments) {\n        let [value] = getComment(line)\n\n        const userComment = isUserComment(line)\n        if (userComment) {\n          value = getComment(value)\n        }\n\n        propNode = {\n          type: 'Property',\n          loc: getLoc(j, 0, line.length - 1),\n          value,\n          tags: { comment: true, userComment },\n        }\n      }\n\n      if (propNode) {\n        block.loc.end = propNode.loc.end\n\n        if (inScope) {\n          if (\n            propNode.name !== 'when' &&\n            !propNode.tags.comment &&\n            !properties.some(baseProp => baseProp.name === propNode.name)\n          ) {\n            warnings.push({\n              loc: propNode.loc,\n              type: `You're missing a base prop for ${\n                propNode.name\n              }. Add it before all whens on the block.`,\n              line,\n            })\n          }\n\n          scope.properties.push(propNode)\n        } else {\n          properties.push(propNode)\n        }\n      }\n    }\n\n    block.properties = properties\n    block.scopes = scopes\n  }\n\n  lines.forEach((line, i) => {\n    if (line !== rlines[i]) {\n      warnings.push({\n        type: `You have some spaces before or after this line. Clean them up.`,\n        loc: {\n          start: {\n            line: i,\n          },\n        },\n        line: rlines[i],\n      })\n    }\n\n    if (isBlock(line)) {\n      parseBlock(line, i)\n    } else if (isEnd(line) && stack.length > 0) {\n      end(stack.pop(), i)\n    }\n  })\n\n  if (stack.length > 0) {\n    while (!end(stack.pop(), lines.length - 1)) {}\n  }\n\n  return {\n    fonts,\n    slots,\n    views,\n    warnings,\n  }\n}\n","import { basename, extname } from 'path'\nimport buble from 'buble'\nimport doMorph from './morphers.js'\nimport doGetViewNotFound from './get-view-not-found.js'\nimport morphFont from './morph/font.js'\nimport restrictedNames from './restricted-names.js'\nimport toPascalCase from 'to-pascal-case'\nimport prettier from 'prettier'\nimport parse from './parse/index.js'\n\nconst DEFAULT_IMPORT = name => `import ${name} from './${name}.view.js'`\n\nexport const morph = ({\n  as,\n  compile,\n  debug,\n  enableAnimated,\n  file = {},\n  getFont,\n  getImport = DEFAULT_IMPORT,\n  name,\n  pretty = false,\n  track = true,\n  views = {},\n}) => {\n  let morphed = doMorph[as]({\n    debug,\n    enableAnimated,\n    file,\n    getFont,\n    getImport,\n    name,\n    track,\n    views,\n  })\n\n  if (compile) {\n    morphed.code = buble.transform(morphed.code, {\n      objectAssign: 'Object.assign',\n      transforms: {\n        modules: false,\n        templateString: false,\n      },\n    }).code\n  }\n\n  if (pretty) {\n    morphed.code = prettier.format(morphed.code, {\n      singleQuote: true,\n      trailingComma: 'es5',\n    })\n  }\n\n  return morphed\n}\n\nexport const getViewNotFound = (as, name, warning) =>\n  doGetViewNotFound[as](name, warning)\n\nconst sanitize = input =>\n  basename(input)\n    .replace(extname(input), '')\n    .replace(/[^a-zA-Z_$0-9]+/g, '_')\n    .replace(/^_/, '')\n    .replace(/_$/, '')\n    .replace(/^(\\d)/, '_$1')\n\nexport const pathToName = path =>\n  toPascalCase(sanitize(basename(path).replace('.view', '')))\n\nexport const isViewNameRestricted = (view, as) =>\n  restrictedNames[as].includes(view)\n\nexport { morphFont }\n\nexport { parse }\n"]}