function createInvocableActor(invokeDefinition, machine, context, _event) {
  var _a;

  var invokeSrc = utils.toInvokeSource(invokeDefinition.src);
  var serviceCreator = (_a = machine === null || machine === void 0 ? void 0 : machine.options.services) === null || _a === void 0 ? void 0 : _a[invokeSrc.type];
  var resolvedData = invokeDefinition.data ? utils.mapContext(invokeDefinition.data, context, _event) : undefined;
  var tempActor = serviceCreator ? createDeferredActor(serviceCreator, invokeDefinition.id, resolvedData) : createNullActor(invokeDefinition.id); // @ts-ignore

  tempActor.meta = invokeDefinition;
  return tempActor;
}
/**
 * Creates a deferred actor that is able to be invoked given the provided
 * invocation information in its `.meta` value.
 *
 * @param invokeDefinition The meta information needed to invoke the actor.
 */
Creates a deferred actor that is able to be invoked given the provided
invocation information in its `.meta` value.

@param invokeDefinition The meta information needed to invoke the actor.
Creates a deferred actor that is able to be invoked given the provided invocation information in its ` . meta ` value . @param invokeDefinition The meta information needed to invoke the actor .
function createInvocableActor(invokeDefinition, machine, context, _event) {
  var _a;
  var invokeSrc = utils.toInvokeSource(invokeDefinition.src);
  var serviceCreator = (_a = machine === null || machine === void 0 ? void 0 : machine.options.services) === null || _a === void 0 ? void 0 : _a[invokeSrc.type];
  var resolvedData = invokeDefinition.data ? utils.mapContext(invokeDefinition.data, context, _event) : undefined;
  var tempActor = serviceCreator ? createDeferredActor(serviceCreator, invokeDefinition.id, resolvedData) : createNullActor(invokeDefinition.id); 
  tempActor.meta = invokeDefinition;
  return tempActor;
}
function createInvocableActor ( invokeDefinition , machine , context , _event ) { var _a ; var invokeSrc = utils . toInvokeSource ( invokeDefinition . src ) ; var serviceCreator = ( _a = machine === null || machine === void 0 ? void 0 : machine . options . services ) === null || _a === void 0 ? void 0 : _a [ invokeSrc . type ] ; var resolvedData = invokeDefinition . data ? utils . mapContext ( invokeDefinition . data , context , _event ) : undefined ; var tempActor = serviceCreator ? createDeferredActor ( serviceCreator , invokeDefinition . id , resolvedData ) : createNullActor ( invokeDefinition . id ) ; tempActor . meta = invokeDefinition ; return tempActor ; }
Creates a deferred actor that is able to be invoked given the provided
 invocation information in its `.meta` value.
Creates a deferred actor that is able to be invoked given the provided invocation information in its ` . meta ` value .
// @ts-ignore