{"version":3,"sources":["webpack:///./node_modules/@feathersjs/transport-commons/client.js","webpack:///./node_modules/@feathersjs/transport-commons/lib/client.js","webpack:///./node_modules/@feathersjs/rest-client/lib/axios.js","webpack:///./node_modules/@feathersjs/rest-client/lib/superagent.js","webpack:///./node_modules/@feathersjs/rest-client/lib/index.js","webpack:///./node_modules/@feathersjs/feathers/lib/version.js","webpack:///./node_modules/@feathersjs/feathers/lib/events.js","webpack:///./node_modules/@feathersjs/socketio-client/lib/index.js","webpack:///./node_modules/@feathersjs/rest-client/lib/angular-http-client.js","webpack:///./node_modules/@feathersjs/rest-client/lib/request.js","webpack:///./node_modules/@feathersjs/rest-client/lib/jquery.js","webpack:///./node_modules/@feathersjs/feathers/lib/hooks/base.js","webpack:///./node_modules/@feathersjs/feathers/lib/hooks/index.js","webpack:///./node_modules/@feathersjs/rest-client/lib/fetch.js","webpack:///./node_modules/@feathersjs/rest-client/lib/angular.js","webpack:///./node_modules/@feathersjs/feathers/lib/index.js","webpack:///./node_modules/@feathersjs/feathers/lib/application.js","webpack:///./node_modules/@feathersjs/rest-client/lib/base.js"],"names":["module","exports","Service","__importDefault","this","mod","__esModule","Object","defineProperty","value","debug_1","errors_1","debug","default","namespacedEmitterMethods","otherEmitterMethods","addEmitterMethods","service","forEach","method","args","connection","Error","name","eventName","path","result","options","events","timeout","Promise","resolve","reject","timeoutId","setTimeout","Timeout","unshift","push","error","data","convert","clearTimeout","params","send","query","id","off","length","removeAllListeners","removeListener","Base","config","assign","url","body","headers","Accept","request","then","res","catch","response","superagent","set","type","end","JSON","parse","text","e","jQueryClient","SuperagentClient","RequestClient","FetchClient","AxiosClient","AngularClient","AngularHttpClient","transports","jquery","fetch","axios","angular","angularHttpClient","restClient","base","keys","key","defaultService","initialize","app","rest","EventEmitter","Proto","eventHook","hook","event","eventMappings","isHookEvent","_hookEvents","indexOf","Array","isArray","element","emit","eventMixin","_serviceEvents","isEmitter","on","mixin","prototype","defineProperties","slice","alreadyEmits","create","update","remove","patch","hooks","finally","mixins","socketioClient","io","engine","transport","EIO","console","map","settings","httpClient","HttpHeaders","requestOptions","subscribe","json","statusCode","message","opts","dataType","stringify","contentType","ajax","xhr","responseText","_","context","parameters","methods","arguments","index","includes","undefined","isObjectOrArray","isPromise","baseHooks","createHookObject","getHooks","processHooks","enableHooks","ACTIVATE_HOOKS","withHooks","original","_hooks","hookTypes","reduce","returnHook","pop","hookObject","call","concat","before","func","apply","afterHookObject","after","errorHookObject","hookMixin","getOwnPropertyNames","filter","methodName","find","get","methodNames","from","_super","bind","activateHooks","fn","errors","fetchOptions","checkStatus","status","ok","http","Headers","Application","version","baseObject","createApplication","init","stripSlashes","Uberproto","extend","application","services","providers","_setup","configure","location","current","hasOwnProperty","use","isSubApp","isService","some","subApp","subPath","protoService","isPrototypeOf","provider","_isSetup","setup","qs","Unavailable","toError","code","pick","encodeURIComponent","getQuery","makeUrl"],"mappings":"iFAAAA,EAAOC,QAAU,EAAQ,QAAgBC,S,oCCCzC,IAAIC,EAAmBC,MAAQA,KAAKD,iBAAoB,SAAUE,GAC9D,OAAQA,GAAOA,EAAIC,WAAcD,EAAM,CAAE,QAAWA,IAExDE,OAAOC,eAAeP,EAAS,aAAc,CAAEQ,OAAO,IACtDR,EAAQC,aAAU,EAClB,MAAMQ,EAAUP,EAAgB,EAAQ,SAClCQ,EAAW,EAAQ,QACnBC,GAAQ,EAAIF,EAAQG,SAAS,wCAC7BC,EAA2B,CAC7B,cACA,OACA,gBACA,YACA,KACA,OACA,kBACA,sBACA,qBACA,kBAEEC,EAAsB,CACxB,aACA,kBACA,mBAEEC,EAAqBC,IACvBF,EAAoBG,QAAQC,IACxBF,EAAQE,GAAU,YAAaC,GAC3B,GAAuC,mBAA5BhB,KAAKiB,WAAWF,GACvB,MAAM,IAAIG,MAAM,iBAAiBH,uCAErC,OAAOf,KAAKiB,WAAWF,MAAWC,MAI1CN,EAAyBI,QAAQC,IAC7BF,EAAQE,GAAU,SAAUI,KAASH,GACjC,GAAuC,mBA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QzL,EAAOE,OACzBU,OACAnC,OAAQ,OACRoC,QAAShD,OAAO6C,OAAO,CAAE,eAAgB,oBAAsBV,EAAOa,UACrEb,GAAQkB,MAAMkK,GAGnB,OAAQjL,EAAIS,EAAMZ,EAAS,IACzB,YAAkB,IAAPG,EACFf,QAAQE,OAAO,IAAIV,MAAM,qFAG3BlB,KAAKqD,QAAQ,CAClBJ,IAAKjD,KAAK+N,QAAQzL,EAAOE,MAAOC,GAChCS,OACAnC,OAAQ,MACRoC,QAAShD,OAAO6C,OAAO,CAAE,eAAgB,oBAAsBV,EAAOa,UACrEb,GAAQkB,MAAMkK,GAGnB,MAAOjL,EAAIS,EAAMZ,EAAS,IACxB,YAAkB,IAAPG,EACFf,QAAQE,OAAO,IAAIV,MAAM,oFAG3BlB,KAAKqD,QAAQ,CAClBJ,IAAKjD,KAAK+N,QAAQzL,EAAOE,MAAOC,GAChCS,OACAnC,OAAQ,QACRoC,QAAShD,OAAO6C,OAAO,CAAE,eAAgB,oBAAsBV,EAAOa,UACrEb,GAAQkB,MAAMkK,GAGnB,OAAQjL,EAAIH,EAAS,IACnB,YAAkB,IAAPG,EACFf,QAAQE,OAAO,IAAIV,MAAM,qFAG3BlB,KAAKqD,QAAQ,CAClBJ,IAAKjD,KAAK+N,QAAQzL,EAAOE,MAAOC,GAChC1B,OAAQ,SACRoC,QAAShD,OAAO6C,OAAO,GAAIV,EAAOa,UACjCb,GAAQkB,MAAMkK","file":"vendors~c82bd048.f2c8e278ca43502aee4e.chunk.js","sourcesContent":["module.exports = require('./lib/client').Service;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Service = void 0;\nconst debug_1 = __importDefault(require(\"debug\"));\nconst errors_1 = require(\"@feathersjs/errors\");\nconst debug = (0, debug_1.default)('@feathersjs/transport-commons/client');\nconst namespacedEmitterMethods = [\n    'addListener',\n    'emit',\n    'listenerCount',\n    'listeners',\n    'on',\n    'once',\n    'prependListener',\n    'prependOnceListener',\n    'removeAllListeners',\n    'removeListener'\n];\nconst otherEmitterMethods = [\n    'eventNames',\n    'getMaxListeners',\n    'setMaxListeners'\n];\nconst addEmitterMethods = (service) => {\n    otherEmitterMethods.forEach(method => {\n        service[method] = function (...args) {\n            if (typeof this.connection[method] !== 'function') {\n                throw new Error(`Can not call '${method}' on the client service connection`);\n            }\n            return this.connection[method](...args);\n        };\n    });\n    // Methods that should add the namespace (service path)\n    namespacedEmitterMethods.forEach(method => {\n        service[method] = function (name, ...args) {\n            if (typeof this.connection[method] !== 'function') {\n                throw new Error(`Can not call '${method}' on the client service connection`);\n            }\n            const eventName = `${this.path} ${name}`;\n            debug(`Calling emitter method ${method} with ` +\n                `namespaced event '${eventName}'`);\n            const result = this.connection[method](eventName, ...args);\n            return result === this.connection ? this : result;\n        };\n    });\n};\nclass Service {\n    constructor(options) {\n        this.events = options.events;\n        this.path = options.name;\n        this.connection = options.connection;\n        this.method = options.method;\n        this.timeout = options.timeout || 5000;\n        addEmitterMethods(this);\n    }\n    send(method, ...args) {\n        return new Promise((resolve, reject) => {\n            const timeoutId = setTimeout(() => reject(new errors_1.Timeout(`Timeout of ${this.timeout}ms exceeded calling ${method} on ${this.path}`, {\n                timeout: this.timeout,\n                method,\n                path: this.path\n            })), this.timeout);\n            args.unshift(method, this.path);\n            args.push(function (error, data) {\n                error = (0, errors_1.convert)(error);\n                clearTimeout(timeoutId);\n                return error ? reject(error) : resolve(data);\n            });\n            debug(`Sending socket.${this.method}`, args);\n            this.connection[this.method](...args);\n        });\n    }\n    find(params = {}) {\n        return this.send('find', params.query || {});\n    }\n    get(id, params = {}) {\n        return this.send('get', id, params.query || {});\n    }\n    create(data, params = {}) {\n        return this.send('create', data, params.query || {});\n    }\n    update(id, data, params = {}) {\n        return this.send('update', id, data, params.query || {});\n    }\n    patch(id, data, params = {}) {\n        return this.send('patch', id, data, params.query || {});\n    }\n    remove(id, params = {}) {\n        return this.send('remove', id, params.query || {});\n    }\n    // `off` is actually not part of the Node event emitter spec\n    // but we are adding it since everybody is expecting it because\n    // of the emitter-component Socket.io is using\n    off(name, ...args) {\n        if (typeof this.connection.off === 'function') {\n            const result = this.connection.off(`${this.path} ${name}`, ...args);\n            return result === this.connection ? this : result;\n        }\n        else if (args.length === 0) {\n            // @ts-ignore\n            return this.removeAllListeners(name);\n        }\n        // @ts-ignore\n        return this.removeListener(name, ...args);\n    }\n}\nexports.Service = Service;\n//# sourceMappingURL=client.js.map","const Base = require('./base');\n\nclass AxiosService extends Base {\n  request (options, params) {\n    const config = Object.assign({\n      url: options.url,\n      method: options.method,\n      data: options.body,\n      headers: Object.assign({\n        Accept: 'application/json'\n      }, this.options.headers, options.headers)\n    }, params.connection);\n\n    return this.connection.request(config)\n      .then(res => res.data)\n      .catch(error => {\n        const response = error.response || error;\n\n        throw response instanceof Error ? response : (response.data || response);\n      });\n  }\n}\n\nmodule.exports = AxiosService;\n","const Base = require('./base');\n\nclass SuperagentService extends Base {\n  request (options, params) {\n    const superagent = this.connection(options.method, options.url)\n      .set(this.options.headers || {})\n      .set('Accept', 'application/json')\n      .set(params.connection || {})\n      .set(options.headers || {})\n      .type(options.type || 'json');\n\n    return new Promise((resolve, reject) => {\n      superagent.set(options.headers);\n\n      if (options.body) {\n        superagent.send(options.body);\n      }\n\n      superagent.end(function (error, res) {\n        if (error) {\n          try {\n            const response = error.response;\n            error = JSON.parse(error.response.text);\n            error.response = response;\n          } catch (e) {}\n\n          return reject(error);\n        }\n\n        resolve(res && res.body);\n      });\n    });\n  }\n}\n\nmodule.exports = SuperagentService;\n","const jQueryClient = require('./jquery');\nconst SuperagentClient = require('./superagent');\nconst RequestClient = require('./request');\nconst FetchClient = require('./fetch');\nconst AxiosClient = require('./axios');\nconst AngularClient = require('./angular');\nconst Base = require('./base');\nconst AngularHttpClient = require('./angular-http-client');\n\nconst transports = {\n  jquery: jQueryClient,\n  superagent: SuperagentClient,\n  request: RequestClient,\n  fetch: FetchClient,\n  axios: AxiosClient,\n  angular: AngularClient,\n  angularHttpClient: AngularHttpClient\n};\n\nfunction restClient (base = '') {\n  const result = { Base };\n\n  Object.keys(transports).forEach(key => {\n    result[key] = function (connection, options = {}, Service = transports[key]) {\n      if (!connection) {\n        throw new Error(`${key} has to be provided to feathers-rest`);\n      }\n\n      if (typeof options === 'function') {\n        Service = options;\n        options = {};\n      }\n\n      const defaultService = function (name) {\n        return new Service({ base, name, connection, options });\n      };\n\n      const initialize = function (app) {\n        if (typeof app.defaultService === 'function') {\n          throw new Error('Only one default client provider can be configured');\n        }\n\n        app.rest = connection;\n        app.defaultService = defaultService;\n      };\n\n      initialize.Service = Service;\n      initialize.service = defaultService;\n\n      return initialize;\n    };\n  });\n\n  return result;\n}\n\nmodule.exports = Object.assign(restClient, { SuperagentClient, FetchClient, jQueryClient, RequestClient, AxiosClient, AngularClient, AngularHttpClient });\nmodule.exports.default = restClient;\n","module.exports = '4.5.17';\n","const { EventEmitter } = require('events');\nconst Proto = require('uberproto');\n\n// Returns a hook that emits service events. Should always be\n// used as the very last hook in the chain\nconst eventHook = exports.eventHook = function eventHook () {\n  return function (hook) {\n    const { app, service } = hook;\n    const eventName = hook.event === null ? hook.event : app.eventMappings[hook.method];\n    const isHookEvent = service._hookEvents && service._hookEvents.indexOf(eventName) !== -1;\n\n    // If this event is not being sent yet and we are not in an error hook\n    if (eventName && isHookEvent && hook.type !== 'error') {\n      const results = Array.isArray(hook.result) ? hook.result : [ hook.result ];\n\n      results.forEach(element => service.emit(eventName, element, hook));\n    }\n  };\n};\n\n// Mixin that turns a service into a Node event emitter\nconst eventMixin = exports.eventMixin = function eventMixin (service) {\n  if (service._serviceEvents) {\n    return;\n  }\n\n  const app = this;\n  // Indicates if the service is already an event emitter\n  const isEmitter = typeof service.on === 'function' &&\n    typeof service.emit === 'function';\n\n  // If not, mix it in (the service is always an Uberproto object that has a .mixin)\n  if (typeof service.mixin === 'function' && !isEmitter) {\n    service.mixin(EventEmitter.prototype);\n  }\n\n  // Define non-enumerable properties of\n  Object.defineProperties(service, {\n    // A list of all events that this service sends\n    _serviceEvents: {\n      value: Array.isArray(service.events) ? service.events.slice() : []\n    },\n\n    // A list of events that should be handled through the event hooks\n    _hookEvents: {\n      value: []\n    }\n  });\n\n  // `app.eventMappings` has the mapping from method name to event name\n  Object.keys(app.eventMappings).forEach(method => {\n    const event = app.eventMappings[method];\n    const alreadyEmits = service._serviceEvents.indexOf(event) !== -1;\n\n    // Add events for known methods to _serviceEvents and _hookEvents\n    // if the service indicated it does not send it itself yet\n    if (typeof service[method] === 'function' && !alreadyEmits) {\n      service._serviceEvents.push(event);\n      service._hookEvents.push(event);\n    }\n  });\n};\n\nmodule.exports = function () {\n  return function (app) {\n    // Mappings from service method to event name\n    Object.assign(app, {\n      eventMappings: {\n        create: 'created',\n        update: 'updated',\n        remove: 'removed',\n        patch: 'patched'\n      }\n    });\n\n    // Register the event hook\n    // `finally` hooks always run last after `error` and `after` hooks\n    app.hooks({ finally: eventHook() });\n\n    // Make the app an event emitter\n    Proto.mixin(EventEmitter.prototype, app);\n\n    app.mixins.push(eventMixin);\n  };\n};\n","const Service = require('@feathersjs/transport-commons/client');\n\nfunction socketioClient (connection, options) {\n  if (!connection) {\n    throw new Error('Socket.io connection needs to be provided');\n  }\n\n  if (connection && connection.io && connection.io.engine &&\n    connection.io.engine.transport && connection.io.engine.transport.query &&\n    connection.io.engine.transport.query.EIO > 3\n  ) {\n    // tslint:disable-next-line\n    console.error('You are trying to use the Socket.io client version 3 or later with Feathers v4 which only supports Socket.io version 2. Please use socket.io-client version 2 instead.');\n    throw new Error('socket.io-client must be version 2.x');\n  }\n\n  const defaultService = function (name) {\n    const events = Object.keys(this.eventMappings || {})\n      .map(method => this.eventMappings[method]);\n\n    const settings = Object.assign({}, options, {\n      events,\n      name,\n      connection,\n      method: 'emit'\n    });\n\n    return new Service(settings);\n  };\n\n  const initialize = function (app) {\n    if (typeof app.defaultService === 'function') {\n      throw new Error('Only one default client provider can be configured');\n    }\n\n    app.io = connection;\n    app.defaultService = defaultService;\n  };\n\n  initialize.Service = Service;\n  initialize.service = defaultService;\n\n  return initialize;\n}\n\nmodule.exports = socketioClient;\nmodule.exports.default = socketioClient;\n","const Base = require('./base');\n\nclass AngularHttpService extends Base {\n  request (options, params) {\n    const httpClient = this.connection;\n    const HttpHeaders = this.options.HttpHeaders;\n\n    if (!httpClient || !HttpHeaders) {\n      throw new Error(`Please pass angular's 'httpClient' (instance) and and object with 'HttpHeaders' (class) to feathers-rest`);\n    }\n\n    const url = options.url;\n    const { connection = {} } = params;\n    const headers = new HttpHeaders(\n      Object.assign(\n        { Accept: 'application/json' },\n        this.options.headers,\n        options.headers,\n        connection.headers\n      )\n    );\n    const requestOptions = Object.assign({\n      // method: options.method,\n      body: options.body\n    }, params.connection, { headers });\n\n    return new Promise((resolve, reject) => {\n      httpClient.request(options.method, url, requestOptions)\n        .subscribe(resolve, reject);\n    })\n      .catch(error => {\n        const e = error.error;\n\n        if (e) {\n          throw (typeof e === 'string' ? JSON.parse(e) : e);\n        }\n\n        throw error;\n      });\n  }\n}\n\nmodule.exports = AngularHttpService;\n","const Base = require('./base');\n\nclass RequestService extends Base {\n  request (options, params) {\n    return new Promise((resolve, reject) => {\n      const { connection = {} } = params;\n      const headers = Object.assign({}, options.headers, connection.headers);\n\n      this.connection(Object.assign({\n        json: true\n      }, options, params.connection, { headers }), function (error, res, data) {\n        if (error) {\n          return reject(error);\n        }\n\n        if (!error && res.statusCode >= 400) {\n          if (typeof data === 'string') {\n            return reject(new Error(data));\n          }\n\n          data.response = res;\n\n          return reject(Object.assign(new Error(data.message), data));\n        }\n\n        resolve(data);\n      });\n    });\n  }\n}\n\nmodule.exports = RequestService;\n","const Base = require('./base');\n\nclass JQueryService extends Base {\n  request (options, params) {\n    const { connection = {} } = params;\n    const headers = Object.assign({}, options.headers, this.options.headers, connection.headers);\n    const opts = Object.assign({\n      dataType: options.type || 'json'\n    }, connection, options, { headers });\n\n    if (options.body) {\n      opts.data = JSON.stringify(options.body);\n      opts.contentType = 'application/json';\n    }\n\n    delete opts.type;\n    delete opts.body;\n\n    return new Promise((resolve, reject) => {\n      this.connection.ajax(opts).then(resolve, xhr => {\n        let error = xhr.responseText;\n\n        try {\n          error = JSON.parse(error);\n        } catch (e) {\n          error = new Error(xhr.responseText);\n        }\n\n        error.xhr = error.response = xhr;\n\n        reject(error);\n      });\n    });\n  }\n}\n\nmodule.exports = JQueryService;\n","const { _ } = require('@feathersjs/commons');\n\nconst assignArguments = context => {\n  const { service, method } = context;\n  const parameters = service.methods[method];\n\n  context.arguments.forEach((value, index) => {\n    context[parameters[index]] = value;\n  });\n\n  if (!context.params) {\n    context.params = {};\n  }\n\n  return context;\n};\n\nconst validate = context => {\n  const { service, method, path } = context;\n  const parameters = service.methods[method];\n\n  if (parameters.includes('id') && context.id === undefined) {\n    throw new Error(`An id must be provided to the '${path}.${method}' method`);\n  }\n\n  if (parameters.includes('data') && !_.isObjectOrArray(context.data)) {\n    throw new Error(`A data object must be provided to the '${path}.${method}' method`);\n  }\n\n  return context;\n};\n\nmodule.exports = [ assignArguments, validate ];\n","const { hooks, isPromise } = require('@feathersjs/commons');\nconst baseHooks = require('./base');\n\nconst {\n  createHookObject,\n  getHooks,\n  processHooks,\n  enableHooks,\n  ACTIVATE_HOOKS\n} = hooks;\n\nconst withHooks = function withHooks ({\n  app,\n  service,\n  method,\n  original\n}) {\n  return (_hooks = {}) => {\n    const hooks = app.hookTypes.reduce((result, type) => {\n      const value = _hooks[type] || [];\n\n      result[type] = Array.isArray(value) ? value : [ value ];\n\n      return result;\n    }, {});\n\n    return function (...args) {\n      const returnHook = args[args.length - 1] === true\n        ? args.pop() : false;\n\n      // Create the hook object that gets passed through\n      const hookObject = createHookObject(method, {\n        type: 'before', // initial hook object type\n        arguments: args,\n        service,\n        app\n      });\n\n      return Promise.resolve(hookObject)\n\n        // Run `before` hooks\n        .then(hookObject => {\n          return processHooks.call(service, baseHooks.concat(hooks.before), hookObject);\n        })\n\n        // Run the original method\n        .then(hookObject => {\n          // If `hookObject.result` is set, skip the original method\n          if (typeof hookObject.result !== 'undefined') {\n            return hookObject;\n          }\n\n          // Otherwise, call it with arguments created from the hook object\n          const promise = new Promise(resolve => {\n            const func = original || service[method];\n            const args = service.methods[method].map((value) => hookObject[value]);\n            const result = func.apply(service, args);\n\n            if (!isPromise(result)) {\n              throw new Error(`Service method '${hookObject.method}' for '${hookObject.path}' service must return a promise`);\n            }\n\n            resolve(result);\n          });\n\n          return promise\n            .then(result => {\n              hookObject.result = result;\n              return hookObject;\n            })\n            .catch(error => {\n              error.hook = hookObject;\n              throw error;\n            });\n        })\n\n        // Run `after` hooks\n        .then(hookObject => {\n          const afterHookObject = Object.assign({}, hookObject, {\n            type: 'after'\n          });\n\n          return processHooks.call(service, hooks.after, afterHookObject);\n        })\n\n        // Run `errors` hooks\n        .catch(error => {\n          const errorHookObject = Object.assign({}, error.hook, {\n            type: 'error',\n            original: error.hook,\n            error,\n            result: undefined\n          });\n\n          return processHooks.call(service, hooks.error, errorHookObject)\n            .catch(error => {\n              const errorHookObject = Object.assign({}, error.hook, {\n                error,\n                result: undefined\n              });\n\n              return errorHookObject;\n            });\n        })\n\n        // Run `finally` hooks\n        .then(hookObject => {\n          return processHooks.call(service, hooks.finally, hookObject)\n            .catch(error => {\n              const errorHookObject = Object.assign({}, error.hook, {\n                error,\n                result: undefined\n              });\n\n              return errorHookObject;\n            });\n        })\n\n        // Resolve with a result or reject with an error\n        .then(hookObject => {\n          if (typeof hookObject.error !== 'undefined' && typeof hookObject.result === 'undefined') {\n            return Promise.reject(returnHook ? hookObject : hookObject.error);\n          } else {\n            return returnHook ? hookObject : hookObject.result;\n          }\n        });\n    };\n  };\n};\n\n// A service mixin that adds `service.hooks()` method and functionality\nconst hookMixin = exports.hookMixin = function hookMixin (service) {\n  if (typeof service.hooks === 'function') {\n    return;\n  }\n\n  service.methods = Object.getOwnPropertyNames(service)\n    .filter(key => typeof service[key] === 'function' && service[key][ACTIVATE_HOOKS])\n    .reduce((result, methodName) => {\n      result[methodName] = service[methodName][ACTIVATE_HOOKS];\n      return result;\n    }, service.methods || {});\n\n  Object.assign(service.methods, {\n    find: ['params'],\n    get: ['id', 'params'],\n    create: ['data', 'params'],\n    update: ['id', 'data', 'params'],\n    patch: ['id', 'data', 'params'],\n    remove: ['id', 'params']\n  });\n\n  const app = this;\n  const methodNames = Object.keys(service.methods);\n  // Assemble the mixin object that contains all \"hooked\" service methods\n  const mixin = methodNames.reduce((mixin, method) => {\n    if (typeof service[method] !== 'function') {\n      return mixin;\n    }\n\n    mixin[method] = function () {\n      const service = this;\n      const args = Array.from(arguments);\n      const original = service._super.bind(service);\n\n      return withHooks({\n        app,\n        service,\n        method,\n        original\n      })({\n        before: getHooks(app, service, 'before', method),\n        after: getHooks(app, service, 'after', method, true),\n        error: getHooks(app, service, 'error', method, true),\n        finally: getHooks(app, service, 'finally', method, true)\n      })(...args);\n    };\n\n    return mixin;\n  }, {});\n\n  // Add .hooks method and properties to the service\n  enableHooks(service, methodNames, app.hookTypes);\n\n  service.mixin(mixin);\n};\n\nmodule.exports = function () {\n  return function (app) {\n    // We store a reference of all supported hook types on the app\n    // in case someone needs it\n    Object.assign(app, {\n      hookTypes: ['before', 'after', 'error', 'finally']\n    });\n\n    // Add functionality for hooks to be registered as app.hooks\n    enableHooks(app, app.methods, app.hookTypes);\n\n    app.mixins.push(hookMixin);\n  };\n};\n\nmodule.exports.withHooks = withHooks;\n\nmodule.exports.ACTIVATE_HOOKS = ACTIVATE_HOOKS;\n\nmodule.exports.activateHooks = function activateHooks (args) {\n  return fn => {\n    Object.defineProperty(fn, ACTIVATE_HOOKS, { value: args });\n    return fn;\n  };\n};\n","const Base = require('./base');\nconst errors = require('@feathersjs/errors');\n\nclass FetchService extends Base {\n  request (options, params) {\n    let fetchOptions = Object.assign({}, options, params.connection);\n\n    fetchOptions.headers = Object.assign({\n      Accept: 'application/json'\n    }, this.options.headers, fetchOptions.headers);\n\n    if (options.body) {\n      fetchOptions.body = JSON.stringify(options.body);\n    }\n\n    const fetch = this.connection;\n\n    return fetch(options.url, fetchOptions)\n      .then(this.checkStatus)\n      .then(response => {\n        if (response.status === 204) {\n          return null;\n        }\n\n        return response.json();\n      });\n  }\n\n  checkStatus (response) {\n    if (response.ok) {\n      return response;\n    }\n\n    return response.json().catch(() => {\n      const ErrorClass = errors[response.status] || Error;\n      \n      return new ErrorClass('JSON parsing error');\n    }).then(error => {\n      error.response = response;\n      throw error;\n    });\n  }\n}\n\nmodule.exports = FetchService;\n","const Base = require('./base');\n\nclass AngularService extends Base {\n  request (options, params) {\n    const http = this.connection;\n    const Headers = this.options.Headers;\n\n    if (!http || !Headers) {\n      throw new Error(`Please pass angular's 'http' (instance) and and object with 'Headers' (class) to feathers-rest`);\n    }\n\n    const url = options.url;\n    const { connection = {} } = params;\n    const headers = new Headers(\n      Object.assign(\n        { Accept: 'application/json' },\n        this.options.headers,\n        options.headers,\n        connection.headers\n      )\n    );\n    const requestOptions = Object.assign({\n      method: options.method,\n      body: options.body\n    }, connection, { headers });\n\n    return new Promise((resolve, reject) => {\n      http.request(url, requestOptions)\n        .subscribe(resolve, reject);\n    })\n      .then(res => res.json())\n      .catch(error => {\n        const response = error.response || error;\n\n        throw response instanceof Error ? response : (response.json() || response);\n      });\n  }\n}\n\nmodule.exports = AngularService;\n","const Proto = require('uberproto');\nconst Application = require('./application');\nconst version = require('./version');\nconst { ACTIVATE_HOOKS, activateHooks } = require('./hooks');\n// A base object Prototype that does not inherit from a\n// potentially polluted Object prototype\nconst baseObject = Object.create(null);\n\nfunction createApplication () {\n  const app = Object.create(baseObject);\n\n  // Mix in the base application\n  Proto.mixin(Application, app);\n\n  app.init();\n\n  return app;\n}\n\ncreateApplication.version = version;\ncreateApplication.ACTIVATE_HOOKS = ACTIVATE_HOOKS;\ncreateApplication.activateHooks = activateHooks;\n\nmodule.exports = createApplication;\n\n// For better ES module (TypeScript) compatibility\nmodule.exports.default = createApplication;\n","const debug = require('debug')('feathers:application');\nconst { stripSlashes } = require('@feathersjs/commons');\n\nconst Uberproto = require('uberproto');\nconst events = require('./events');\nconst hooks = require('./hooks');\nconst version = require('./version');\n\nconst Proto = Uberproto.extend({\n  create: null\n});\n\nconst application = {\n  init () {\n    Object.assign(this, {\n      version,\n      methods: [\n        'find', 'get', 'create', 'update', 'patch', 'remove'\n      ],\n      mixins: [],\n      services: {},\n      providers: [],\n      _setup: false,\n      settings: {}\n    });\n\n    this.configure(hooks());\n    this.configure(events());\n  },\n\n  get (name) {\n    return this.settings[name];\n  },\n\n  set (name, value) {\n    this.settings[name] = value;\n    return this;\n  },\n\n  disable (name) {\n    this.settings[name] = false;\n    return this;\n  },\n\n  disabled (name) {\n    return !this.settings[name];\n  },\n\n  enable (name) {\n    this.settings[name] = true;\n    return this;\n  },\n\n  enabled (name) {\n    return !!this.settings[name];\n  },\n\n  configure (fn) {\n    fn.call(this, this);\n\n    return this;\n  },\n\n  service (path, service) {\n    if (typeof service !== 'undefined') {\n      throw new Error('Registering a new service with `app.service(path, service)` is no longer supported. Use `app.use(path, service)` instead.');\n    }\n\n    const location = stripSlashes(path) || '/';\n    const current = this.services.hasOwnProperty(location) ? this.services[location] : undefined\n\n    if (typeof current === 'undefined' && typeof this.defaultService === 'function') {\n      return this.use(location, this.defaultService(location))\n        .service(location);\n    }\n\n    return current;\n  },\n\n  use (path, service, options = {}) {\n    if (typeof path !== 'string') {\n      throw new Error(`'${path}' is not a valid service path.`);\n    }\n\n    const location = stripSlashes(path) || '/';\n    const isSubApp = typeof service.service === 'function' && service.services;\n    const isService = this.methods.concat('setup').some(name => typeof service[name] === 'function');\n\n    if (isSubApp) {\n      const subApp = service;\n\n      Object.keys(subApp.services).forEach(subPath =>\n        this.use(`${location}/${subPath}`, subApp.service(subPath))\n      );\n\n      return this;\n    }\n\n    if (!isService) {\n      throw new Error(`Invalid service object passed for path \\`${location}\\``);\n    }\n\n    // If the service is already Uberproto'd use it directly\n    const protoService = Proto.isPrototypeOf(service) ? service : Proto.extend(service);\n\n    debug(`Registering new service at \\`${location}\\``);\n\n    // Add all the mixins\n    this.mixins.forEach(fn => fn.call(this, protoService, location, options));\n\n    if (typeof protoService._setup === 'function') {\n      protoService._setup(this, location);\n    }\n\n    // Run the provider functions to register the service\n    this.providers.forEach(provider =>\n      provider.call(this, protoService, location, options)\n    );\n\n    // If we ran setup already, set this service up explicitly\n    if (this._isSetup && typeof protoService.setup === 'function') {\n      debug(`Setting up service for \\`${location}\\``);\n      protoService.setup(this, location);\n    }\n\n    this.services[location] = protoService;\n\n    return this;\n  },\n\n  setup () {\n    // Setup each service (pass the app so that they can look up other services etc.)\n    Object.keys(this.services).forEach(path => {\n      const service = this.services[path];\n\n      debug(`Setting up service for \\`${path}\\``);\n\n      if (typeof service.setup === 'function') {\n        service.setup(this, path);\n      }\n    });\n\n    this._isSetup = true;\n\n    return this;\n  }\n};\n\nmodule.exports = application;\n","const qs = require('qs');\nconst { Unavailable } = require('@feathersjs/errors');\nconst { _ } = require('@feathersjs/commons');\nconst { stripSlashes } = require('@feathersjs/commons');\nconst { convert } = require('@feathersjs/errors');\n\nfunction toError (error) {\n  if (error.code === 'ECONNREFUSED') {\n    throw new Unavailable(error.message, _.pick(error, 'address', 'port', 'config'));\n  }\n\n  throw convert(error);\n}\n\nclass Base {\n  constructor (settings) {\n    this.name = stripSlashes(settings.name);\n    this.options = settings.options;\n    this.connection = settings.connection;\n    this.base = `${settings.base}/${this.name}`;\n  }\n\n  makeUrl (query, id) {\n    query = query || {};\n    let url = this.base;\n\n    if (typeof id !== 'undefined' && id !== null) {\n      url += `/${encodeURIComponent(id)}`;\n    }\n\n    return url + this.getQuery(query);\n  }\n\n  getQuery (query) {\n    if (Object.keys(query).length !== 0) {\n      const queryString = qs.stringify(query);\n\n      return `?${queryString}`;\n    }\n\n    return '';\n  }\n\n  find (params = {}) {\n    return this.request({\n      url: this.makeUrl(params.query),\n      method: 'GET',\n      headers: Object.assign({}, params.headers)\n    }, params).catch(toError);\n  }\n\n  get (id, params = {}) {\n    if (typeof id === 'undefined') {\n      return Promise.reject(new Error(`id for 'get' can not be undefined`));\n    }\n\n    return this.request({\n      url: this.makeUrl(params.query, id),\n      method: 'GET',\n      headers: Object.assign({}, params.headers)\n    }, params).catch(toError);\n  }\n\n  create (body, params = {}) {\n    return this.request({\n      url: this.makeUrl(params.query),\n      body,\n      method: 'POST',\n      headers: Object.assign({ 'Content-Type': 'application/json' }, params.headers)\n    }, params).catch(toError);\n  }\n\n  update (id, body, params = {}) {\n    if (typeof id === 'undefined') {\n      return Promise.reject(new Error(`id for 'update' can not be undefined, only 'null' when updating multiple entries`));\n    }\n\n    return this.request({\n      url: this.makeUrl(params.query, id),\n      body,\n      method: 'PUT',\n      headers: Object.assign({ 'Content-Type': 'application/json' }, params.headers)\n    }, params).catch(toError);\n  }\n\n  patch (id, body, params = {}) {\n    if (typeof id === 'undefined') {\n      return Promise.reject(new Error(`id for 'patch' can not be undefined, only 'null' when updating multiple entries`));\n    }\n\n    return this.request({\n      url: this.makeUrl(params.query, id),\n      body,\n      method: 'PATCH',\n      headers: Object.assign({ 'Content-Type': 'application/json' }, params.headers)\n    }, params).catch(toError);\n  }\n\n  remove (id, params = {}) {\n    if (typeof id === 'undefined') {\n      return Promise.reject(new Error(`id for 'remove' can not be undefined, only 'null' when removing multiple entries`));\n    }\n\n    return this.request({\n      url: this.makeUrl(params.query, id),\n      method: 'DELETE',\n      headers: Object.assign({}, params.headers)\n    }, params).catch(toError);\n  }\n}\n\nmodule.exports = Base;\n"],"sourceRoot":""}