{"version":3,"sources":["../node_modules/browser-pack/_prelude.js","../lib/browser.js","../lib/FaceSegmentatorFilter.js","../lib/complexTypes/index.js","../lib/complexTypes/Point.js"],"names":["require","noop","error","result","console","trace","FaceSegmentatorFilter","super_","call","this","checkFaceSegmentatorFilter","key","value","ChecktypeError","inherits","kurentoClient","disguise","checkType","Transaction","TransactionsManager","OpenCVFilter","register","abstracts","prototype","getIntervalEventTime","callback","transaction","arguments","Array","shift","apply","undefined","usePromise","length","bind","_invoke","setIntervalEventTime","intervalEventTime","required","params","constructorParams","mediaPipeline","type","events","concat","module","exports","check","Point","pointDict","x","y","Object","defineProperties","writable","enumerable","checkPoint","ComplexType","complexTypes","__module__","__type__"],"mappings":"AAAA;AEiCA,QAASC,MAAKC,EAAOC,GAGnB,MAFID,IAAOE,QAAQC,MAAMH,GAElBC,EAmBT,QAASG,yBACPA,sBAAsBC,OAAOC,KAAKC,MAsGpC,QAASC,4BAA2BC,EAAKC,GAEvC,KAAKA,YAAiBN,wBACpB,KAAMO,gBAAeF,EAAKL,sBAAuBM,GA/IrD,GAAIE,UAAWd,QAAQ,YAEnBe,cAAgBf,QAAQ,kBAExBgB,SAAWD,cAAcC,SAEzBC,UAAiBF,cAAcE,UAC/BJ,eAAiBI,UAAUJ,eAG3BK,YAAcH,cAAcI,oBAAoBD,YAEhDE,aAAeL,cAAcM,SAASC,UAAUF,YA4BpDN,UAASR,sBAAuBc,cAgBhCd,sBAAsBiB,UAAUC,qBAAuB,SAASC,GAC9D,GAAIC,GAAeC,UAAU,YAAcT,aACzBU,MAAML,UAAUM,MAAMC,MAAMH,WAC5BI,OAEdC,GAAa,CAUjB,OARgBD,SAAZN,IACFO,GAAa,GAGXL,UAAUM,SAAQR,EAAWM,QAEjCN,GAAYA,GAAYxB,MAAMiC,KAAKzB,MAE5BO,SAASP,KAAK0B,QAAQT,EAAa,uBAAwBD,GAAWhB,OAkB/EH,sBAAsBiB,UAAUa,qBAAuB,SAASC,EAAmBZ,GACjF,GAAIC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R,OAAQhD,QAAQ,UAGpB8C,SAAQE,MAAQA","file":"bundle.js","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})","/**\n * Loader for the kurento-module-facesegmentator package on the browser\n */\n\nrequire('.');\n","/* Autogenerated with Kurento Idl */\n\n/*\n * (C) Copyright 2013-2015 Kurento (http://kurento.org/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar inherits = require('inherits');\n\nvar kurentoClient = require('kurento-client');\n\nvar disguise = kurentoClient.disguise;\n\nvar checkType      = kurentoClient.checkType;\nvar ChecktypeError = checkType.ChecktypeError;\n\n\nvar Transaction = kurentoClient.TransactionsManager.Transaction;\n\nvar OpenCVFilter = kurentoClient.register.abstracts.OpenCVFilter;\n\n\nfunction noop(error, result) {\n  if (error) console.trace(error);\n\n  return result\n};\n\n\n/**\n * Create a :rom:cls:`FaceSegmentator`\n *\n * @classdesc\n *  Filter that detects the face characteristics and throws events with the main\n *\n * @extends module:filters/abstracts.OpenCVFilter\n *\n * @constructor module:facesegmentator.FaceSegmentatorFilter\n *\n * @fires {@link module:facesegmentator#event:EyesPosition EyesPosition}\n * @fires {@link module:facesegmentator#event:FacePosition FacePosition}\n * @fires {@link module:facesegmentator#event:MouthPosition MouthPosition}\n * @fires {@link module:facesegmentator#event:NoisePosition NoisePosition}\n */\nfunction FaceSegmentatorFilter(){\n  FaceSegmentatorFilter.super_.call(this);\n};\ninherits(FaceSegmentatorFilter, OpenCVFilter);\n\n\n//\n// Public properties\n//\n\n/**\n * Time (in milliseconds) between two consecutive events\n *\n * @alias module:facesegmentator.FaceSegmentatorFilter#getIntervalEventTime\n *\n * @param {module:facesegmentator.FaceSegmentatorFilter~getIntervalEventTimeCallback} [callback]\n *\n * @return {external:Promise}\n */\nFaceSegmentatorFilter.prototype.getIntervalEventTime = function(callback){\n  var transaction = (arguments[0] instanceof Transaction)\n                  ? Array.prototype.shift.apply(arguments)\n                  : undefined;\n\n  var usePromise = false;\n  \n  if (callback == undefined) {\n    usePromise = true;\n  }\n  \n  if(!arguments.length) callback = undefined;\n\n  callback = (callback || noop).bind(this)\n\n  return disguise(this._invoke(transaction, 'getIntervalEventTime', callback), this)\n};\n/**\n * @callback module:facesegmentator.FaceSegmentatorFilter~getIntervalEventTimeCallback\n * @param {external:Error} error\n * @param {external:Integer} result\n */\n\n/**\n * Time (in milliseconds) between two consecutive events\n *\n * @alias module:facesegmentator.FaceSegmentatorFilter#setIntervalEventTime\n *\n * @param {external:Integer} intervalEventTime\n * @param {module:facesegmentator.FaceSegmentatorFilter~setIntervalEventTimeCallback} [callback]\n *\n * @return {external:Promise}\n */\nFaceSegmentatorFilter.prototype.setIntervalEventTime = function(intervalEventTime, callback){\n  var transaction = (arguments[0] instanceof Transaction)\n                  ? Array.prototype.shift.apply(arguments)\n                  : undefined;\n\n  checkType('int', 'intervalEventTime', intervalEventTime, {required: true});\n\n  var params = {\n    intervalEventTime: intervalEventTime\n  };\n\n  callback = (callback || noop).bind(this)\n\n  return disguise(this._invoke(transaction, 'setIntervalEventTime', params, callback), this)\n};\n/**\n * @callback module:facesegmentator.FaceSegmentatorFilter~setIntervalEventTimeCallback\n * @param {external:Error} error\n */\n\n\n/**\n * @alias module:facesegmentator.FaceSegmentatorFilter.constructorParams\n *\n * @property {module:core.MediaPipeline} mediaPipeline\n *  the {@link module:core.MediaPipeline MediaPipeline} to which the filter \n *  belongs\n */\nFaceSegmentatorFilter.constructorParams = {\n  mediaPipeline: {\n    type: 'kurento.MediaPipeline',\n    required: true\n  }\n};\n\n/**\n * @alias module:facesegmentator.FaceSegmentatorFilter.events\n *\n * @extends module:filters/abstracts.OpenCVFilter.events\n */\nFaceSegmentatorFilter.events = OpenCVFilter.events.concat(['EyesPosition', 'FacePosition', 'MouthPosition', 'NoisePosition']);\n\n\n/**\n * Checker for {@link module:facesegmentator.FaceSegmentatorFilter}\n *\n * @memberof module:facesegmentator\n *\n * @param {external:String} key\n * @param {module:facesegmentator.FaceSegmentatorFilter} value\n */\nfunction checkFaceSegmentatorFilter(key, value)\n{\n  if(!(value instanceof FaceSegmentatorFilter))\n    throw ChecktypeError(key, FaceSegmentatorFilter, value);\n};\n\n\nmodule.exports = FaceSegmentatorFilter;\n\nFaceSegmentatorFilter.check = checkFaceSegmentatorFilter;\n","/* Autogenerated with Kurento Idl */\n\n/*\n * (C) Copyright 2013-2015 Kurento (http://kurento.org/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Media API for the Kurento Web SDK\n *\n * @module facesegmentator/complexTypes\n *\n * @copyright 2013-2015 Kurento (http://kurento.org/)\n * @license ALv2\n */\n\nvar Point = require('./Point');\n\n\nexports.Point = Point;\n","/* Autogenerated with Kurento Idl */\n\n/*\n * (C) Copyright 2013-2015 Kurento (http://kurento.org/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nvar inherits = require('inherits');\n\nvar kurentoClient = require('kurento-client');\n\nvar checkType = kurentoClient.checkType;\nvar ChecktypeError = checkType.ChecktypeError;\n\nvar ComplexType = kurentoClient.register.complexTypes.ComplexType;\n\n\n/**\n * Point coordinates.\n *\n * @constructor module:facesegmentator/complexTypes.Point\n *\n * @property {external:Integer} x\n *  Position in pixels of X coordinate of the point\n * @property {external:Integer} y\n *  Position in pixels of Y coordinate of the point\n */\nfunction Point(pointDict){\n  if(!(this instanceof Point))\n    return new Point(pointDict)\n\n  pointDict = pointDict || {}\n\n  // Check pointDict has the required fields\n  checkType('int', 'pointDict.x', pointDict.x, {required: true});\n  checkType('int', 'pointDict.y', pointDict.y, {required: true});\n\n  // Init parent class\n  Point.super_.call(this, pointDict)\n\n  // Set object properties\n  Object.defineProperties(this, {\n    x: {\n      writable: true,\n      enumerable: true,\n      value: pointDict.x\n    },\n    y: {\n      writable: true,\n      enumerable: true,\n      value: pointDict.y\n    }\n  })\n}\ninherits(Point, ComplexType)\n\n// Private identifiers to allow re-construction of the complexType on the server\n// They need to be enumerable so JSON.stringify() can access to them\nObject.defineProperties(Point.prototype, {\n  __module__: {\n    enumerable: true,\n    value: \"facesegmentator\"\n  },\n  __type__: {\n    enumerable: true,\n    value: \"Point\"\n  }\n})\n\n/**\n * Checker for {@link module:facesegmentator/complexTypes.Point}\n *\n * @memberof module:facesegmentator/complexTypes\n *\n * @param {external:String} key\n * @param {module:facesegmentator/complexTypes.Point} value\n */\nfunction checkPoint(key, value)\n{\n  if(!(value instanceof Point))\n    throw ChecktypeError(key, Point, value);\n};\n\n\nmodule.exports = Point;\n\nPoint.check = checkPoint;\n"]}