{"version":3,"sources":["jsdelivr-header.js","/npm/sequence-js@0.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,IAAI,SAAW,WACX,KAAK,MAAQ,GACb,KAAK,aAAe,WAA4B,CACpD,EAEA,SAAS,UAAU,IAAM,SAAU,GAE/B,OADA,KAAK,MAAM,KAAK,GACT,IACX,EAEA,SAAS,UAAU,MAAQ,SAAU,GAEjC,OADA,KAAK,aAAe,EACb,IACX,EAEA,SAAS,UAAU,KAAO,WACtB,IAAI,EAAO,KACX,OAAO,WACC,EAAK,KAAK,MAAM,EAAM,UAC1B,CACR,EAEA,SAAS,UAAU,KAAO,WACtB,IAAI,EAAW,CACX,QAAU,EACV,IAAM,KACN,KAAO,WACH,KAAK,IAAI,QAAQ,KAAK,QAAQ,MAAM,KAAM,UAC9C,EACA,MAAQ,WACJ,KAAK,QAAU,EACf,KAAK,IAAI,aAAa,MAAM,KAAM,UACtC,GAGJ,EAAS,KAAK,MAAM,EAAU,UAClC,EAEA,OAAO,QAAU","file":"/npm/sequence-js@0.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/sequence-js@0.0.3/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","// SEQUENCE -- 1.0\nvar Sequence = function () {\n    this.funcz = []\n    this.errorHandler = function defaultHandler() { }\n}\n\nSequence.prototype.add = function (func) {\n    this.funcz.push(func)\n    return this\n}\n\nSequence.prototype.catch = function (func) {\n    this.errorHandler = func;\n    return this;\n}\n\nSequence.prototype.wrap = function () {\n    var self = this;\n    return function () {\n            self.exec.apply(self, arguments)\n        }\n};\n\nSequence.prototype.exec = function () {\n    var iterator = {\n        cursor : -1,\n        seq : this,\n        next : function () {\n            this.seq.funcz[++this.cursor].apply(this, arguments)\n        },\n        error : function () {\n            this.cursor = -1;\n            this.seq.errorHandler.apply(this, arguments)\n        }\n    }\n\n    iterator.next.apply(iterator, arguments)\n}\n\nmodule.exports = Sequence;\n"]}