{
 "$schema_note": "Format documented in RULES_SPEC.md. Bump `version` on every change.",
 "version": 1,
 "min_app_version": "1.0.0",
 "ttl_hours": 12,
 "hosts": {
  "feed": "https://global.flashscore.ninja/2/x/feed",
  "graphql": "https://2.ds.lsapp.eu/pq_graphql",
  "graphql_odds": "https://global.ds.lsapp.eu/odds/pq_graphql",
  "images": "https://static.flashscore.com/res/image/data/",
  "site": "https://www.flashscore.com"
 },
 "feed_headers": {
  "x-fsign": "SW9D1eZo"
 },
 "defaults": {
  "tz": 0,
  "lang": "en",
  "project": 1,
  "day": 0
 },
 "empty_markers": [
  "0",
  "A1÷¬~"
 ],
 "limits": {
  "min_gap_ms": 250,
  "live_poll_seconds_min": 15,
  "backoff_http": [
   403,
   429
  ],
  "max_parallel": 4
 },
 "sports": {
  "soccer": 1,
  "tennis": 2,
  "basketball": 3,
  "hockey": 4,
  "american-football": 5,
  "baseball": 6,
  "handball": 7,
  "rugby-union": 8,
  "floorball": 9,
  "bandy": 10,
  "futsal": 11,
  "volleyball": 12,
  "cricket": 13,
  "darts": 14,
  "snooker": 15,
  "boxing": 16,
  "beach-volleyball": 17,
  "aussie-rules": 18,
  "rugby-league": 19,
  "badminton": 21,
  "water-polo": 22,
  "golf": 23,
  "field-hockey": 24,
  "table-tennis": 25,
  "beach-soccer": 26,
  "mma": 28,
  "netball": 29,
  "pesapallo": 30,
  "motorsport": 31,
  "motorsport-auto-racing": 32,
  "motorsport-moto-racing": 33,
  "cycling": 34,
  "horse-racing": 35,
  "esports": 36,
  "winter-sports": 37,
  "winter-sports-ski-jumping": 38,
  "winter-sports-alpine-skiing": 39,
  "winter-sports-cross-country": 40,
  "winter-sports-biathlon": 41,
  "kabaddi": 42
 },
 "match_page": {
  "core": "match.core",
  "tabs_field": "tabs",
  "always": [
   "match.summary",
   "match.venue",
   "match.detail-stats"
  ],
  "tab_resources": {
   "ST": [
    "match.stats"
   ],
   "HH": [
    "match.h2h"
   ],
   "LI": [
    "match.lineups"
   ],
   "PS": [
    "match.player-stats"
   ],
   "PMS": [
    "match.player-stats"
   ],
   "OD": [
    "match.odds"
   ],
   "TTS": [
    "match.top-scorers",
    "match.scorers-detail"
   ],
   "LT": [
    "match.standings"
   ],
   "NF": [
    "match.news"
   ],
   "HITO": [
    "match.highlights"
   ]
  },
  "note": "Fetch match.core first; show a tab only if its code is in core.tabs and the resource returns data."
 },
 "list_screen": {
  "resource": "matches",
  "paging": "client-side by league via paginate()",
  "status_values": [
   "scheduled",
   "live",
   "finished"
  ]
 },
 "resources": {
  "matches": {
   "request": {
    "type": "feed",
    "path": "f_{sport_id}_{day}_{tz}_{lang}_{project}"
   },
   "parse": {
    "kind": "tree",
    "output": "leagues",
    "levels": {
     "league": {
      "array": "leagues",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "league",
      "array": "matches"
     },
     "entry": {
      "parent": "league",
      "array": "entries"
     }
    },
    "rules": [
     {
      "when": {
       "has": "ZA"
      },
      "open": "league",
      "fields": {
       "name": "ZA",
       "country": "ZY",
       "logo": "OAJ",
       "tournament_key": "ZE",
       "stage_id": "ZC",
       "path": "ZL",
       "info.start": {
        "key": "ZN",
        "split": "|",
        "index": 0,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.end": {
        "key": "ZN",
        "split": "|",
        "index": 1,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.par": {
        "key": "ZN",
        "split": "|",
        "index": 2,
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.prize": {
        "key": "ZN",
        "split": "|",
        "index": 3,
        "when": {
         "nonempty": "ZN"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "has": "AF"
        }
       ]
      },
      "open": "match",
      "fields": {
       "id": "AA",
       "start": {
        "key": "AD",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       },
       "home.id": "PX",
       "home.name": "AE",
       "home.score": {
        "key": "AG",
        "type": "int"
       },
       "home.logo": "OA",
       "away.id": "PY",
       "away.name": "AF",
       "away.score": {
        "key": "AH",
        "type": "int"
       },
       "away.logo": "OB",
       "stage_code": {
        "key": "AC",
        "type": "int",
        "when": {
         "all": [
          {
           "has": "AC"
          },
          {
           "key_not_in": {
            "AC": [
             "1",
             "2",
             "3"
            ]
           }
          }
         ]
        }
       },
       "minute": {
        "transform": "football_minute",
        "stage_key": "AC",
        "labels": {
         "38": "HT",
         "46": "Break"
        },
        "start": "start",
        "second_half": "13",
        "break_minutes": 15,
        "max": 120,
        "when": {
         "all": [
          {
           "sport_in": [
            1
           ]
          },
          {
           "out_eq": {
            "status": "live"
           }
          }
         ]
        }
       },
       "winner": {
        "transform": "winner",
        "home": "home.score",
        "away": "away.score",
        "when": {
         "out_eq": {
          "status": "finished"
         }
        }
       },
       "periods": {
        "pairs": [
         [
          "BA",
          "BB"
         ],
         [
          "BC",
          "BD"
         ],
         [
          "BE",
          "BF"
         ],
         [
          "BG",
          "BH"
         ],
         [
          "BI",
          "BJ"
         ],
         [
          "BK",
          "BL"
         ],
         [
          "BM",
          "BN"
         ]
        ],
        "type": "int",
        "when": {
         "all": [
          {
           "sport_not_in": [
            1,
            6
           ]
          },
          {
           "not_has": "DO"
          }
         ]
        }
       },
       "home.text": {
        "template": "{BA}/{DK|?} ({DO|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BA"
          }
         ]
        }
       },
       "away.text": {
        "template": "{BB}/{DL|?} ({DP|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BB"
          }
         ]
        }
       },
       "result": {
        "key": "LS",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "LS"
          }
         ]
        }
       },
       "home.country": {
        "key": "FU",
        "when": {
         "nonempty": "FU"
        }
       },
       "away.country": {
        "key": "FV",
        "when": {
         "nonempty": "FV"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "not_has": "AF"
        }
       ]
      },
      "open": "entry",
      "fields": {
       "id": "AA",
       "participant_id": "PX",
       "name": "AE",
       "country": "FU",
       "position": {
        "key": "NI",
        "type": "int"
       },
       "score": {
        "key": "AG",
        "type": "int"
       },
       "round": {
        "key": "BI",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       }
      }
     }
    ],
    "post": [
     {
      "sort": true,
      "each": "leagues",
      "array": "entries",
      "by": "position",
      "null_as": 9999
     },
     {
      "keep_if_any": [
       "matches",
       "entries"
      ],
      "array": "leagues"
     }
    ]
   },
   "ttl_seconds": 30
  },
  "match.core": {
   "request": {
    "type": "feed",
    "path": "dc_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "records": "first",
    "init": {
     "tabs": [
      ""
     ],
     "start": null,
     "updated": null,
     "home_score": null,
     "away_score": null
    },
    "levels": {},
    "rules": [
     {
      "set": {
       "tabs": {
        "key": "DX",
        "split": ","
       },
       "start": {
        "key": "DC",
        "type": "ts_obj"
       },
       "updated": {
        "key": "DD",
        "type": "ts_obj"
       },
       "home_score": {
        "key": "DE",
        "type": "num"
       },
       "away_score": {
        "key": "DF",
        "type": "num"
       },
       "raw": {
        "rest": {
         "exclude": []
        }
       }
      }
     }
    ]
   },
   "ttl_seconds": 30
  },
  "match.summary": {
   "request": {
    "type": "feed",
    "path": "df_sui_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "init": {
     "info": {},
     "total_duration": null,
     "periods": []
    },
    "levels": {
     "period": {
      "array": "periods",
      "children_init": [
       "incidents"
      ]
     },
     "incident": {
      "parent": "period",
      "array": "incidents"
     }
    },
    "rules": [
     {
      "when": {
       "has": "MIT"
      },
      "continue": true,
      "pair_map": {
       "into": "info",
       "key": "MIT",
       "value": "MIV",
       "labels": {
        "REF": "referee",
        "RCO": "referee_country_id",
        "RTY": "referee_type",
        "RCC": "referee_country",
        "VEN": "venue",
        "TWN": "city",
        "CAP": "capacity",
        "TA": "tv",
        "WEA": "weather"
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AC"
        },
        {
         "not_has": "III"
        }
       ]
      },
      "open": "period",
      "fields": {
       "period": "AC",
       "home": {
        "collect": "IG",
        "type": "num"
       },
       "away": {
        "collect": "IH",
        "type": "num"
       },
       "duration": {
        "coalesce": [
         "RC",
         "RD"
        ]
       },
       "home_score": {
        "transform": "first_of",
        "from": "home"
       },
       "away_score": {
        "transform": "first_of",
        "from": "away"
       },
       "extra": {
        "rest": {
         "exclude": [
          "AC",
          "RC",
          "RD",
          "IG",
          "IH"
         ]
        }
       }
      }
     },
     {
      "when": {
       "has": "III"
      },
      "open": "incident",
      "fields": {
       "id": "III",
       "side": {
        "key": "IA",
        "enum": {
         "1": "home",
         "2": "away"
        }
       },
       "minute": "IB",
       "score": {
        "template": "{INX}-{IOX}",
        "when": {
         "has": "INX"
        },
        "else_null": true
       },
       "players": {
        "pairs_groups": {
         "start": "IE",
         "fields": {
          "IE": "type",
          "IF": "name",
          "IU": "url",
          "IM": "id",
          "IK": "role",
          "ICT": "note"
         },
         "pre_extra": {
          "into": "extra",
          "exclude": [
           "III",
           "IA",
           "IB",
           "INX",
           "IOX"
          ]
         }
        }
       }
      }
     },
     {
      "when": {
       "has": "RB"
      },
      "set": {
       "total_duration": "RB"
      }
     }
    ]
   },
   "ttl_seconds": 30
  },
  "match.venue": {
   "request": {
    "type": "feed",
    "path": "df_sur_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "init": {
     "info": {},
     "total_duration": null,
     "periods": []
    },
    "levels": {
     "period": {
      "array": "periods",
      "children_init": [
       "incidents"
      ]
     },
     "incident": {
      "parent": "period",
      "array": "incidents"
     }
    },
    "rules": [
     {
      "when": {
       "has": "MIT"
      },
      "continue": true,
      "pair_map": {
       "into": "info",
       "key": "MIT",
       "value": "MIV",
       "labels": {
        "REF": "referee",
        "RCO": "referee_country_id",
        "RTY": "referee_type",
        "RCC": "referee_country",
        "VEN": "venue",
        "TWN": "city",
        "CAP": "capacity",
        "TA": "tv",
        "WEA": "weather"
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AC"
        },
        {
         "not_has": "III"
        }
       ]
      },
      "open": "period",
      "fields": {
       "period": "AC",
       "home": {
        "collect": "IG",
        "type": "num"
       },
       "away": {
        "collect": "IH",
        "type": "num"
       },
       "duration": {
        "coalesce": [
         "RC",
         "RD"
        ]
       },
       "home_score": {
        "transform": "first_of",
        "from": "home"
       },
       "away_score": {
        "transform": "first_of",
        "from": "away"
       },
       "extra": {
        "rest": {
         "exclude": [
          "AC",
          "RC",
          "RD",
          "IG",
          "IH"
         ]
        }
       }
      }
     },
     {
      "when": {
       "has": "III"
      },
      "open": "incident",
      "fields": {
       "id": "III",
       "side": {
        "key": "IA",
        "enum": {
         "1": "home",
         "2": "away"
        }
       },
       "minute": "IB",
       "score": {
        "template": "{INX}-{IOX}",
        "when": {
         "has": "INX"
        },
        "else_null": true
       },
       "players": {
        "pairs_groups": {
         "start": "IE",
         "fields": {
          "IE": "type",
          "IF": "name",
          "IU": "url",
          "IM": "id",
          "IK": "role",
          "ICT": "note"
         },
         "pre_extra": {
          "into": "extra",
          "exclude": [
           "III",
           "IA",
           "IB",
           "INX",
           "IOX"
          ]
         }
        }
       }
      }
     },
     {
      "when": {
       "has": "RB"
      },
      "set": {
       "total_duration": "RB"
      }
     }
    ],
    "pick": [
     "info"
    ]
   },
   "ttl_seconds": 3600
  },
  "match.stats": {
   "request": {
    "type": "feed",
    "path": "df_st_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "output": "periods",
    "levels": {
     "period": {
      "array": "periods",
      "children_init": [
       "groups"
      ]
     },
     "group": {
      "parent": "period",
      "array": "groups",
      "children_init": [
       "stats"
      ]
     },
     "stat": {
      "parent": "group",
      "array": "stats"
     }
    },
    "rules": [
     {
      "when": {
       "has": "SE"
      },
      "open": "period",
      "fields": {
       "period": "SE"
      }
     },
     {
      "when": {
       "has": "SF"
      },
      "open": "group",
      "fields": {
       "group": "SF"
      }
     },
     {
      "when": {
       "has": "SG"
      },
      "open": "stat",
      "fields": {
       "id": {
        "key": "SD",
        "type": "num"
       },
       "name": "SG",
       "home": "SH",
       "away": "SI"
      }
     }
    ]
   },
   "ttl_seconds": 30
  },
  "match.detail-stats": {
   "request": {
    "type": "feed",
    "path": "df_stn_{project}_{id}"
   },
   "parse": {
    "kind": "cells",
    "row_start": [
     "TS",
     "RW"
    ],
    "row_end": [
     "TE",
     "RW"
    ],
    "cell_key": "ID",
    "cell_value": "PV",
    "keep_unknown": false,
    "require": "name",
    "map": {
     "sN": "name",
     "sH": "home",
     "sA": "away"
    }
   },
   "ttl_seconds": 30
  },
  "match.h2h": {
   "request": {
    "type": "feed",
    "path": "df_hh_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "output": "sections",
    "levels": {
     "section": {
      "array": "sections",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "section",
      "array": "matches"
     }
    },
    "rules": [
     {
      "when": {
       "any": [
        {
         "has": "KA"
        },
        {
         "has": "KB"
        }
       ]
      },
      "open": "section",
      "fields": {
       "title": {
        "coalesce": [
         "KA",
         "KB"
        ]
       }
      }
     },
     {
      "when": {
       "has": "KC"
      },
      "open": "match",
      "fields": {
       "id": "KP",
       "start": {
        "key": "KC",
        "type": "ts_obj"
       },
       "competition": "KF",
       "country": "KH",
       "home": "KJ",
       "away": "KK",
       "score": "KL",
       "home_goals": {
        "key": "KU",
        "type": "num"
       },
       "away_goals": {
        "key": "KT",
        "type": "num"
       },
       "result_for_team": "WIS"
      }
     }
    ]
   },
   "ttl_seconds": 600
  },
  "match.player-stats": {
   "request": {
    "type": "feed",
    "path": "df_psn_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "output": "sections",
    "levels": {
     "section": {
      "array": "sections",
      "children_init": [
       "columns",
       "players"
      ]
     },
     "player": {
      "parent": "section",
      "array": "players"
     }
    },
    "rules": [
     {
      "when": {
       "has": "PA"
      },
      "open": "section",
      "fields": {
       "group": "PA"
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "TT"
        },
        {
         "not_has": "PF"
        },
        {
         "is_open": "section"
        }
       ]
      },
      "on_level": "section",
      "set": {
       "players_of": "TT"
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "PF"
        },
        {
         "is_open": "section"
        }
       ]
      },
      "collect": "columns",
      "to_level": "section",
      "fields": {
       "key": "PF",
       "name": {
        "coalesce": [
         "PG",
         "PF"
        ]
       },
       "type": "PH"
      }
     },
     {
      "when": {
       "has": "PJ"
      },
      "open": "player",
      "fields": {
       "name": "PJ",
       "url": {
        "key": "PK",
        "prefix": "https://www.flashscore.com"
       },
       "country": "PL",
       "country_id": "PM",
       "team_code": "PN",
       "stats": {
        "transform": "zip_columns",
        "parent": "section",
        "columns": "columns",
        "exclude": "Player",
        "values_key": "PC"
       }
      }
     }
    ]
   },
   "ttl_seconds": 60
  },
  "match.news": {
   "request": {
    "type": "feed",
    "path": "df_nf_{project}_{id}"
   },
   "parse": {
    "kind": "cells",
    "row_start": [
     "TS",
     "RW"
    ],
    "row_end": [
     "TE",
     "RW"
    ],
    "cell_key": "PT",
    "cell_value": "PV",
    "keep_unknown": true,
    "map": {
     "TL": "title",
     "LI": {
      "name": "link",
      "prefix": "https://www.flashscore.com"
     },
     "IU": "image",
     "PU": {
      "name": "published",
      "type": "ts_or_raw"
     },
     "NA": "source",
     "FSNP": "fsnp"
    }
   },
   "ttl_seconds": 600
  },
  "match.highlights": {
   "request": {
    "type": "feed",
    "path": "df_hi_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "output": "items",
    "levels": {
     "item": {
      "array": "items"
     }
    },
    "rules": [
     {
      "when": {
       "has": "HII"
      },
      "open": "item",
      "fields": {
       "title": "HTI",
       "url": "HUO",
       "embed": "HUR",
       "image": "HIP",
       "provider": "HHV"
      }
     }
    ]
   },
   "ttl_seconds": 600
  },
  "match.standings": {
   "request": {
    "type": "feed",
    "path": "df_to_{project}_{id}_{kind}",
    "defaults": {
     "kind": 1
    }
   },
   "parse": {
    "kind": "tree",
    "init": {
     "columns": [],
     "groups": [],
     "legend": []
    },
    "levels": {
     "group": {
      "array": "groups",
      "children_init": [
       "teams"
      ]
     },
     "team": {
      "parent": "group",
      "array": "teams",
      "children_init": [
       "form"
      ],
      "auto_parent": {
       "fields": {
        "group": {
         "const": null
        }
       }
      }
     },
     "form": {
      "parent": "team",
      "array": "form"
     }
    },
    "rules": [
     {
      "when": {
       "has": "TZ"
      },
      "set": {
       "title": "TZ",
       "scope": "TZS"
      }
     },
     {
      "when": {
       "all": [
        {
         "any": [
          {
           "all": [
            {
             "has": "TA"
            },
            {
             "has": "TT"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TB"
            },
            {
             "has": "TC"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TD"
            },
            {
             "has": "TE"
            }
           ]
          }
         ]
        },
        {
         "any": [
          {
           "any_nonempty": [
            "TT",
            "TC",
            "TE"
           ]
          },
          {
           "no_open": "group"
          }
         ]
        }
       ]
      },
      "open": "group",
      "fields": {
       "group": {
        "coalesce": [
         "TT",
         "TC",
         "TE"
        ]
       }
      }
     },
     {
      "when": {
       "has": "TR"
      },
      "open": "team",
      "fields": {
       "rank": {
        "key": "TR",
        "type": "num",
        "when": {
         "has": "TR"
        }
       },
       "played": {
        "key": "TM",
        "type": "num",
        "when": {
         "has": "TM"
        }
       },
       "won": {
        "key": "TW",
        "type": "num",
        "when": {
         "has": "TW"
        }
       },
       "won_regular": {
        "key": "TWR",
        "type": "num",
        "when": {
         "has": "TWR"
        }
       },
       "won_overtime": {
        "key": "TWO",
        "type": "num",
        "when": {
         "has": "TWO"
        }
       },
       "won_penalties": {
        "key": "TWP",
        "type": "num",
        "when": {
         "has": "TWP"
        }
       },
       "drawn": {
        "key": "TD",
        "type": "num",
        "when": {
         "has": "TD"
        }
       },
       "lost": {
        "key": "TL",
        "type": "num",
        "when": {
         "has": "TL"
        }
       },
       "lost_regular": {
        "key": "TLR",
        "type": "num",
        "when": {
         "has": "TLR"
        }
       },
       "lost_overtime": {
        "key": "TLO",
        "type": "num",
        "when": {
         "has": "TLO"
        }
       },
       "lost_penalties": {
        "key": "TLP",
        "type": "num",
        "when": {
         "has": "TLP"
        }
       },
       "goals": {
        "key": "TG",
        "type": "num",
        "when": {
         "has": "TG"
        }
       },
       "points": {
        "key": "TP",
        "type": "num",
        "when": {
         "has": "TP"
        }
       },
       "avg_points": {
        "key": "TAP",
        "type": "num",
        "when": {
         "has": "TAP"
        }
       },
       "points_per_game": {
        "key": "TPK",
        "type": "num",
        "when": {
         "has": "TPK"
        }
       },
       "points_from_form": {
        "key": "TPF",
        "type": "num",
        "when": {
         "has": "TPF"
        }
       },
       "team": {
        "key": "TN",
        "when": {
         "has": "TN"
        }
       },
       "team_id": {
        "key": "TI",
        "when": {
         "has": "TI"
        }
       },
       "url": {
        "key": "TIU",
        "prefix": "https://www.flashscore.com"
       }
      }
     },
     {
      "when": {
       "has": "LME"
      },
      "open": "form",
      "fields": {
       "match_id": "LME",
       "result": "LMU",
       "start": {
        "key": "LMC",
        "type": "ts_obj"
       },
       "home": "LMJ",
       "away": "LMK",
       "score": {
        "template": "{LMG}-{AU}",
        "when": {
         "nonempty": "LMG"
        },
        "else_null": true
       }
      }
     },
     {
      "when": {
       "has": "HCI"
      },
      "collect": "columns",
      "fields": {
       "id": "HCI",
       "name": "HCT",
       "short": "HCN"
      }
     },
     {
      "when": {
       "has": "TV"
      },
      "collect": "legend",
      "value": {
       "key": "TV",
       "split": "|"
      }
     }
    ]
   },
   "ttl_seconds": 120
  },
  "match.top-scorers": {
   "request": {
    "type": "feed",
    "path": "df_tt_{project}_{id}"
   },
   "parse": {
    "kind": "tree",
    "init": {
     "title": null,
     "columns": [],
     "rows": []
    },
    "levels": {
     "row": {
      "array": "rows"
     }
    },
    "rules": [
     {
      "when": {
       "has": "TZ"
      },
      "set": {
       "title": "TZ"
      }
     },
     {
      "when": {
       "has": "HCI"
      },
      "collect": "columns",
      "fields": {
       "id": "HCI",
       "name": "HCT",
       "short": "HCN"
      }
     },
     {
      "when": {
       "has": "UA"
      },
      "open": "row",
      "fields": {
       "rank": {
        "key": "UA",
        "type": "num"
       },
       "player": "UF",
       "player_id": "UP",
       "player_url": {
        "key": "UUR",
        "prefix": "https://www.flashscore.com"
       },
       "position": "UPN",
       "nationality": "UCN",
       "team": "UU",
       "team_id": "UT",
       "team_url": {
        "key": "UUU",
        "prefix": "https://www.flashscore.com"
       },
       "values": {
        "object": {
         "UH": "UH",
         "UI": "UI",
         "UJ": "UJ",
         "UK": "UK"
        }
       }
      }
     }
    ]
   },
   "ttl_seconds": 120
  },
  "competition.standings": {
   "request": {
    "type": "feed",
    "path": "to_{tournament_key}_{stage_id}_{kind}",
    "defaults": {
     "kind": 1
    }
   },
   "parse": {
    "kind": "tree",
    "init": {
     "columns": [],
     "groups": [],
     "legend": []
    },
    "levels": {
     "group": {
      "array": "groups",
      "children_init": [
       "teams"
      ]
     },
     "team": {
      "parent": "group",
      "array": "teams",
      "children_init": [
       "form"
      ],
      "auto_parent": {
       "fields": {
        "group": {
         "const": null
        }
       }
      }
     },
     "form": {
      "parent": "team",
      "array": "form"
     }
    },
    "rules": [
     {
      "when": {
       "has": "TZ"
      },
      "set": {
       "title": "TZ",
       "scope": "TZS"
      }
     },
     {
      "when": {
       "all": [
        {
         "any": [
          {
           "all": [
            {
             "has": "TA"
            },
            {
             "has": "TT"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TB"
            },
            {
             "has": "TC"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TD"
            },
            {
             "has": "TE"
            }
           ]
          }
         ]
        },
        {
         "any": [
          {
           "any_nonempty": [
            "TT",
            "TC",
            "TE"
           ]
          },
          {
           "no_open": "group"
          }
         ]
        }
       ]
      },
      "open": "group",
      "fields": {
       "group": {
        "coalesce": [
         "TT",
         "TC",
         "TE"
        ]
       }
      }
     },
     {
      "when": {
       "has": "TR"
      },
      "open": "team",
      "fields": {
       "rank": {
        "key": "TR",
        "type": "num",
        "when": {
         "has": "TR"
        }
       },
       "played": {
        "key": "TM",
        "type": "num",
        "when": {
         "has": "TM"
        }
       },
       "won": {
        "key": "TW",
        "type": "num",
        "when": {
         "has": "TW"
        }
       },
       "won_regular": {
        "key": "TWR",
        "type": "num",
        "when": {
         "has": "TWR"
        }
       },
       "won_overtime": {
        "key": "TWO",
        "type": "num",
        "when": {
         "has": "TWO"
        }
       },
       "won_penalties": {
        "key": "TWP",
        "type": "num",
        "when": {
         "has": "TWP"
        }
       },
       "drawn": {
        "key": "TD",
        "type": "num",
        "when": {
         "has": "TD"
        }
       },
       "lost": {
        "key": "TL",
        "type": "num",
        "when": {
         "has": "TL"
        }
       },
       "lost_regular": {
        "key": "TLR",
        "type": "num",
        "when": {
         "has": "TLR"
        }
       },
       "lost_overtime": {
        "key": "TLO",
        "type": "num",
        "when": {
         "has": "TLO"
        }
       },
       "lost_penalties": {
        "key": "TLP",
        "type": "num",
        "when": {
         "has": "TLP"
        }
       },
       "goals": {
        "key": "TG",
        "type": "num",
        "when": {
         "has": "TG"
        }
       },
       "points": {
        "key": "TP",
        "type": "num",
        "when": {
         "has": "TP"
        }
       },
       "avg_points": {
        "key": "TAP",
        "type": "num",
        "when": {
         "has": "TAP"
        }
       },
       "points_per_game": {
        "key": "TPK",
        "type": "num",
        "when": {
         "has": "TPK"
        }
       },
       "points_from_form": {
        "key": "TPF",
        "type": "num",
        "when": {
         "has": "TPF"
        }
       },
       "team": {
        "key": "TN",
        "when": {
         "has": "TN"
        }
       },
       "team_id": {
        "key": "TI",
        "when": {
         "has": "TI"
        }
       },
       "url": {
        "key": "TIU",
        "prefix": "https://www.flashscore.com"
       }
      }
     },
     {
      "when": {
       "has": "LME"
      },
      "open": "form",
      "fields": {
       "match_id": "LME",
       "result": "LMU",
       "start": {
        "key": "LMC",
        "type": "ts_obj"
       },
       "home": "LMJ",
       "away": "LMK",
       "score": {
        "template": "{LMG}-{AU}",
        "when": {
         "nonempty": "LMG"
        },
        "else_null": true
       }
      }
     },
     {
      "when": {
       "has": "HCI"
      },
      "collect": "columns",
      "fields": {
       "id": "HCI",
       "name": "HCT",
       "short": "HCN"
      }
     },
     {
      "when": {
       "has": "TV"
      },
      "collect": "legend",
      "value": {
       "key": "TV",
       "split": "|"
      }
     }
    ]
   },
   "ttl_seconds": 120
  },
  "competition.form-table": {
   "request": {
    "type": "feed",
    "path": "tl_{tournament_key}_{stage_id}"
   },
   "parse": {
    "kind": "tree",
    "init": {
     "columns": [],
     "groups": [],
     "legend": []
    },
    "levels": {
     "group": {
      "array": "groups",
      "children_init": [
       "teams"
      ]
     },
     "team": {
      "parent": "group",
      "array": "teams",
      "children_init": [
       "form"
      ],
      "auto_parent": {
       "fields": {
        "group": {
         "const": null
        }
       }
      }
     },
     "form": {
      "parent": "team",
      "array": "form"
     }
    },
    "rules": [
     {
      "when": {
       "has": "TZ"
      },
      "set": {
       "title": "TZ",
       "scope": "TZS"
      }
     },
     {
      "when": {
       "all": [
        {
         "any": [
          {
           "all": [
            {
             "has": "TA"
            },
            {
             "has": "TT"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TB"
            },
            {
             "has": "TC"
            }
           ]
          },
          {
           "all": [
            {
             "has": "TD"
            },
            {
             "has": "TE"
            }
           ]
          }
         ]
        },
        {
         "any": [
          {
           "any_nonempty": [
            "TT",
            "TC",
            "TE"
           ]
          },
          {
           "no_open": "group"
          }
         ]
        }
       ]
      },
      "open": "group",
      "fields": {
       "group": {
        "coalesce": [
         "TT",
         "TC",
         "TE"
        ]
       }
      }
     },
     {
      "when": {
       "has": "TR"
      },
      "open": "team",
      "fields": {
       "rank": {
        "key": "TR",
        "type": "num",
        "when": {
         "has": "TR"
        }
       },
       "played": {
        "key": "TM",
        "type": "num",
        "when": {
         "has": "TM"
        }
       },
       "won": {
        "key": "TW",
        "type": "num",
        "when": {
         "has": "TW"
        }
       },
       "won_regular": {
        "key": "TWR",
        "type": "num",
        "when": {
         "has": "TWR"
        }
       },
       "won_overtime": {
        "key": "TWO",
        "type": "num",
        "when": {
         "has": "TWO"
        }
       },
       "won_penalties": {
        "key": "TWP",
        "type": "num",
        "when": {
         "has": "TWP"
        }
       },
       "drawn": {
        "key": "TD",
        "type": "num",
        "when": {
         "has": "TD"
        }
       },
       "lost": {
        "key": "TL",
        "type": "num",
        "when": {
         "has": "TL"
        }
       },
       "lost_regular": {
        "key": "TLR",
        "type": "num",
        "when": {
         "has": "TLR"
        }
       },
       "lost_overtime": {
        "key": "TLO",
        "type": "num",
        "when": {
         "has": "TLO"
        }
       },
       "lost_penalties": {
        "key": "TLP",
        "type": "num",
        "when": {
         "has": "TLP"
        }
       },
       "goals": {
        "key": "TG",
        "type": "num",
        "when": {
         "has": "TG"
        }
       },
       "points": {
        "key": "TP",
        "type": "num",
        "when": {
         "has": "TP"
        }
       },
       "avg_points": {
        "key": "TAP",
        "type": "num",
        "when": {
         "has": "TAP"
        }
       },
       "points_per_game": {
        "key": "TPK",
        "type": "num",
        "when": {
         "has": "TPK"
        }
       },
       "points_from_form": {
        "key": "TPF",
        "type": "num",
        "when": {
         "has": "TPF"
        }
       },
       "team": {
        "key": "TN",
        "when": {
         "has": "TN"
        }
       },
       "team_id": {
        "key": "TI",
        "when": {
         "has": "TI"
        }
       },
       "url": {
        "key": "TIU",
        "prefix": "https://www.flashscore.com"
       }
      }
     },
     {
      "when": {
       "has": "LME"
      },
      "open": "form",
      "fields": {
       "match_id": "LME",
       "result": "LMU",
       "start": {
        "key": "LMC",
        "type": "ts_obj"
       },
       "home": "LMJ",
       "away": "LMK",
       "score": {
        "template": "{LMG}-{AU}",
        "when": {
         "nonempty": "LMG"
        },
        "else_null": true
       }
      }
     },
     {
      "when": {
       "has": "HCI"
      },
      "collect": "columns",
      "fields": {
       "id": "HCI",
       "name": "HCT",
       "short": "HCN"
      }
     },
     {
      "when": {
       "has": "TV"
      },
      "collect": "legend",
      "value": {
       "key": "TV",
       "split": "|"
      }
     }
    ]
   },
   "ttl_seconds": 120
  },
  "competition.top-scorers": {
   "request": {
    "type": "feed",
    "path": "tt_{tournament_key}_{stage_id}"
   },
   "parse": {
    "kind": "tree",
    "init": {
     "title": null,
     "columns": [],
     "rows": []
    },
    "levels": {
     "row": {
      "array": "rows"
     }
    },
    "rules": [
     {
      "when": {
       "has": "TZ"
      },
      "set": {
       "title": "TZ"
      }
     },
     {
      "when": {
       "has": "HCI"
      },
      "collect": "columns",
      "fields": {
       "id": "HCI",
       "name": "HCT",
       "short": "HCN"
      }
     },
     {
      "when": {
       "has": "UA"
      },
      "open": "row",
      "fields": {
       "rank": {
        "key": "UA",
        "type": "num"
       },
       "player": "UF",
       "player_id": "UP",
       "player_url": {
        "key": "UUR",
        "prefix": "https://www.flashscore.com"
       },
       "position": "UPN",
       "nationality": "UCN",
       "team": "UU",
       "team_id": "UT",
       "team_url": {
        "key": "UUU",
        "prefix": "https://www.flashscore.com"
       },
       "values": {
        "object": {
         "UH": "UH",
         "UI": "UI",
         "UJ": "UJ",
         "UK": "UK"
        }
       }
      }
     }
    ]
   },
   "ttl_seconds": 120
  },
  "competition.results": {
   "request": {
    "type": "feed",
    "path": "tr_{sport_id}_{country_id}_{template_id}_{season_id}_{page}_{tz}_{lang}_{project}",
    "defaults": {
     "page": 0
    }
   },
   "parse": {
    "kind": "tree",
    "output": "leagues",
    "levels": {
     "league": {
      "array": "leagues",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "league",
      "array": "matches"
     },
     "entry": {
      "parent": "league",
      "array": "entries"
     }
    },
    "rules": [
     {
      "when": {
       "has": "ZA"
      },
      "open": "league",
      "fields": {
       "name": "ZA",
       "country": "ZY",
       "logo": "OAJ",
       "tournament_key": "ZE",
       "stage_id": "ZC",
       "path": "ZL",
       "info.start": {
        "key": "ZN",
        "split": "|",
        "index": 0,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.end": {
        "key": "ZN",
        "split": "|",
        "index": 1,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.par": {
        "key": "ZN",
        "split": "|",
        "index": 2,
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.prize": {
        "key": "ZN",
        "split": "|",
        "index": 3,
        "when": {
         "nonempty": "ZN"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "has": "AF"
        }
       ]
      },
      "open": "match",
      "fields": {
       "id": "AA",
       "start": {
        "key": "AD",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       },
       "home.id": "PX",
       "home.name": "AE",
       "home.score": {
        "key": "AG",
        "type": "int"
       },
       "home.logo": "OA",
       "away.id": "PY",
       "away.name": "AF",
       "away.score": {
        "key": "AH",
        "type": "int"
       },
       "away.logo": "OB",
       "stage_code": {
        "key": "AC",
        "type": "int",
        "when": {
         "all": [
          {
           "has": "AC"
          },
          {
           "key_not_in": {
            "AC": [
             "1",
             "2",
             "3"
            ]
           }
          }
         ]
        }
       },
       "minute": {
        "transform": "football_minute",
        "stage_key": "AC",
        "labels": {
         "38": "HT",
         "46": "Break"
        },
        "start": "start",
        "second_half": "13",
        "break_minutes": 15,
        "max": 120,
        "when": {
         "all": [
          {
           "sport_in": [
            1
           ]
          },
          {
           "out_eq": {
            "status": "live"
           }
          }
         ]
        }
       },
       "winner": {
        "transform": "winner",
        "home": "home.score",
        "away": "away.score",
        "when": {
         "out_eq": {
          "status": "finished"
         }
        }
       },
       "periods": {
        "pairs": [
         [
          "BA",
          "BB"
         ],
         [
          "BC",
          "BD"
         ],
         [
          "BE",
          "BF"
         ],
         [
          "BG",
          "BH"
         ],
         [
          "BI",
          "BJ"
         ],
         [
          "BK",
          "BL"
         ],
         [
          "BM",
          "BN"
         ]
        ],
        "type": "int",
        "when": {
         "all": [
          {
           "sport_not_in": [
            1,
            6
           ]
          },
          {
           "not_has": "DO"
          }
         ]
        }
       },
       "home.text": {
        "template": "{BA}/{DK|?} ({DO|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BA"
          }
         ]
        }
       },
       "away.text": {
        "template": "{BB}/{DL|?} ({DP|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BB"
          }
         ]
        }
       },
       "result": {
        "key": "LS",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "LS"
          }
         ]
        }
       },
       "home.country": {
        "key": "FU",
        "when": {
         "nonempty": "FU"
        }
       },
       "away.country": {
        "key": "FV",
        "when": {
         "nonempty": "FV"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "not_has": "AF"
        }
       ]
      },
      "open": "entry",
      "fields": {
       "id": "AA",
       "participant_id": "PX",
       "name": "AE",
       "country": "FU",
       "position": {
        "key": "NI",
        "type": "int"
       },
       "score": {
        "key": "AG",
        "type": "int"
       },
       "round": {
        "key": "BI",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       }
      }
     }
    ],
    "post": [
     {
      "sort": true,
      "each": "leagues",
      "array": "entries",
      "by": "position",
      "null_as": 9999
     },
     {
      "keep_if_any": [
       "matches",
       "entries"
      ],
      "array": "leagues"
     }
    ]
   },
   "ttl_seconds": 120
  },
  "competition.fixtures": {
   "request": {
    "type": "feed",
    "path": "tf_{sport_id}_{country_id}_{template_id}_{season_id}_{page}_{tz}_{lang}_{project}",
    "defaults": {
     "page": 0
    }
   },
   "parse": {
    "kind": "tree",
    "output": "leagues",
    "levels": {
     "league": {
      "array": "leagues",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "league",
      "array": "matches"
     },
     "entry": {
      "parent": "league",
      "array": "entries"
     }
    },
    "rules": [
     {
      "when": {
       "has": "ZA"
      },
      "open": "league",
      "fields": {
       "name": "ZA",
       "country": "ZY",
       "logo": "OAJ",
       "tournament_key": "ZE",
       "stage_id": "ZC",
       "path": "ZL",
       "info.start": {
        "key": "ZN",
        "split": "|",
        "index": 0,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.end": {
        "key": "ZN",
        "split": "|",
        "index": 1,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.par": {
        "key": "ZN",
        "split": "|",
        "index": 2,
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.prize": {
        "key": "ZN",
        "split": "|",
        "index": 3,
        "when": {
         "nonempty": "ZN"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "has": "AF"
        }
       ]
      },
      "open": "match",
      "fields": {
       "id": "AA",
       "start": {
        "key": "AD",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       },
       "home.id": "PX",
       "home.name": "AE",
       "home.score": {
        "key": "AG",
        "type": "int"
       },
       "home.logo": "OA",
       "away.id": "PY",
       "away.name": "AF",
       "away.score": {
        "key": "AH",
        "type": "int"
       },
       "away.logo": "OB",
       "stage_code": {
        "key": "AC",
        "type": "int",
        "when": {
         "all": [
          {
           "has": "AC"
          },
          {
           "key_not_in": {
            "AC": [
             "1",
             "2",
             "3"
            ]
           }
          }
         ]
        }
       },
       "minute": {
        "transform": "football_minute",
        "stage_key": "AC",
        "labels": {
         "38": "HT",
         "46": "Break"
        },
        "start": "start",
        "second_half": "13",
        "break_minutes": 15,
        "max": 120,
        "when": {
         "all": [
          {
           "sport_in": [
            1
           ]
          },
          {
           "out_eq": {
            "status": "live"
           }
          }
         ]
        }
       },
       "winner": {
        "transform": "winner",
        "home": "home.score",
        "away": "away.score",
        "when": {
         "out_eq": {
          "status": "finished"
         }
        }
       },
       "periods": {
        "pairs": [
         [
          "BA",
          "BB"
         ],
         [
          "BC",
          "BD"
         ],
         [
          "BE",
          "BF"
         ],
         [
          "BG",
          "BH"
         ],
         [
          "BI",
          "BJ"
         ],
         [
          "BK",
          "BL"
         ],
         [
          "BM",
          "BN"
         ]
        ],
        "type": "int",
        "when": {
         "all": [
          {
           "sport_not_in": [
            1,
            6
           ]
          },
          {
           "not_has": "DO"
          }
         ]
        }
       },
       "home.text": {
        "template": "{BA}/{DK|?} ({DO|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BA"
          }
         ]
        }
       },
       "away.text": {
        "template": "{BB}/{DL|?} ({DP|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BB"
          }
         ]
        }
       },
       "result": {
        "key": "LS",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "LS"
          }
         ]
        }
       },
       "home.country": {
        "key": "FU",
        "when": {
         "nonempty": "FU"
        }
       },
       "away.country": {
        "key": "FV",
        "when": {
         "nonempty": "FV"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "not_has": "AF"
        }
       ]
      },
      "open": "entry",
      "fields": {
       "id": "AA",
       "participant_id": "PX",
       "name": "AE",
       "country": "FU",
       "position": {
        "key": "NI",
        "type": "int"
       },
       "score": {
        "key": "AG",
        "type": "int"
       },
       "round": {
        "key": "BI",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       }
      }
     }
    ],
    "post": [
     {
      "sort": true,
      "each": "leagues",
      "array": "entries",
      "by": "position",
      "null_as": 9999
     },
     {
      "keep_if_any": [
       "matches",
       "entries"
      ],
      "array": "leagues"
     }
    ]
   },
   "ttl_seconds": 120
  },
  "participant.results": {
   "request": {
    "type": "feed",
    "path": "pr_{sport_id}_0_{id}_{page}_{tz}_{lang}_{project}",
    "defaults": {
     "page": 1
    }
   },
   "parse": {
    "kind": "tree",
    "output": "leagues",
    "levels": {
     "league": {
      "array": "leagues",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "league",
      "array": "matches"
     },
     "entry": {
      "parent": "league",
      "array": "entries"
     }
    },
    "rules": [
     {
      "when": {
       "has": "ZA"
      },
      "open": "league",
      "fields": {
       "name": "ZA",
       "country": "ZY",
       "logo": "OAJ",
       "tournament_key": "ZE",
       "stage_id": "ZC",
       "path": "ZL",
       "info.start": {
        "key": "ZN",
        "split": "|",
        "index": 0,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.end": {
        "key": "ZN",
        "split": "|",
        "index": 1,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.par": {
        "key": "ZN",
        "split": "|",
        "index": 2,
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.prize": {
        "key": "ZN",
        "split": "|",
        "index": 3,
        "when": {
         "nonempty": "ZN"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "has": "AF"
        }
       ]
      },
      "open": "match",
      "fields": {
       "id": "AA",
       "start": {
        "key": "AD",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       },
       "home.id": "PX",
       "home.name": "AE",
       "home.score": {
        "key": "AG",
        "type": "int"
       },
       "home.logo": "OA",
       "away.id": "PY",
       "away.name": "AF",
       "away.score": {
        "key": "AH",
        "type": "int"
       },
       "away.logo": "OB",
       "stage_code": {
        "key": "AC",
        "type": "int",
        "when": {
         "all": [
          {
           "has": "AC"
          },
          {
           "key_not_in": {
            "AC": [
             "1",
             "2",
             "3"
            ]
           }
          }
         ]
        }
       },
       "minute": {
        "transform": "football_minute",
        "stage_key": "AC",
        "labels": {
         "38": "HT",
         "46": "Break"
        },
        "start": "start",
        "second_half": "13",
        "break_minutes": 15,
        "max": 120,
        "when": {
         "all": [
          {
           "sport_in": [
            1
           ]
          },
          {
           "out_eq": {
            "status": "live"
           }
          }
         ]
        }
       },
       "winner": {
        "transform": "winner",
        "home": "home.score",
        "away": "away.score",
        "when": {
         "out_eq": {
          "status": "finished"
         }
        }
       },
       "periods": {
        "pairs": [
         [
          "BA",
          "BB"
         ],
         [
          "BC",
          "BD"
         ],
         [
          "BE",
          "BF"
         ],
         [
          "BG",
          "BH"
         ],
         [
          "BI",
          "BJ"
         ],
         [
          "BK",
          "BL"
         ],
         [
          "BM",
          "BN"
         ]
        ],
        "type": "int",
        "when": {
         "all": [
          {
           "sport_not_in": [
            1,
            6
           ]
          },
          {
           "not_has": "DO"
          }
         ]
        }
       },
       "home.text": {
        "template": "{BA}/{DK|?} ({DO|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BA"
          }
         ]
        }
       },
       "away.text": {
        "template": "{BB}/{DL|?} ({DP|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BB"
          }
         ]
        }
       },
       "result": {
        "key": "LS",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "LS"
          }
         ]
        }
       },
       "home.country": {
        "key": "FU",
        "when": {
         "nonempty": "FU"
        }
       },
       "away.country": {
        "key": "FV",
        "when": {
         "nonempty": "FV"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "not_has": "AF"
        }
       ]
      },
      "open": "entry",
      "fields": {
       "id": "AA",
       "participant_id": "PX",
       "name": "AE",
       "country": "FU",
       "position": {
        "key": "NI",
        "type": "int"
       },
       "score": {
        "key": "AG",
        "type": "int"
       },
       "round": {
        "key": "BI",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       }
      }
     }
    ],
    "post": [
     {
      "sort": true,
      "each": "leagues",
      "array": "entries",
      "by": "position",
      "null_as": 9999
     },
     {
      "keep_if_any": [
       "matches",
       "entries"
      ],
      "array": "leagues"
     }
    ]
   },
   "ttl_seconds": 120
  },
  "participant.fixtures": {
   "request": {
    "type": "feed",
    "path": "pf_{sport_id}_0_{id}_{page}_{tz}_{lang}_{project}",
    "defaults": {
     "page": 1
    }
   },
   "parse": {
    "kind": "tree",
    "output": "leagues",
    "levels": {
     "league": {
      "array": "leagues",
      "children_init": [
       "matches"
      ]
     },
     "match": {
      "parent": "league",
      "array": "matches"
     },
     "entry": {
      "parent": "league",
      "array": "entries"
     }
    },
    "rules": [
     {
      "when": {
       "has": "ZA"
      },
      "open": "league",
      "fields": {
       "name": "ZA",
       "country": "ZY",
       "logo": "OAJ",
       "tournament_key": "ZE",
       "stage_id": "ZC",
       "path": "ZL",
       "info.start": {
        "key": "ZN",
        "split": "|",
        "index": 0,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.end": {
        "key": "ZN",
        "split": "|",
        "index": 1,
        "type": "int",
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.par": {
        "key": "ZN",
        "split": "|",
        "index": 2,
        "when": {
         "nonempty": "ZN"
        }
       },
       "info.prize": {
        "key": "ZN",
        "split": "|",
        "index": 3,
        "when": {
         "nonempty": "ZN"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "has": "AF"
        }
       ]
      },
      "open": "match",
      "fields": {
       "id": "AA",
       "start": {
        "key": "AD",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       },
       "home.id": "PX",
       "home.name": "AE",
       "home.score": {
        "key": "AG",
        "type": "int"
       },
       "home.logo": "OA",
       "away.id": "PY",
       "away.name": "AF",
       "away.score": {
        "key": "AH",
        "type": "int"
       },
       "away.logo": "OB",
       "stage_code": {
        "key": "AC",
        "type": "int",
        "when": {
         "all": [
          {
           "has": "AC"
          },
          {
           "key_not_in": {
            "AC": [
             "1",
             "2",
             "3"
            ]
           }
          }
         ]
        }
       },
       "minute": {
        "transform": "football_minute",
        "stage_key": "AC",
        "labels": {
         "38": "HT",
         "46": "Break"
        },
        "start": "start",
        "second_half": "13",
        "break_minutes": 15,
        "max": 120,
        "when": {
         "all": [
          {
           "sport_in": [
            1
           ]
          },
          {
           "out_eq": {
            "status": "live"
           }
          }
         ]
        }
       },
       "winner": {
        "transform": "winner",
        "home": "home.score",
        "away": "away.score",
        "when": {
         "out_eq": {
          "status": "finished"
         }
        }
       },
       "periods": {
        "pairs": [
         [
          "BA",
          "BB"
         ],
         [
          "BC",
          "BD"
         ],
         [
          "BE",
          "BF"
         ],
         [
          "BG",
          "BH"
         ],
         [
          "BI",
          "BJ"
         ],
         [
          "BK",
          "BL"
         ],
         [
          "BM",
          "BN"
         ]
        ],
        "type": "int",
        "when": {
         "all": [
          {
           "sport_not_in": [
            1,
            6
           ]
          },
          {
           "not_has": "DO"
          }
         ]
        }
       },
       "home.text": {
        "template": "{BA}/{DK|?} ({DO|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BA"
          }
         ]
        }
       },
       "away.text": {
        "template": "{BB}/{DL|?} ({DP|?})",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "BB"
          }
         ]
        }
       },
       "result": {
        "key": "LS",
        "when": {
         "all": [
          {
           "has": "DO"
          },
          {
           "nonempty": "LS"
          }
         ]
        }
       },
       "home.country": {
        "key": "FU",
        "when": {
         "nonempty": "FU"
        }
       },
       "away.country": {
        "key": "FV",
        "when": {
         "nonempty": "FV"
        }
       }
      }
     },
     {
      "when": {
       "all": [
        {
         "has": "AA"
        },
        {
         "not_has": "AF"
        }
       ]
      },
      "open": "entry",
      "fields": {
       "id": "AA",
       "participant_id": "PX",
       "name": "AE",
       "country": "FU",
       "position": {
        "key": "NI",
        "type": "int"
       },
       "score": {
        "key": "AG",
        "type": "int"
       },
       "round": {
        "key": "BI",
        "type": "int"
       },
       "status": {
        "key": "AB",
        "enum": {
         "1": "scheduled",
         "2": "live",
         "3": "finished"
        },
        "default": "other"
       }
      }
     }
    ],
    "post": [
     {
      "sort": true,
      "each": "leagues",
      "array": "entries",
      "by": "position",
      "null_as": 9999
     },
     {
      "keep_if_any": [
       "matches",
       "entries"
      ],
      "array": "leagues"
     }
    ]
   },
   "ttl_seconds": 120
  },
  "match.lineups": {
   "request": {
    "type": "graphql",
    "host": "graphql",
    "hash": "dlie2",
    "params": {
     "eventId": "{id}",
     "projectId": "{project}"
    }
   },
   "parse": {
    "kind": "json",
    "select": "data",
    "strip": [
     "__typename"
    ]
   },
   "ttl_seconds": 60
  },
  "match.odds": {
   "request": {
    "type": "graphql",
    "host": "graphql_odds",
    "hash": "oce",
    "params": {
     "eventId": "{id}",
     "projectId": "{project}",
     "geoIpCode": "",
     "geoIpSubdivisionCode": ""
    }
   },
   "parse": {
    "kind": "json",
    "select": "data",
    "strip": [
     "__typename"
    ]
   },
   "ttl_seconds": 60
  },
  "match.config": {
   "request": {
    "type": "graphql",
    "host": "graphql",
    "hash": "dco",
    "params": {
     "eventId": "{id}",
     "projectId": "{project}"
    }
   },
   "parse": {
    "kind": "json",
    "select": "data",
    "strip": [
     "__typename"
    ]
   },
   "ttl_seconds": 300
  },
  "match.scorers-detail": {
   "request": {
    "type": "graphql",
    "host": "graphql",
    "hash": "dtsce",
    "params": {
     "eventId": "{id}",
     "projectId": "{project}"
    }
   },
   "parse": {
    "kind": "json",
    "select": "data",
    "strip": [
     "__typename"
    ]
   },
   "ttl_seconds": 120
  },
  "match.commentary": {
   "request": {
    "type": "feed",
    "path": "df_lc_{project}_{id}"
   },
   "ttl_seconds": 30,
   "parse": {
    "kind": "records"
   }
  }
 }
}