"use strict";function isLegacyStruct(e){let t=new Set(["string_value","number_value","bool_value","struct_value","list_value","null_value"]);if(e&&1===Object.keys(e).length&&e.fields&&"object"==typeof e.fields){if(Array.isArray(e.fields))return e.fields.every(e=>2===Object.keys(e).length&&e.key&&e.value&&1===Object.keys(e.value).length&&t.has(Object.keys(e.value)[0]));if(Object.values(e.fields).every(e=>{let l=e?Object.keys(e):[];return 1===l.length&&t.has(l[0])}))return!0}return!1}module.exports=isLegacyStruct;