{"version":3,"sources":["jsdelivr-header.js","/npm/@tsparticles/interaction-external-remove@3.0.3/browser/Options/Classes/Remove.js","/npm/@tsparticles/interaction-external-remove@3.0.3/browser/Remover.js","/npm/@tsparticles/interaction-external-remove@3.0.3/browser/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,mHCLO,MAAM,CAAO,CAChB,aAAc,CACV,KAAK,SAAW,CACpB,CACA,KAAK,EAAM,CACP,GAAI,CAAC,EACD,OAEJ,MAAM,EAAW,EAAK,SAClB,IAAa,SACb,KAAK,SAAW,EAAc,CAAQ,EAE9C,CACJ,CCZA,MAAM,EAAa,SACZ,MAAM,UAAgB,CAAuB,CAChD,YAAY,EAAW,CACnB,MAAM,CAAS,EACf,KAAK,gBAAmB,GAAS,CAC7B,MAAM,EAAY,KAAK,UAAW,EAAU,EAAU,cACtD,GAAI,CAAC,EAAQ,cAAc,MAAM,QAAU,IAAS,EAChD,OAEJ,MAAM,EAAW,EAAc,EAAQ,cAAc,MAAM,OAAO,QAAQ,EAC1E,EAAU,UAAU,eAAe,CAAQ,CAC/C,CACJ,CACA,OAAQ,CACR,CACA,MAAO,CACP,CACA,MAAM,UAAW,CACjB,CACA,WAAY,CACR,MAAO,EACX,CACA,gBAAgB,KAAY,EAAS,CAC5B,EAAQ,SACT,EAAQ,OAAS,IAAI,GAEzB,UAAW,KAAU,EACjB,EAAQ,OAAO,KAAK,GAAQ,MAAM,CAE1C,CACA,OAAQ,CACR,CACJ,CCjCO,eAAe,EAA8B,EAAQ,EAAU,GAAM,CACxE,MAAM,EAAO,cAAc,iBAAmB,GAAc,IAAI,EAAQ,CAAS,EAAG,CAAO,CAC/F","file":"/npm/@tsparticles/interaction-external-remove@3.0.3/browser/index.js/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.\n * Original file: /npm/@tsparticles/interaction-external-remove@3.0.3/browser/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { setRangeValue } from \"@tsparticles/engine\";\nexport class Remove {\n    constructor() {\n        this.quantity = 2;\n    }\n    load(data) {\n        if (!data) {\n            return;\n        }\n        const quantity = data.quantity;\n        if (quantity !== undefined) {\n            this.quantity = setRangeValue(quantity);\n        }\n    }\n}\n","import { ExternalInteractorBase, getRangeValue, } from \"@tsparticles/engine\";\nimport { Remove } from \"./Options/Classes/Remove.js\";\nconst removeMode = \"remove\";\nexport class Remover extends ExternalInteractorBase {\n    constructor(container) {\n        super(container);\n        this.handleClickMode = (mode) => {\n            const container = this.container, options = container.actualOptions;\n            if (!options.interactivity.modes.remove || mode !== removeMode) {\n                return;\n            }\n            const removeNb = getRangeValue(options.interactivity.modes.remove.quantity);\n            container.particles.removeQuantity(removeNb);\n        };\n    }\n    clear() {\n    }\n    init() {\n    }\n    async interact() {\n    }\n    isEnabled() {\n        return true;\n    }\n    loadModeOptions(options, ...sources) {\n        if (!options.remove) {\n            options.remove = new Remove();\n        }\n        for (const source of sources) {\n            options.remove.load(source?.remove);\n        }\n    }\n    reset() {\n    }\n}\n","import { Remover } from \"./Remover.js\";\nexport async function loadExternalRemoveInteraction(engine, refresh = true) {\n    await engine.addInteractor(\"externalRemove\", (container) => new Remover(container), refresh);\n}\nexport * from \"./Options/Classes/Remove.js\";\nexport * from \"./Options/Interfaces/IRemove.js\";\n"]}