shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$particle_container$canvas$CanvasParticleContainerAdaptor = function(global, require, module, exports) {
  var canvasUtils = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$canvas$utils$canvasUtils");
  "use strict";
  class CanvasParticleContainerAdaptor {
    execute(particleContainerPipe, container) {
      var renderer = particleContainerPipe.renderer;
      particleContainerPipe = renderer.canvasContext.activeContext;
      const children = container.particleChildren, texture = container.texture;
      particleContainerPipe.save();
      renderer.canvasContext.setContextTransform(container.worldTransform, container.roundPixels);
      renderer.canvasContext.setBlendMode(container.groupBlendMode);
      container = (container.groupColorAlpha >>> 24 & 255) / 255 * (renderer.filter?.alphaMultiplier ?? 1);
      for (renderer = 0; renderer < children.length; renderer++) {
        const particle = children[renderer];
        var pTexture = particle.texture || texture;
        if (!pTexture?.source?.resource) {
          continue;
        }
        var color = particle.color, alpha = (color >>> 24 & 255) / 255 * container;
        if (0 >= alpha) {
          continue;
        }
        color &= 16777215;
        var tint = ((color & 255) << 16) + (color & 65280) + (color >> 16 & 255);
        color = pTexture.source.resource;
        16777215 !== tint && (color = canvasUtils.canvasUtils.getTintedCanvas({texture:pTexture}, tint));
        tint = pTexture.frame;
        var resolution = pTexture.source.resolution;
        pTexture = tint.x * resolution;
        const sy = tint.y * resolution, sw = tint.width * resolution;
        resolution *= tint.height;
        particleContainerPipe.globalAlpha = alpha;
        alpha = -particle.anchorX * tint.width;
        const dy = -particle.anchorY * tint.height;
        0 !== particle.rotation || 1 !== particle.scaleX || 1 !== particle.scaleY ? (particleContainerPipe.save(), particleContainerPipe.translate(particle.x, particle.y), particleContainerPipe.rotate(particle.rotation), particleContainerPipe.scale(particle.scaleX, particle.scaleY), particleContainerPipe.drawImage(color, pTexture, sy, sw, resolution, alpha, dy, tint.width, tint.height), particleContainerPipe.restore()) : particleContainerPipe.drawImage(color, pTexture, sy, sw, resolution, particle.x + 
        alpha, particle.y + dy, tint.width, tint.height);
      }
      particleContainerPipe.restore();
    }
  }
  exports.CanvasParticleContainerAdaptor = CanvasParticleContainerAdaptor;
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$particle_container$canvas$CanvasParticleContainerAdaptor.js.map
