{"version":3,"sources":["jsdelivr-header.js","/npm/brig@0.1.17/lib/brig.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,OAAS,QAAQ,UACjB,KAAO,QAAQ,QACf,SAAW,QAAQ,UACnB,YAAc,QAAQ,iBAEtB,IAAM,KAEN,KAAO,OAAO,QAAU,WAC3B,IAAI,EAAO,KAGX,IAAM,KAAO,IAAI,YACjB,EAAK,IAAM,IAEX,EAAK,IAAI,GAAG,oBAAqB,EAAK,KAAK,KAAK,EAAM,sBAEtD,cAAa,WACZ,EAAK,KAAK,QAAS,EACpB,GACD,EAEA,KAAK,SAAS,KAAM,OAAO,cAE3B,KAAK,UAAU,UAAY,WAC3B,EAEA,KAAK,UAAU,KAAO,SAAS,EAAU,GAC7B,KAEN,IAAI,KAAK,EAAU,EACzB,EAEA,KAAK,UAAU,gBAAkB,WAChC,OAAO,KAAK,IAAI,iBACjB,EAEA,KAAK,UAAU,WAAa,SAAS,EAAU,GAC9C,OAAO,KAAK,IAAI,WAAW,EAAU,EACtC","file":"/npm/brig@0.1.17/lib/brig.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/brig@0.1.17/lib/brig.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nvar events = require('events');\nvar util = require('util');\nvar BrigCore = require('./core');\nvar Application = require('./application');\n\nvar app = null;\n\nvar Brig = module.exports = function() {\n\tvar self = this;\n\n\t// Singleton\n\tapp = app || new Application();\n\tself.app = app;\n\n\tself.app.on('window-all-closed', self.emit.bind(self, 'window-all-closed'));\n\n\tsetImmediate(function() {\n\t\tself.emit('ready', self);\n\t});\n};\n\nutil.inherits(Brig, events.EventEmitter);\n\nBrig.prototype.createApp = function() {\n};\n\nBrig.prototype.open = function(filename, callback) {\n\tvar self = this;\n\n\tself.app.open(filename, callback);\n};\n\nBrig.prototype.createComponent = function() {\n\treturn this.app.createComponent();\n};\n\nBrig.prototype.createType = function(typeName, meta) {\n\treturn this.app.createType(typeName, meta);\n};\n"]}