# Path: blendergltf/exporters/base.py
# class BaseExporter:
#     gltf_key = ''
#     blender_key = ''
# 
#     @classmethod
#     def get_custom_properties(cls, blender_data):
#         custom_props = {
#             key: value.to_list() if hasattr(value, 'to_list') else value
#             for key, value in blender_data.items()
#             if key not in _IGNORED_CUSTOM_PROPS
#         }
# 
#         custom_props = {
#             key: value for key, value in custom_props.items()
#             if _is_serializable(value)
#         }
# 
#         return custom_props
# 
#     @classmethod
#     def check(cls, state, blender_data):
#         return True
# 
#     @classmethod
#     def default(cls, state, blender_data):
#         return {
#             'name': blender_data.name
#         }
# 
#     @classmethod
#     def export(cls, state, blender_data):
#         return {}
# 
# Path: blendergltf/exporters/common.py
# class Reference:
#     __slots__ = (
#         "blender_type",
#         "blender_name",
#         "source",
#         "prop",
#         "value",
#     )
# 
#     def __init__(self, blender_type, blender_name, source, prop):
#         self.blender_type = blender_type
#         self.blender_name = blender_name
#         self.source = source
#         self.prop = prop
#         self.value = None
# 
#     def __str__(self):
#         return json.dumps([self.blender_type, self.blender_name, self.value])
# 
# class SimpleID:
#     def __init__(self, name, data=None):
#         self.name = name
#         self.data = data
# 
# def get_bone_name(bone):
#     return '{}_{}'.format(bone.id_data.name, bone.name)


from distutils.version import StrictVersion as Version
from .base import BaseExporter
from .common import (
    Reference,
    SimpleID,
    get_bone_name,
)
            'name': group_sid.name,
        }
        state['dupli_nodes'].append(group_node)

        dupli_nodes = [group_node]
        children = []

        for dupli_obj in dupli_group.objects:
            obj_node = cls.export(state, dupli_obj)
            state['dupli_nodes'].append(obj_node)

            obj_sid = SimpleID(
                'dupli_node_{}.{}'.format(dupli_obj.name, len(state['dupli_nodes']))
            )
            state['input']['dupli_ids'].append(obj_sid)

            obj_node['name'] = obj_sid.name
            if dupli_obj.dupli_group is None and 'children' in obj_node:
                del obj_node['children']

            obj_ref = Reference('objects', obj_sid.name, children, len(children))
            children.append(obj_ref)
            state['references'].append(obj_ref)

            dupli_nodes.append(obj_node)

        group_node['children'] = children

        group_ref = Reference('objects', group_sid.name, None, None)
        state['references'].append(group_ref)

# Path: blendergltf/exporters/base.py
# class BaseExporter:
#     gltf_key = ''
#     blender_key = ''
# 
#     @classmethod
#     def get_custom_properties(cls, blender_data):
#         custom_props = {
#             key: value.to_list() if hasattr(value, 'to_list') else value
#             for key, value in blender_data.items()
#             if key not in _IGNORED_CUSTOM_PROPS
#         }
# 
#         custom_props = {
#             key: value for key, value in custom_props.items()
#             if _is_serializable(value)
#         }
# 
#         return custom_props
# 
#     @classmethod
#     def check(cls, state, blender_data):
#         return True
# 
#     @classmethod
#     def default(cls, state, blender_data):
#         return {
#             'name': blender_data.name
#         }
# 
#     @classmethod
#     def export(cls, state, blender_data):
#         return {}
# 
# Path: blendergltf/exporters/common.py
# class Reference:
#     __slots__ = (
#         "blender_type",
#         "blender_name",
#         "source",
#         "prop",
#         "value",
#     )
# 
#     def __init__(self, blender_type, blender_name, source, prop):
#         self.blender_type = blender_type
#         self.blender_name = blender_name
#         self.source = source
#         self.prop = prop
#         self.value = None
# 
#     def __str__(self):
#         return json.dumps([self.blender_type, self.blender_name, self.value])
# 
# class SimpleID:
#     def __init__(self, name, data=None):
#         self.name = name
#         self.data = data
# 
# def get_bone_name(bone):
#     return '{}_{}'.format(bone.id_data.name, bone.name)


# Path: blendergltf/exporters/node.py
from distutils.version import StrictVersion as Version
from .base import BaseExporter
from .common import (
    Reference,
    SimpleID,
    get_bone_name,
)

            'name': group_sid.name,
        }
        state['dupli_nodes'].append(group_node)

        dupli_nodes = [group_node]
        children = []

        for dupli_obj in dupli_group.objects:
            obj_node = cls.export(state, dupli_obj)
            state['dupli_nodes'].append(obj_node)

            obj_sid = SimpleID(
                'dupli_node_{}.{}'.format(dupli_obj.name, len(state['dupli_nodes']))
            )
            state['input']['dupli_ids'].append(obj_sid)

            obj_node['name'] = obj_sid.name
            if dupli_obj.dupli_group is None and 'children' in obj_node:
                del obj_node['children']

            obj_ref = Reference('objects', obj_sid.name, children, len(children))
            children.append(obj_ref)
            state['references'].append(obj_ref)

            dupli_nodes.append(obj_node)

        group_node['children'] = children

        group_ref = Reference('objects', group_sid.name, None, None)
        state['references'].append(group_ref)

        return group_ref