{"ast":null,"code":"'use strict';\n\n/* eslint no-invalid-this: 1 */\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\nmodule.exports = function bind(that) {\n  var target = this;\n  if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n    throw new TypeError(ERROR_MESSAGE + target);\n  }\n  var args = slice.call(arguments, 1);\n  var bound;\n  var binder = function () {\n    if (this instanceof bound) {\n      var result = target.apply(this, args.concat(slice.call(arguments)));\n      if (Object(result) === result) {\n        return result;\n      }\n      return this;\n    } else {\n      return target.apply(that, args.concat(slice.call(arguments)));\n    }\n  };\n  var boundLength = Math.max(0, target.length - args.length);\n  var boundArgs = [];\n  for (var i = 0; i < boundLength; i++) {\n    boundArgs.push('$' + i);\n  }\n  bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n  if (target.prototype) {\n    var Empty = function Empty() {};\n    Empty.prototype = target.prototype;\n    bound.prototype = new Empty();\n    Empty.prototype = null;\n  }\n  return bound;\n};","map":{"version":3,"names":["ERROR_MESSAGE","slice","Array","prototype","toStr","Object","toString","funcType","module","exports","bind","that","target","call","TypeError","args","arguments","bound","binder","result","apply","concat","boundLength","Math","max","length","boundArgs","i","push","Function","join","Empty"],"sources":["C:/Users/user/Desktop/000newport/node_modules/function-bind/implementation.js"],"sourcesContent":["'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n    var target = this;\n    if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n        throw new TypeError(ERROR_MESSAGE + target);\n    }\n    var args = slice.call(arguments, 1);\n\n    var bound;\n    var binder = function () {\n        if (this instanceof bound) {\n            var result = target.apply(\n                this,\n                args.concat(slice.call(arguments))\n            );\n            if (Object(result) === result) {\n                return result;\n            }\n            return this;\n        } else {\n            return target.apply(\n                that,\n                args.concat(slice.call(arguments))\n            );\n        }\n    };\n\n    var boundLength = Math.max(0, target.length - args.length);\n    var boundArgs = [];\n    for (var i = 0; i < boundLength; i++) {\n        boundArgs.push('$' + i);\n    }\n\n    bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n    if (target.prototype) {\n        var Empty = function Empty() {};\n        Empty.prototype = target.prototype;\n        bound.prototype = new Empty();\n        Empty.prototype = null;\n    }\n\n    return bound;\n};\n"],"mappings":"AAAA,YAAY;;AAEZ;AAEA,IAAIA,aAAa,GAAG,iDAAiD;AACrE,IAAIC,KAAK,GAAGC,KAAK,CAACC,SAAS,CAACF,KAAK;AACjC,IAAIG,KAAK,GAAGC,MAAM,CAACF,SAAS,CAACG,QAAQ;AACrC,IAAIC,QAAQ,GAAG,mBAAmB;AAElCC,MAAM,CAACC,OAAO,GAAG,SAASC,IAAIA,CAACC,IAAI,EAAE;EACjC,IAAIC,MAAM,GAAG,IAAI;EACjB,IAAI,OAAOA,MAAM,KAAK,UAAU,IAAIR,KAAK,CAACS,IAAI,CAACD,MAAM,CAAC,KAAKL,QAAQ,EAAE;IACjE,MAAM,IAAIO,SAAS,CAACd,aAAa,GAAGY,MAAM,CAAC;EAC/C;EACA,IAAIG,IAAI,GAAGd,KAAK,CAACY,IAAI,CAACG,SAAS,EAAE,CAAC,CAAC;EAEnC,IAAIC,KAAK;EACT,IAAIC,MAAM,GAAG,SAAAA,CAAA,EAAY;IACrB,IAAI,IAAI,YAAYD,KAAK,EAAE;MACvB,IAAIE,MAAM,GAAGP,MAAM,CAACQ,KAAK,CACrB,IAAI,EACJL,IAAI,CAACM,MAAM,CAACpB,KAAK,CAACY,IAAI,CAACG,SAAS,CAAC,CACrC,CAAC;MACD,IAAIX,MAAM,CAACc,MAAM,CAAC,KAAKA,MAAM,EAAE;QAC3B,OAAOA,MAAM;MACjB;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