Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a vulnerability in swagger-ui 3.22.2,upgrade recommended #405

Open
QiAnXinCodeSafe opened this issue Jul 22, 2021 · 1 comment
Open

Comments

@QiAnXinCodeSafe
Copy link

(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.exports=factory();else if(typeof define==="function"&&define.amd)define([],factory);else if(typeof exports==="object")exports["SwaggerUICore"]=factory();else root["SwaggerUICore"]=factory()})(typeof self!=="undefined"?self:this,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="/dist";return __webpack_require__(__webpack_require__.s=288)}([function(module,exports){module.exports=require("react")},function(module,exports){module.exports=require("prop-types")},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.default=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _defineProperty=__webpack_require__(179);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}()},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(532),__esModule:true}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&((typeof call==="undefined"?"undefined":(0,_typeof3.default)(call))==="object"||typeof call==="function")?call:self}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _setPrototypeOf=__webpack_require__(534);var _setPrototypeOf2=_interopRequireDefault(_setPrototypeOf);var _create=__webpack_require__(538);var _create2=_interopRequireDefault(_create);var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof superClass==="undefined"?"undefined":(0,_typeof3.default)(superClass)))}subClass.prototype=(0,_create2.default)(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(subClass,superClass):subClass.__proto__=superClass}},function(module,exports){module.exports=require("immutable")},function(module,exports,__webpack_require__){"use strict";(function(Buffer){Object.defineProperty(exports,"__esModule",{value:true});exports.getCommonExtensions=exports.getExtensions=exports.escapeDeepLinkPath=exports.createDeepLinkPath=exports.shallowEqualKeys=exports.buildFormData=exports.sorters=exports.btoa=exports.serializeSearch=exports.parseSearch=exports.getSampleSchema=exports.validateParam=exports.validatePattern=exports.validateMinLength=exports.validateMaxLength=exports.validateGuid=exports.validateDateTime=exports.validateString=exports.validateBoolean=exports.validateFile=exports.validateInteger=exports.validateNumber=exports.validateMinimum=exports.validateMaximum=exports.propChecker=exports.memoize=exports.isImmutable=undefined;var _stringify=__webpack_require__(30);var _stringify2=_interopRequireDefault(_stringify);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _getIterator2=__webpack_require__(76);var _getIterator3=_interopRequireDefault(_getIterator2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);exports.isJSONObject=isJSONObject;exports.objectify=objectify;exports.arrayify=arrayify;exports.fromJSOrdered=fromJSOrdered;exports.bindToState=bindToState;exports.normalizeArray=normalizeArray;exports.isFn=isFn;exports.isObject=isObject;exports.isFunc=isFunc;exports.isArray=isArray;exports.objMap=objMap;exports.objReduce=objReduce;exports.systemThunkMiddleware=systemThunkMiddleware;exports.defaultStatusCode=defaultStatusCode;exports.getList=getList;exports.highlight=highlight;exports.mapToList=mapToList;exports.extractFileNameFromContentDispositionHeader=extractFileNameFromContentDispositionHeader;exports.pascalCase=pascalCase;exports.pascalCaseFilename=pascalCaseFilename;exports.sanitizeUrl=sanitizeUrl;exports.getAcceptControllingResponse=getAcceptControllingResponse;exports.deeplyStripKey=deeplyStripKey;exports.stringify=stringify;exports.numberToString=numberToString;exports.paramToIdentifier=paramToIdentifier;exports.paramToValue=paramToValue;var _immutable=__webpack_require__(7);var _immutable2=_interopRequireDefault(_immutable);var _sanitizeUrl=__webpack_require__(389);var _camelCase=__webpack_require__(390);var _camelCase2=_interopRequireDefault(_camelCase);var _upperFirst=__webpack_require__(184);var _upperFirst2=_interopRequireDefault(_upperFirst);var _memoize2=__webpack_require__(188);var _memoize3=_interopRequireDefault(_memoize2);var _find=__webpack_require__(429);var _find2=_interopRequireDefault(_find);var _some=__webpack_require__(472);var _some2=_interopRequireDefault(_some);var _eq=__webpack_require__(67);var _eq2=_interopRequireDefault(_eq);var _fn=__webpack_require__(139);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);var _css=__webpack_require__(484);var _css2=_interopRequireDefault(_css);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_RESPONSE_KEY="default";var isImmutable=exports.isImmutable=function isImmutable(maybe){return _immutable2.default.Iterable.isIterable(maybe)};function isJSONObject(str){try{var o=JSON.parse(str);if(o&&(typeof o==="undefined"?"undefined":(0,_typeof3.default)(o))==="object"){return o}}catch(e){}return false}function objectify(thing){if(!isObject(thing))return{};if(isImmutable(thing))return thing.toJS();return thing}function arrayify(thing){if(!thing)return[];if(thing.toArray)return thing.toArray();return normalizeArray(thing)}function fromJSOrdered(js){if(isImmutable(js))return js;if(js instanceof _window2.default.File)return js;return!isObject(js)?js:Array.isArray(js)?_immutable2.default.Seq(js).map(fromJSOrdered).toList():_immutable2.default.OrderedMap(js).map(fromJSOrdered)}function bindToState(obj,state){var newObj={};(0,_keys2.default)(obj).filter(function(key){return typeof obj[key]==="function"}).forEach(function(key){return newObj[key]=obj[key].bind(null,state)});return newObj}function normalizeArray(arr){if(Array.isArray(arr))return arr;return[arr]}function isFn(fn){return typeof fn==="function"}function isObject(obj){return!!obj&&(typeof obj==="undefined"?"undefined":(0,_typeof3.default)(obj))==="object"}function isFunc(thing){return typeof thing==="function"}function isArray(thing){return Array.isArray(thing)}var memoize=exports.memoize=_memoize3.default;function objMap(obj,fn){return(0,_keys2.default)(obj).reduce(function(newObj,key){newObj[key]=fn(obj[key],key);return newObj},{})}function objReduce(obj,fn){return(0,_keys2.default)(obj).reduce(function(newObj,key){var res=fn(obj[key],key);if(res&&(typeof res==="undefined"?"undefined":(0,_typeof3.default)(res))==="object")(0,_assign2.default)(newObj,res);return newObj},{})}function systemThunkMiddleware(getSystem){return function(_ref){var dispatch=_ref.dispatch,getState=_ref.getState;return function(next){return function(action){if(typeof action==="function"){return action(getSystem())}return next(action)}}}}function defaultStatusCode(responses){var codes=responses.keySeq();return codes.contains(DEFAULT_RESPONSE_KEY)?DEFAULT_RESPONSE_KEY:codes.filter(function(key){return(key+"")[0]==="2"}).sort().first()}function getList(iterable,keys){if(!_immutable2.default.Iterable.isIterable(iterable)){return _immutable2.default.List()}var val=iterable.getIn(Array.isArray(keys)?keys:[keys]);return _immutable2.default.List.isList(val)?val:_immutable2.default.List()}function highlight(el){var MAX_LENGTH=5e3;var _document=document,appendChild="appendChild",test="test";if(!el)return"";if(el.textContent.length>MAX_LENGTH){return el.textContent}var reset=function reset(el){var text=el.textContent,pos=0,next1=text[0],chr=1,prev1,prev2,token=el.innerHTML="",tokenType=0,lastTokenType,multichar,node;while(prev2=prev1,prev1=tokenType<7&&prev1=="\\"?1:chr){chr=next1;next1=text[++pos];multichar=token.length>1;if(!chr||tokenType>8&&chr=="\n"||[/\S/[test](chr),1,1,!/[$\w]/[test](chr),(prev1=="/"||prev1=="\n")&&multichar,prev1=='"'&&multichar,prev1=="'"&&multichar,text[pos-4]+prev2+prev1=="--\x3e",prev2+prev1=="*/"][tokenType]){if(token){el[appendChild](node=_document.createElement("span")).setAttribute("style",["color: #555; font-weight: bold;","","","color: #555;",""][!tokenType?0:tokenType<3?2:tokenType>6?4:tokenType>3?3:+/^(a(bstract|lias|nd|rguments|rray|s(m|sert)?|uto)|b(ase|egin|ool(ean)?|reak|yte)|c(ase|atch|har|hecked|lass|lone|ompl|onst|ontinue)|de(bugger|cimal|clare|f(ault|er)?|init|l(egate|ete)?)|do|double|e(cho|ls?if|lse(if)?|nd|nsure|num|vent|x(cept|ec|p(licit|ort)|te(nds|nsion|rn)))|f(allthrough|alse|inal(ly)?|ixed|loat|or(each)?|riend|rom|unc(tion)?)|global|goto|guard|i(f|mp(lements|licit|ort)|n(it|clude(_once)?|line|out|stanceof|t(erface|ernal)?)?|s)|l(ambda|et|ock|ong)|m(icrolight|odule|utable)|NaN|n(amespace|ative|ext|ew|il|ot|ull)|o(bject|perator|r|ut|verride)|p(ackage|arams|rivate|rotected|rotocol|ublic)|r(aise|e(adonly|do|f|gister|peat|quire(_once)?|scue|strict|try|turn))|s(byte|ealed|elf|hort|igned|izeof|tatic|tring|truct|ubscript|uper|ynchronized|witch)|t(emplate|hen|his|hrows?|ransient|rue|ry|ype(alias|def|id|name|of))|u(n(checked|def(ined)?|ion|less|signed|til)|se|sing)|v(ar|irtual|oid|olatile)|w(char_t|hen|here|hile|ith)|xor|yield)$/[test](token)]);node[appendChild](_document.createTextNode(token))}lastTokenType=tokenType&&tokenType<7?tokenType:lastTokenType;token="";tokenType=11;while(![1,/[\/{}[(\-+*=<>:;|\\.,?!&@~]/[test](chr),/[\])]/[test](chr),/[$\w]/[test](chr),chr=="/"&&lastTokenType<2&&prev1!="<",chr=='"',chr=="'",chr+next1+text[pos+1]+text[pos+2]=="\x3c!--",chr+next1=="/*",chr+next1=="//",chr=="#"][--tokenType]){}}token+=chr}};return reset(el)}function mapToList(map){var keyNames=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key";var collectedKeys=arguments.length>2&&arguments[2]!==undefined?arguments[2]:_immutable2.default.Map();if(!_immutable2.default.Map.isMap(map)||!map.size){return _immutable2.default.List()}if(!Array.isArray(keyNames)){keyNames=[keyNames]}if(keyNames.length<1){return map.merge(collectedKeys)}var list=_immutable2.default.List();var keyName=keyNames[0];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=(0,_getIterator3.default)(map.entries()),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var entry=_step.value;var _entry=(0,_slicedToArray3.default)(entry,2),key=_entry[0],val=_entry[1];var nextList=mapToList(val,keyNames.slice(1),collectedKeys.set(keyName,key));if(_immutable2.default.List.isList(nextList)){list=list.concat(nextList)}else{list=list.push(nextList)}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return list}function extractFileNameFromContentDispositionHeader(value){var patterns=[/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i];var responseFilename=void 0;patterns.some(function(regex){responseFilename=regex.exec(value);return responseFilename!==null});if(responseFilename!==null&&responseFilename.length>1){try{return decodeURIComponent(responseFilename[1])}catch(e){console.error(e)}}return null}function pascalCase(str){return(0,_upperFirst2.default)((0,_camelCase2.default)(str))}function pascalCaseFilename(filename){return pascalCase(filename.replace(/\.[^./]*$/,""))}var propChecker=exports.propChecker=function propChecker(props,nextProps){var objectList=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var ignoreList=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];if((0,_keys2.default)(props).length!==(0,_keys2.default)(nextProps).length){return true}return(0,_some2.default)(props,function(a,name){if(ignoreList.includes(name)){return false}var b=nextProps[name];if(_immutable2.default.Iterable.isIterable(a)){return!_immutable2.default.is(a,b)}if((typeof a==="undefined"?"undefined":(0,_typeof3.default)(a))==="object"&&(typeof b==="undefined"?"undefined":(0,_typeof3.default)(b))==="object"){return false}return a!==b})||objectList.some(function(objectPropName){return!(0,_eq2.default)(props[objectPropName],nextProps[objectPropName])})};var validateMaximum=exports.validateMaximum=function validateMaximum(val,max){if(val>max){return"Value must be less than Maximum"}};var validateMinimum=exports.validateMinimum=function validateMinimum(val,min){if(val<min){return"Value must be greater than Minimum"}};var validateNumber=exports.validateNumber=function validateNumber(val){if(!/^-?\d+(\.?\d+)?$/.test(val)){return"Value must be a number"}};var validateInteger=exports.validateInteger=function validateInteger(val){if(!/^-?\d+$/.test(val)){return"Value must be an integer"}};var validateFile=exports.validateFile=function validateFile(val){if(val&&!(val instanceof _window2.default.File)){return"Value must be a file"}};var validateBoolean=exports.validateBoolean=function validateBoolean(val){if(!(val==="true"||val==="false"||val===true||val===false)){return"Value must be a boolean"}};var validateString=exports.validateString=function validateString(val){if(val&&typeof val!=="string"){return"Value must be a string"}};var validateDateTime=exports.validateDateTime=function validateDateTime(val){if(isNaN(Date.parse(val))){return"Value must be a DateTime"}};var validateGuid=exports.validateGuid=function validateGuid(val){val=val.toString().toLowerCase();if(!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(val)){return"Value must be a Guid"}};var validateMaxLength=exports.validateMaxLength=function validateMaxLength(val,max){if(val.length>max){return"Value must be less than MaxLength"}};var validateMinLength=exports.validateMinLength=function validateMinLength(val,min){if(val.length<min){return"Value must be greater than MinLength"}};var validatePattern=exports.validatePattern=function validatePattern(val,rxPattern){var patt=new RegExp(rxPattern);if(!patt.test(val)){return"Value must follow pattern "+rxPattern}};var validateParam=exports.validateParam=function validateParam(param,value){var _ref2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref2$isOAS=_ref2.isOAS3,isOAS3=_ref2$isOAS===undefined?false:_ref2$isOAS,_ref2$bypassRequiredC=_ref2.bypassRequiredCheck,bypassRequiredCheck=_ref2$bypassRequiredC===undefined?false:_ref2$bypassRequiredC;var errors=[];var required=param.get("required");var paramDetails=isOAS3?param.get("schema"):param;if(!paramDetails)return errors;var maximum=paramDetails.get("maximum");var minimum=paramDetails.get("minimum");var type=paramDetails.get("type");var format=paramDetails.get("format");var maxLength=paramDetails.get("maxLength");var minLength=paramDetails.get("minLength");var pattern=paramDetails.get("pattern");if(type&&(required||value)){var stringCheck=type==="string"&&value;var arrayCheck=type==="array"&&Array.isArray(value)&&value.length;var listCheck=type==="array"&&_immutable2.default.List.isList(value)&&value.count();var fileCheck=type==="file"&&value instanceof _window2.default.File;var booleanCheck=type==="boolean"&&(value||value===false);var numberCheck=type==="number"&&(value||value===0);var integerCheck=type==="integer"&&(value||value===0);var oas3ObjectCheck=false;if(false||isOAS3&&type==="object"){if((typeof value==="undefined"?"undefined":(0,_typeof3.default)(value))==="object"){oas3ObjectCheck=true}else if(typeof value==="string"){try{JSON.parse(value);oas3ObjectCheck=true}catch(e){errors.push("Parameter string value must be valid JSON");return errors}}}var allChecks=[stringCheck,arrayCheck,listCheck,fileCheck,booleanCheck,numberCheck,integerCheck,oas3ObjectCheck];var passedAnyCheck=allChecks.some(function(v){return!!v});if(required&&!passedAnyCheck&&!bypassRequiredCheck){errors.push("Required field is not provided");return errors}if(pattern){var err=validatePattern(value,pattern);if(err)errors.push(err)}if(maxLength||maxLength===0){var _err=validateMaxLength(value,maxLength);if(_err)errors.push(_err)}if(minLength){var _err2=validateMinLength(value,minLength);if(_err2)errors.push(_err2)}if(maximum||maximum===0){var _err3=validateMaximum(value,maximum);if(_err3)errors.push(_err3)}if(minimum||minimum===0){var _err4=validateMinimum(value,minimum);if(_err4)errors.push(_err4)}if(type==="string"){var _err5=void 0;if(format==="date-time"){_err5=validateDateTime(value)}else if(format==="uuid"){_err5=validateGuid(value)}else{_err5=validateString(value)}if(!_err5)return errors;errors.push(_err5)}else if(type==="boolean"){var _err6=validateBoolean(value);if(!_err6)return errors;errors.push(_err6)}else if(type==="number"){var _err7=validateNumber(value);if(!_err7)return errors;errors.push(_err7)}else if(type==="integer"){var _err8=validateInteger(value);if(!_err8)return errors;errors.push(_err8)}else if(type==="array"){var itemType=void 0;if(!listCheck||!value.count()){return errors}itemType=paramDetails.getIn(["items","type"]);value.forEach(function(item,index){var err=void 0;if(itemType==="number"){err=validateNumber(item)}else if(itemType==="integer"){err=validateInteger(item)}else if(itemType==="string"){err=validateString(item)}if(err){errors.push({index:index,error:err})}})}else if(type==="file"){var _err9=validateFile(value);if(!_err9)return errors;errors.push(_err9)}}return errors};var getSampleSchema=exports.getSampleSchema=function getSampleSchema(schema){var contentType=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var config=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(/xml/.test(contentType)){if(!schema.xml||!schema.xml.name){schema.xml=schema.xml||{};if(schema.$$ref){var match=schema.$$ref.match(/\S*\/(\S+)$/);schema.xml.name=match[1]}else if(schema.type||schema.items||schema.properties||schema.additionalProperties){return'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e'}else{return null}}return(0,_fn.memoizedCreateXMLExample)(schema,config)}var res=(0,_fn.memoizedSampleFromSchema)(schema,config);return(typeof res==="undefined"?"undefined":(0,_typeof3.default)(res))==="object"?(0,_stringify2.default)(res,null,2):res};var parseSearch=exports.parseSearch=function parseSearch(){var map={};var search=_window2.default.location.search;if(!search)return{};if(search!=""){var params=search.substr(1).split("&");for(var i in params){if(!params.hasOwnProperty(i)){continue}i=params[i].split("=");map[decodeURIComponent(i[0])]=i[1]&&decodeURIComponent(i[1])||""}}return map};var serializeSearch=exports.serializeSearch=function serializeSearch(searchMap){return(0,_keys2.default)(searchMap).map(function(k){return encodeURIComponent(k)+"="+encodeURIComponent(searchMap[k])}).join("&")};var btoa=exports.btoa=function btoa(str){var buffer=void 0;if(str instanceof Buffer){buffer=str}else{buffer=new Buffer(str.toString(),"utf-8")}return buffer.toString("base64")};var sorters=exports.sorters={operationsSorter:{alpha:function alpha(a,b){return a.get("path").localeCompare(b.get("path"))},method:function method(a,b){return a.get("method").localeCompare(b.get("method"))}},tagsSorter:{alpha:function alpha(a,b){return a.localeCompare(b)}}};var buildFormData=exports.buildFormData=function buildFormData(data){var formArr=[];for(var name in data){var val=data[name];if(val!==undefined&&val!==""){formArr.push([name,"=",encodeURIComponent(val).replace(/%20/g,"+")].join(""))}}return formArr.join("&")};var shallowEqualKeys=exports.shallowEqualKeys=function shallowEqualKeys(a,b,keys){return!!(0,_find2.default)(keys,function(key){return(0,_eq2.default)(a[key],b[key])})};function sanitizeUrl(url){if(typeof url!=="string"||url===""){return""}return(0,_sanitizeUrl.sanitizeUrl)(url)}function getAcceptControllingResponse(responses){if(!_immutable2.default.OrderedMap.isOrderedMap(responses)){return null}if(!responses.size){return null}var suitable2xxResponse=responses.find(function(res,k){return k.startsWith("2")&&(0,_keys2.default)(res.get("content")||{}).length>0});var defaultResponse=responses.get("default")||_immutable2.default.OrderedMap();var defaultResponseMediaTypes=(defaultResponse.get("content")||_immutable2.default.OrderedMap()).keySeq().toJS();var suitableDefaultResponse=defaultResponseMediaTypes.length?defaultResponse:null;return suitable2xxResponse||suitableDefaultResponse}var createDeepLinkPath=exports.createDeepLinkPath=function createDeepLinkPath(str){return typeof str=="string"||str instanceof String?str.trim().replace(/\s/g,"%20"):""};var escapeDeepLinkPath=exports.escapeDeepLinkPath=function escapeDeepLinkPath(str){return(0,_css2.default)(createDeepLinkPath(str).replace(/%20/g,"_"))};var getExtensions=exports.getExtensions=function getExtensions(defObj){return defObj.filter(function(v,k){return/^x-/.test(k)})};var getCommonExtensions=exports.getCommonExtensions=function getCommonExtensions(defObj){return defObj.filter(function(v,k){return/^pattern|maxLength|minLength|maximum|minimum/.test(k)})};function deeplyStripKey(input,keyToStrip){var predicate=arguments.length>2&&arguments[2]!==undefined?arguments[2]:function(){return true};if((typeof input==="undefined"?"undefined":(0,_typeof3.default)(input))!=="object"||Array.isArray(input)||input===null||!keyToStrip){return input}var obj=(0,_assign2.default)({},input);(0,_keys2.default)(obj).forEach(function(k){if(k===keyToStrip&&predicate(obj[k],k)){delete obj[k];return}obj[k]=deeplyStripKey(obj[k],keyToStrip,predicate)});return obj}function stringify(thing){if(typeof thing==="string"){return thing}if(thing.toJS){thing=thing.toJS()}if((typeof thing==="undefined"?"undefined":(0,_typeof3.default)(thing))==="object"&&thing!==null){try{return(0,_stringify2.default)(thing,null,2)}catch(e){return String(thing)}}return thing.toString()}function numberToString(thing){if(typeof thing==="number"){return thing.toString()}return thing}function paramToIdentifier(param){var _ref3=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref3$returnAll=_ref3.returnAll,returnAll=_ref3$returnAll===undefined?false:_ref3$returnAll,_ref3$allowHashes=_ref3.allowHashes,allowHashes=_ref3$allowHashes===undefined?true:_ref3$allowHashes;if(!_immutable2.default.Map.isMap(param)){throw new Error("paramToIdentifier: received a non-Im.Map parameter as input")}var paramName=param.get("name");var paramIn=param.get("in");var generatedIdentifiers=[];if(param&&param.hashCode&&paramIn&&paramName&&allowHashes){generatedIdentifiers.push(paramIn+"."+paramName+".hash-"+param.hashCode())}if(paramIn&&paramName){generatedIdentifiers.push(paramIn+"."+paramName)}generatedIdentifiers.push(paramName);return returnAll?generatedIdentifiers:generatedIdentifiers[0]||""}function paramToValue(param,paramValues){var allIdentifiers=paramToIdentifier(param,{returnAll:true});var values=allIdentifiers.map(function(id){return paramValues[id]}).filter(function(value){return value!==undefined});return values[0]}}).call(exports,__webpack_require__(382).Buffer)},function(module,exports){module.exports=require("react-immutable-proptypes")},function(module,exports){var core=module.exports={version:"2.5.5"};if(typeof __e=="number")__e=core},function(module,exports,__webpack_require__){"use strict";var YAMLException=__webpack_require__(72);var TYPE_CONSTRUCTOR_OPTIONS=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(map){var result={};if(map!==null){Object.keys(map).forEach(function(style){map[style].forEach(function(alias){result[String(alias)]=style})})}return result}function Type(tag,options){options=options||{};Object.keys(options).forEach(function(name){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)===-1){throw new YAMLException('Unknown option "'+name+'" is met in definition of "'+tag+'" YAML type.')}});this.tag=tag;this.kind=options["kind"]||null;this.resolve=options["resolve"]||function(){return true};this.construct=options["construct"]||function(data){return data};this.instanceOf=options["instanceOf"]||null;this.predicate=options["predicate"]||null;this.represent=options["represent"]||null;this.defaultStyle=options["defaultStyle"]||null;this.styleAliases=compileStyleAliases(options["styleAliases"]||null);if(YAML_NODE_KINDS.indexOf(this.kind)===-1){throw new YAMLException('Unknown kind "'+this.kind+'" is specified for "'+tag+'" YAML type.')}}module.exports=Type},function(module,exports,__webpack_require__){var store=__webpack_require__(159)("wks");var uid=__webpack_require__(113);var Symbol=__webpack_require__(23).Symbol;var USE_SYMBOL=typeof Symbol=="function";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _isIterable2=__webpack_require__(386);var _isIterable3=_interopRequireDefault(_isIterable2);var _getIterator2=__webpack_require__(76);var _getIterator3=_interopRequireDefault(_getIterator2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=(0,_getIterator3.default)(arr),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if((0,_isIterable3.default)(Object(arr))){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}()},function(module,exports,__webpack_require__){var store=__webpack_require__(108)("wks");var uid=__webpack_require__(80);var Symbol=__webpack_require__(15).Symbol;var USE_SYMBOL=typeof Symbol=="function";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports){var global=module.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},function(module,exports,__webpack_require__){var global=__webpack_require__(23);var core=__webpack_require__(42);var hide=__webpack_require__(40);var redefine=__webpack_require__(50);var ctx=__webpack_require__(85);var PROTOTYPE="prototype";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{})[PROTOTYPE];var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE]||(exports[PROTOTYPE]={});var key,own,out,exp;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;out=(own?target:source)[key];exp=IS_BIND&&own?ctx(out,global):IS_PROTO&&typeof out=="function"?ctx(Function.call,out):out;if(target)redefine(target,key,out,type&$export.U);if(exports[key]!=out)hide(exports,key,exp);if(IS_PROTO&&expProto[key]!=out)expProto[key]=out}};global.core=core;$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports,__webpack_require__){var $export=__webpack_require__(16);var fails=__webpack_require__(64);var defined=__webpack_require__(35);var quot=/"/g;var createHTML=function(string,tag,attribute,value){var S=String(defined(string));var p1="<"+tag;if(attribute!=="")p1+=" "+attribute+'="'+String(value).replace(quot,"&quot;")+'"';return p1+">"+S+"</"+tag+">"};module.exports=function(NAME,exec){var O={};O[NAME]=exec(createHTML);$export($export.P+$export.F*fails(function(){var test=""[NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}),"String",O)}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _defineProperty=__webpack_require__(179);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(obj,key,value){if(key in obj){(0,_defineProperty2.default)(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(377),__esModule:true}},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=_assign2.default||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target}},function(module,exports,__webpack_require__){"use strict";var _getIterator2=__webpack_require__(76);var _getIterator3=_interopRequireDefault(_getIterator2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function makeWindow(){var win={location:{},history:{},open:function open(){},close:function close(){},File:function File(){}};if(typeof window==="undefined"){return win}try{win=window;var props=["File","Blob","FormData"];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=(0,_getIterator3.default)(props),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var prop=_step.value;if(prop in window){win[prop]=window[prop]}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}catch(e){console.error(e)}return win}module.exports=makeWindow()},function(module,exports){var global=module.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);exports.isOAS3=isOAS3;exports.isSwagger2=isSwagger2;exports.OAS3ComponentWrapFactory=OAS3ComponentWrapFactory;var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function isOAS3(jsSpec){var oasVersion=jsSpec.get("openapi");if(typeof oasVersion!=="string"){return false}return oasVersion.startsWith("3.0.")&&oasVersion.length>4}function isSwagger2(jsSpec){var swaggerVersion=jsSpec.get("swagger");if(typeof swaggerVersion!=="string"){return false}return swaggerVersion.startsWith("2.0")}function OAS3ComponentWrapFactory(Component){return function(Ori,system){return function(props){if(system&&system.specSelectors&&system.specSelectors.specJson){var spec=system.specSelectors.specJson();if(isOAS3(spec)){return _react2.default.createElement(Component,(0,_extends3.default)({},props,system,{Ori:Ori}))}else{return _react2.default.createElement(Ori,props)}}else{console.warn("OAS3 wrapper: couldn't get spec");return null}}}}},function(module,exports,__webpack_require__){var global=__webpack_require__(15);var core=__webpack_require__(10);var ctx=__webpack_require__(48);var hide=__webpack_require__(38);var has=__webpack_require__(39);var PROTOTYPE="prototype";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var IS_WRAP=type&$export.W;var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE];var target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];var key,own,out;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;if(own&&has(exports,key))continue;out=own?target[key]:source[key];exports[key]=IS_GLOBAL&&typeof target[key]!="function"?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};F[PROTOTYPE]=C[PROTOTYPE];return F}(out):IS_PROTO&&typeof out=="function"?ctx(Function.call,out):out;if(IS_PROTO){(exports.virtual||(exports.virtual={}))[key]=out;if(type&$export.R&&expProto&&!expProto[key])hide(expProto,key,out)}}};$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(182);var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,exports,__webpack_require__){var isObject=__webpack_require__(33);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports){function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}module.exports=isObject},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var IE8_DOM_DEFINE=__webpack_require__(154);var toPrimitive=__webpack_require__(103);var dP=Object.defineProperty;exports.f=__webpack_require__(34)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)O[P]=Attributes.value;return O}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(360),__esModule:true}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(361),__esModule:true}},function(module,exports){function isObjectLike(value){return value!=null&&typeof value=="object"}module.exports=isObjectLike},function(module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(49)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _iterator=__webpack_require__(363);var _iterator2=_interopRequireDefault(_iterator);var _symbol=__webpack_require__(365);var _symbol2=_interopRequireDefault(_symbol);var _typeof=typeof _symbol2.default==="function"&&typeof _iterator2.default==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof _symbol2.default==="function"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?"symbol":typeof obj};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=typeof _symbol2.default==="function"&&_typeof(_iterator2.default)==="symbol"?function(obj){return typeof obj==="undefined"?"undefined":_typeof(obj)}:function(obj){return obj&&typeof _symbol2.default==="function"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?"symbol":typeof obj==="undefined"?"undefined":_typeof(obj)}},function(module,exports){module.exports=require("reselect")},function(module,exports,__webpack_require__){var dP=__webpack_require__(29);var createDesc=__webpack_require__(58);module.exports=__webpack_require__(34)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(82);var createDesc=__webpack_require__(160);module.exports=__webpack_require__(63)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(51);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports){var core=module.exports={version:"2.5.5"};if(typeof __e=="number")__e=core},function(module,exports,__webpack_require__){var baseToString=__webpack_require__(392);function toString(value){return value==null?"":baseToString(value)}module.exports=toString},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(52),getRawTag=__webpack_require__(393),objectToString=__webpack_require__(394);var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}module.exports=baseGetTag},function(module,exports,__webpack_require__){var baseIsNative=__webpack_require__(411),getValue=__webpack_require__(414);function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}module.exports=getNative},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(152);var defined=__webpack_require__(101);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(79);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports,__webpack_require__){var global=__webpack_require__(23);var hide=__webpack_require__(40);var has=__webpack_require__(83);var SRC=__webpack_require__(113)("src");var TO_STRING="toString";var $toString=Function[TO_STRING];var TPL=(""+$toString).split(TO_STRING);__webpack_require__(42).inspectSource=function(it){return $toString.call(it)};(module.exports=function(O,key,val,safe){var isFunction=typeof val=="function";if(isFunction)has(val,"name")||hide(val,"name",key);if(O[key]===val)return;if(isFunction)has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)));if(O===global){O[key]=val}else if(!safe){delete O[key];hide(O,key,val)}else if(O[key]){O[key]=val}else{hide(O,key,val)}})(Function.prototype,TO_STRING,function toString(){return typeof this=="function"&&this[SRC]||$toString.call(this)})},function(module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},function(module,exports,__webpack_require__){var root=__webpack_require__(26);var Symbol=root.Symbol;module.exports=Symbol},function(module,exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(198),baseKeys=__webpack_require__(452),isArrayLike=__webpack_require__(68);function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}module.exports=keys},function(module,exports,__webpack_require__){var isSymbol=__webpack_require__(91);var INFINITY=1/0;function toKey(value){if(typeof value=="string"||isSymbol(value)){return value}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}module.exports=toKey},function(module,exports,__webpack_require__){"use strict";function isNothing(subject){return typeof subject==="undefined"||subject===null}function isObject(subject){return typeof subject==="object"&&subject!==null}function toArray(sequence){if(Array.isArray(sequence))return sequence;else if(isNothing(sequence))return[];return[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source){sourceKeys=Object.keys(source);for(index=0,length=sourceKeys.length;index<length;index+=1){key=sourceKeys[index];target[key]=source[key]}}return target}function repeat(string,count){var result="",cycle;for(cycle=0;cycle<count;cycle+=1){result+=string}return result}function isNegativeZero(number){return number===0&&Number.NEGATIVE_INFINITY===1/number}module.exports.isNothing=isNothing;module.exports.isObject=isObject;module.exports.toArray=toArray;module.exports.repeat=repeat;module.exports.isNegativeZero=isNegativeZero;module.exports.extend=extend},function(module,exports,__webpack_require__){"use strict";var common=__webpack_require__(55);var YAMLException=__webpack_require__(72);var Type=__webpack_require__(11);function compileList(schema,name,result){var exclude=[];schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result)});schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){if(previousType.tag===currentType.tag&&previousType.kind===currentType.kind){exclude.push(previousIndex)}});result.push(currentType)});return result.filter(function(type,index){return exclude.indexOf(index)===-1})}function compileMap(){var result={scalar:{},sequence:{},mapping:{},fallback:{}},index,length;function collectType(type){result[type.kind][type.tag]=result["fallback"][type.tag]=type}for(index=0,length=arguments.length;index<length;index+=1){arguments[index].forEach(collectType)}return result}function Schema(definition){this.include=definition.include||[];this.implicit=definition.implicit||[];this.explicit=definition.explicit||[];this.implicit.forEach(function(type){if(type.loadKind&&type.loadKind!=="scalar"){throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}});this.compiledImplicit=compileList(this,"implicit",[]);this.compiledExplicit=compileList(this,"explicit",[]);this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}Schema.DEFAULT=null;Schema.create=function createSchema(){var schemas,types;switch(arguments.length){case 1:schemas=Schema.DEFAULT;types=arguments[0];break;case 2:schemas=arguments[0];types=arguments[1];break;default:throw new YAMLException("Wrong number of arguments for Schema.create function")}schemas=common.toArray(schemas);types=common.toArray(types);if(!schemas.every(function(schema){return schema instanceof Schema})){throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.")}if(!types.every(function(type){return type instanceof Type})){throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.")}return new Schema({include:schemas,explicit:types})};module.exports=Schema},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(156);var enumBugKeys=__webpack_require__(109);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var defined=__webpack_require__(101);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(299)(true);__webpack_require__(153)(String,"String",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(64)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(84);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports){function eq(value,other){return value===other||value!==value&&other!==other}module.exports=eq},function(module,exports,__webpack_require__){var isFunction=__webpack_require__(189),isLength=__webpack_require__(132);function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}module.exports=isArrayLike},function(module,exports,__webpack_require__){var isArray=__webpack_require__(20),isKey=__webpack_require__(138),stringToPath=__webpack_require__(460),toString=__webpack_require__(43);function castPath(value,object){if(isArray(value)){return value}return isKey(value,object)?[value]:stringToPath(toString(value))}module.exports=castPath},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;var _from=__webpack_require__(489);var _from2=_interopRequireDefault(_from);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return(0,_from2.default)(arr)}}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=true;exports.default=function(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target}},function(module,exports,__webpack_require__){"use strict";function YAMLException(reason,mark){Error.call(this);this.name="YAMLException";this.reason=reason;this.mark=mark;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(compact){var result=this.name+": ";result+=this.reason||"(unknown reason)";if(!compact&&this.mark){result+=" "+this.mark.toString()}return result};module.exports=YAMLException},function(module,exports,__webpack_require__){"use strict";var Schema=__webpack_require__(56);module.exports=new Schema({include:[__webpack_require__(226)],implicit:[__webpack_require__(516),__webpack_require__(517)],explicit:[__webpack_require__(518),__webpack_require__(520),__webpack_require__(521),__webpack_require__(522)]})},function(module,exports,__webpack_require__){var assignValue=__webpack_require__(145),baseAssignValue=__webpack_require__(228);function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key]}if(isNew){baseAssignValue(object,key,newValue)}else{assignValue(object,key,newValue)}}return object}module.exports=copyObject},function(module,exports){module.exports=require("classnames")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(291),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(292);var global=__webpack_require__(15);var hide=__webpack_require__(38);var Iterators=__webpack_require__(46);var TO_STRING_TAG=__webpack_require__(14)("toStringTag");var DOMIterables=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i];var Collection=global[NAME];var proto=Collection&&Collection.prototype;if(proto&&!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=Iterators.Array}},function(module,exports){module.exports=true},function(module,exports){module.exports=function(it){if(typeof it!="function")throw TypeError(it+" is not a function!");return it}},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){var def=__webpack_require__(29).f;var has=__webpack_require__(39);var TAG=__webpack_require__(14)("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(41);var IE8_DOM_DEFINE=__webpack_require__(303);var toPrimitive=__webpack_require__(304);var dP=Object.defineProperty;exports.f=__webpack_require__(63)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)O[P]=Attributes.value;return O}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(86);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if(typeof it!="function")throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(309);var defined=__webpack_require__(35);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){"use strict";var hide=__webpack_require__(40);var redefine=__webpack_require__(50);var fails=__webpack_require__(64);var defined=__webpack_require__(35);var wks=__webpack_require__(12);module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY);var fns=exec(defined,SYMBOL,""[KEY]);var strfn=fns[0];var rxfn=fns[1];if(fails(function(){var O={};O[SYMBOL]=function(){return 7};return""[KEY](O)!=7})){redefine(String.prototype,KEY,strfn);hide(RegExp.prototype,SYMBOL,length==2?function(string,arg){return rxfn.call(string,this,arg)}:function(string){return rxfn.call(string,this)})}}},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.CLEAR_BY=exports.CLEAR=exports.NEW_AUTH_ERR=exports.NEW_SPEC_ERR_BATCH=exports.NEW_SPEC_ERR=exports.NEW_THROWN_ERR_BATCH=exports.NEW_THROWN_ERR=undefined;exports.newThrownErr=newThrownErr;exports.newThrownErrBatch=newThrownErrBatch;exports.newSpecErr=newSpecErr;exports.newSpecErrBatch=newSpecErrBatch;exports.newAuthErr=newAuthErr;exports.clear=clear;exports.clearBy=clearBy;var _serializeError=__webpack_require__(123);var _serializeError2=_interopRequireDefault(_serializeError);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var NEW_THROWN_ERR=exports.NEW_THROWN_ERR="err_new_thrown_err";var NEW_THROWN_ERR_BATCH=exports.NEW_THROWN_ERR_BATCH="err_new_thrown_err_batch";var NEW_SPEC_ERR=exports.NEW_SPEC_ERR="err_new_spec_err";var NEW_SPEC_ERR_BATCH=exports.NEW_SPEC_ERR_BATCH="err_new_spec_err_batch";var NEW_AUTH_ERR=exports.NEW_AUTH_ERR="err_new_auth_err";var CLEAR=exports.CLEAR="err_clear";var CLEAR_BY=exports.CLEAR_BY="err_clear_by";function newThrownErr(err){return{type:NEW_THROWN_ERR,payload:(0,_serializeError2.default)(err)}}function newThrownErrBatch(errors){return{type:NEW_THROWN_ERR_BATCH,payload:errors}}function newSpecErr(err){return{type:NEW_SPEC_ERR,payload:err}}function newSpecErrBatch(errArray){return{type:NEW_SPEC_ERR_BATCH,payload:errArray}}function newAuthErr(err){return{type:NEW_AUTH_ERR,payload:err}}function clear(){var filter=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return{type:CLEAR,payload:filter}}function clearBy(){var filter=arguments.length>0&&arguments[0]!==undefined?arguments[0]:function(){return true};return{type:CLEAR_BY,payload:filter}}},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(44),isObjectLike=__webpack_require__(32);var symbolTag="[object Symbol]";function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag}module.exports=isSymbol},function(module,exports,__webpack_require__){var getNative=__webpack_require__(45);var nativeCreate=getNative(Object,"create");module.exports=nativeCreate},function(module,exports,__webpack_require__){var listCacheClear=__webpack_require__(419),listCacheDelete=__webpack_require__(420),listCacheGet=__webpack_require__(421),listCacheHas=__webpack_require__(422),listCacheSet=__webpack_require__(423);function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;module.exports=ListCache},function(module,exports,__webpack_require__){var eq=__webpack_require__(67);function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length}}return-1}module.exports=assocIndexOf},function(module,exports,__webpack_require__){var isKeyable=__webpack_require__(425);function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map}module.exports=getMapData},function(module,exports,__webpack_require__){var baseMatches=__webpack_require__(431),baseMatchesProperty=__webpack_require__(459),identity=__webpack_require__(203),isArray=__webpack_require__(20),property=__webpack_require__(465);function baseIteratee(value){if(typeof value=="function"){return value}if(value==null){return identity}if(typeof value=="object"){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value)}return property(value)}module.exports=baseIteratee},function(module,exports){var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value<length)}module.exports=isIndex},function(module,exports,__webpack_require__){var DataView=__webpack_require__(454),Map=__webpack_require__(125),Promise=__webpack_require__(455),Set=__webpack_require__(456),WeakMap=__webpack_require__(457),baseGetTag=__webpack_require__(44),toSource=__webpack_require__(190);var mapTag="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);var getTag=baseGetTag;if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map)!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag||WeakMap&&getTag(new WeakMap)!=weakMapTag){getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}}return result}}module.exports=getTag},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateBeforeExecute=exports.canExecuteScheme=exports.operationScheme=exports.hasHost=exports.operationWithMeta=exports.parameterWithMeta=exports.parameterInclusionSettingFor=exports.parameterWithMetaByIdentity=exports.allowTryItOutFor=exports.mutatedRequestFor=exports.requestFor=exports.responseFor=exports.mutatedRequests=exports.requests=exports.responses=exports.taggedOperations=exports.operationsWithTags=exports.tagDetails=exports.tags=exports.operationsWithRootInherited=exports.schemes=exports.host=exports.basePath=exports.definitions=exports.findDefinition=exports.securityDefinitions=exports.security=exports.produces=exports.consumes=exports.operations=exports.paths=exports.semver=exports.version=exports.externalDocs=exports.info=exports.isOAS3=exports.spec=exports.specJsonWithResolvedSubtrees=exports.specResolvedSubtree=exports.specResolved=exports.specJson=exports.specSource=exports.specStr=exports.url=exports.lastError=undefined;var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _toConsumableArray2=__webpack_require__(70);var _toConsumableArray3=_interopRequireDefault(_toConsumableArray2);exports.getParameter=getParameter;exports.parameterValues=parameterValues;exports.parametersIncludeIn=parametersIncludeIn;exports.parametersIncludeType=parametersIncludeType;exports.contentTypeValues=contentTypeValues;exports.currentProducesFor=currentProducesFor;exports.producesOptionsFor=producesOptionsFor;exports.consumesOptionsFor=consumesOptionsFor;var _reselect=__webpack_require__(37);var _utils=__webpack_require__(8);var _immutable=__webpack_require__(7);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_TAG="default";var OPERATION_METHODS=["get","put","post","delete","options","head","patch","trace"];var state=function state(_state){return _state||(0,_immutable.Map)()};var lastError=exports.lastError=(0,_reselect.createSelector)(state,function(spec){return spec.get("lastError")});var url=exports.url=(0,_reselect.createSelector)(state,function(spec){return spec.get("url")});var specStr=exports.specStr=(0,_reselect.createSelector)(state,function(spec){return spec.get("spec")||""});var specSource=exports.specSource=(0,_reselect.createSelector)(state,function(spec){return spec.get("specSource")||"not-editor"});var specJson=exports.specJson=(0,_reselect.createSelector)(state,function(spec){return spec.get("json",(0,_immutable.Map)())});var specResolved=exports.specResolved=(0,_reselect.createSelector)(state,function(spec){return spec.get("resolved",(0,_immutable.Map)())});var specResolvedSubtree=exports.specResolvedSubtree=function specResolvedSubtree(state,path){return state.getIn(["resolvedSubtrees"].concat((0,_toConsumableArray3.default)(path)),undefined)};var mergerFn=function mergerFn(oldVal,newVal){if(_immutable.Map.isMap(oldVal)&&_immutable.Map.isMap(newVal)){if(newVal.get("$$ref")){return newVal}return(0,_immutable.OrderedMap)().mergeWith(mergerFn,oldVal,newVal)}return newVal};var specJsonWithResolvedSubtrees=exports.specJsonWithResolvedSubtrees=(0,_reselect.createSelector)(state,function(spec){return(0,_immutable.OrderedMap)().mergeWith(mergerFn,spec.get("json"),spec.get("resolvedSubtrees"))});var spec=exports.spec=function spec(state){var res=specJson(state);return res};var isOAS3=exports.isOAS3=(0,_reselect.createSelector)(spec,function(){return false});var info=exports.info=(0,_reselect.createSelector)(spec,function(spec){return returnSelfOrNewMap(spec&&spec.get("info"))});var externalDocs=exports.externalDocs=(0,_reselect.createSelector)(spec,function(spec){return returnSelfOrNewMap(spec&&spec.get("externalDocs"))});var version=exports.version=(0,_reselect.createSelector)(info,function(info){return info&&info.get("version")});var semver=exports.semver=(0,_reselect.createSelector)(version,function(version){return/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(version).slice(1)});var paths=exports.paths=(0,_reselect.createSelector)(specJsonWithResolvedSubtrees,function(spec){return spec.get("paths")});var operations=exports.operations=(0,_reselect.createSelector)(paths,function(paths){if(!paths||paths.size<1)return(0,_immutable.List)();var list=(0,_immutable.List)();if(!paths||!paths.forEach){return(0,_immutable.List)()}paths.forEach(function(path,pathName){if(!path||!path.forEach){return{}}path.forEach(function(operation,method){if(OPERATION_METHODS.indexOf(method)<0){return}list=list.push((0,_immutable.fromJS)({path:pathName,method:method,operation:operation,id:method+"-"+pathName}))})});return list});var consumes=exports.consumes=(0,_reselect.createSelector)(spec,function(spec){return(0,_immutable.Set)(spec.get("consumes"))});var produces=exports.produces=(0,_reselect.createSelector)(spec,function(spec){return(0,_immutable.Set)(spec.get("produces"))});var security=exports.security=(0,_reselect.createSelector)(spec,function(spec){return spec.get("security",(0,_immutable.List)())});var securityDefinitions=exports.securityDefinitions=(0,_reselect.createSelector)(spec,function(spec){return spec.get("securityDefinitions")});var findDefinition=exports.findDefinition=function findDefinition(state,name){var resolvedRes=state.getIn(["resolvedSubtrees","definitions",name],null);var unresolvedRes=state.getIn(["json","definitions",name],null);return resolvedRes||unresolvedRes||null};var definitions=exports.definitions=(0,_reselect.createSelector)(spec,function(spec){var res=spec.get("definitions");return _immutable.Map.isMap(res)?res:(0,_immutable.Map)()});var basePath=exports.basePath=(0,_reselect.createSelector)(spec,function(spec){return spec.get("basePath")});var host=exports.host=(0,_reselect.createSelector)(spec,function(spec){return spec.get("host")});var schemes=exports.schemes=(0,_reselect.createSelector)(spec,function(spec){return spec.get("schemes",(0,_immutable.Map)())});var operationsWithRootInherited=exports.operationsWithRootInherited=(0,_reselect.createSelector)(operations,consumes,produces,function(operations,consumes,produces){return operations.map(function(ops){return ops.update("operation",function(op){if(op){if(!_immutable.Map.isMap(op)){return}return op.withMutations(function(op){if(!op.get("consumes")){op.update("consumes",function(a){return(0,_immutable.Set)(a).merge(consumes)})}if(!op.get("produces")){op.update("produces",function(a){return(0,_immutable.Set)(a).merge(produces)})}return op})}else{return(0,_immutable.Map)()}})})});var tags=exports.tags=(0,_reselect.createSelector)(spec,function(json){var tags=json.get("tags",(0,_immutable.List)());return _immutable.List.isList(tags)?tags.filter(function(tag){return _immutable.Map.isMap(tag)}):(0,_immutable.List)()});var tagDetails=exports.tagDetails=function tagDetails(state,tag){var currentTags=tags(state)||(0,_immutable.List)();return currentTags.filter(_immutable.Map.isMap).find(function(t){return t.get("name")===tag},(0,_immutable.Map)())};var operationsWithTags=exports.operationsWithTags=(0,_reselect.createSelector)(operationsWithRootInherited,tags,function(operations,tags){return operations.reduce(function(taggedMap,op){var tags=(0,_immutable.Set)(op.getIn(["operation","tags"]));if(tags.count()<1)return taggedMap.update(DEFAULT_TAG,(0,_immutable.List)(),function(ar){return ar.push(op)});return tags.reduce(function(res,tag){return res.update(tag,(0,_immutable.List)(),function(ar){return ar.push(op)})},taggedMap)},tags.reduce(function(taggedMap,tag){return taggedMap.set(tag.get("name"),(0,_immutable.List)())},(0,_immutable.OrderedMap)()))});var taggedOperations=exports.taggedOperations=function taggedOperations(state){return function(_ref){var getConfigs=_ref.getConfigs;var _getConfigs=getConfigs(),tagsSorter=_getConfigs.tagsSorter,operationsSorter=_getConfigs.operationsSorter;return operationsWithTags(state).sortBy(function(val,key){return key},function(tagA,tagB){var sortFn=typeof tagsSorter==="function"?tagsSorter:_utils.sorters.tagsSorter[tagsSorter];return!sortFn?null:sortFn(tagA,tagB)}).map(function(ops,tag){var sortFn=typeof operationsSorter==="function"?operationsSorter:_utils.sorters.operationsSorter[operationsSorter];var operations=!sortFn?ops:ops.sort(sortFn);return(0,_immutable.Map)({tagDetails:tagDetails(state,tag),operations:operations})})}};var responses=exports.responses=(0,_reselect.createSelector)(state,function(state){return state.get("responses",(0,_immutable.Map)())});var requests=exports.requests=(0,_reselect.createSelector)(state,function(state){return state.get("requests",(0,_immutable.Map)())});var mutatedRequests=exports.mutatedRequests=(0,_reselect.createSelector)(state,function(state){return state.get("mutatedRequests",(0,_immutable.Map)())});var responseFor=exports.responseFor=function responseFor(state,path,method){return responses(state).getIn([path,method],null)};var requestFor=exports.requestFor=function requestFor(state,path,method){return requests(state).getIn([path,method],null)};var mutatedRequestFor=exports.mutatedRequestFor=function mutatedRequestFor(state,path,method){return mutatedRequests(state).getIn([path,method],null)};var allowTryItOutFor=exports.allowTryItOutFor=function allowTryItOutFor(){return true};var parameterWithMetaByIdentity=exports.parameterWithMetaByIdentity=function parameterWithMetaByIdentity(state,pathMethod,param){var opParams=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.OrderedMap)());var metaParams=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.OrderedMap)());var mergedParams=opParams.map(function(currentParam){var inNameKeyedMeta=metaParams.get(param.get("in")+"."+param.get("name"));var hashKeyedMeta=metaParams.get(param.get("in")+"."+param.get("name")+".hash-"+param.hashCode());return(0,_immutable.OrderedMap)().merge(currentParam,inNameKeyedMeta,hashKeyedMeta)});return mergedParams.find(function(curr){return curr.get("in")===param.get("in")&&curr.get("name")===param.get("name")},(0,_immutable.OrderedMap)())};var parameterInclusionSettingFor=exports.parameterInclusionSettingFor=function parameterInclusionSettingFor(state,pathMethod,paramName,paramIn){var paramKey=paramIn+"."+paramName;return state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameter_inclusions",paramKey]),false)};var parameterWithMeta=exports.parameterWithMeta=function parameterWithMeta(state,pathMethod,paramName,paramIn){var opParams=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.OrderedMap)());var currentParam=opParams.find(function(param){return param.get("in")===paramIn&&param.get("name")===paramName},(0,_immutable.OrderedMap)());return parameterWithMetaByIdentity(state,pathMethod,currentParam)};var operationWithMeta=exports.operationWithMeta=function operationWithMeta(state,path,method){var op=specJsonWithResolvedSubtrees(state).getIn(["paths",path,method],(0,_immutable.OrderedMap)());var meta=state.getIn(["meta","paths",path,method],(0,_immutable.OrderedMap)());var mergedParams=op.get("parameters",(0,_immutable.List)()).map(function(param){return parameterWithMetaByIdentity(state,[path,method],param)});return(0,_immutable.OrderedMap)().merge(op,meta).set("parameters",mergedParams)};function getParameter(state,pathMethod,name,inType){pathMethod=pathMethod||[];var params=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)([]));return params.find(function(p){return _immutable.Map.isMap(p)&&p.get("name")===name&&p.get("in")===inType})||(0,_immutable.Map)()}var hasHost=exports.hasHost=(0,_reselect.createSelector)(spec,function(spec){var host=spec.get("host");return typeof host==="string"&&host.length>0&&host[0]!=="/"});function parameterValues(state,pathMethod,isXml){pathMethod=pathMethod||[];var paramValues=operationWithMeta.apply(undefined,[state].concat((0,_toConsumableArray3.default)(pathMethod))).get("parameters",(0,_immutable.List)());return paramValues.reduce(function(hash,p){var value=isXml&&p.get("in")==="body"?p.get("value_xml"):p.get("value");return hash.set((0,_utils.paramToIdentifier)(p,{allowHashes:false}),value)},(0,_immutable.fromJS)({}))}function parametersIncludeIn(parameters){var inValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";if(_immutable.List.isList(parameters)){return parameters.some(function(p){return _immutable.Map.isMap(p)&&p.get("in")===inValue})}}function parametersIncludeType(parameters){var typeValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";if(_immutable.List.isList(parameters)){return parameters.some(function(p){return _immutable.Map.isMap(p)&&p.get("type")===typeValue})}}function contentTypeValues(state,pathMethod){pathMethod=pathMethod||[];var op=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),(0,_immutable.fromJS)({}));var meta=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod)),(0,_immutable.fromJS)({}));var producesValue=currentProducesFor(state,pathMethod);var parameters=op.get("parameters")||new _immutable.List;var requestContentType=meta.get("consumes_value")?meta.get("consumes_value"):parametersIncludeType(parameters,"file")?"multipart/form-data":parametersIncludeType(parameters,"formData")?"application/x-www-form-urlencoded":undefined;return(0,_immutable.fromJS)({requestContentType:requestContentType,responseContentType:producesValue})}function currentProducesFor(state,pathMethod){pathMethod=pathMethod||[];var operation=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),null);if(operation===null){return}var currentProducesValue=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["produces_value"]),null);var firstProducesArrayItem=operation.getIn(["produces",0],null);return currentProducesValue||firstProducesArrayItem||"application/json"}function producesOptionsFor(state,pathMethod){pathMethod=pathMethod||[];var spec=specJsonWithResolvedSubtrees(state);var operation=spec.getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),null);if(operation===null){return}var _pathMethod=pathMethod,_pathMethod2=(0,_slicedToArray3.default)(_pathMethod,1),path=_pathMethod2[0];var operationProduces=operation.get("produces",null);var pathItemProduces=spec.getIn(["paths",path,"produces"],null);var globalProduces=spec.getIn(["produces"],null);return operationProduces||pathItemProduces||globalProduces}function consumesOptionsFor(state,pathMethod){pathMethod=pathMethod||[];var spec=specJsonWithResolvedSubtrees(state);var operation=spec.getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),null);if(operation===null){return}var _pathMethod3=pathMethod,_pathMethod4=(0,_slicedToArray3.default)(_pathMethod3,1),path=_pathMethod4[0];var operationConsumes=operation.get("consumes",null);var pathItemConsumes=spec.getIn(["paths",path,"consumes"],null);var globalConsumes=spec.getIn(["consumes"],null);return operationConsumes||pathItemConsumes||globalConsumes}var operationScheme=exports.operationScheme=function operationScheme(state,path,method){var url=state.get("url");var matchResult=url.match(/^([a-z][a-z0-9+\-.]*):/);var urlScheme=Array.isArray(matchResult)?matchResult[1]:null;return state.getIn(["scheme",path,method])||state.getIn(["scheme","_defaultScheme"])||urlScheme||""};var canExecuteScheme=exports.canExecuteScheme=function canExecuteScheme(state,path,method){return["http","https"].indexOf(operationScheme(state,path,method))>-1};var validateBeforeExecute=exports.validateBeforeExecute=function validateBeforeExecute(state,pathMethod){pathMethod=pathMethod||[];var paramValues=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)([]));var isValid=true;paramValues.forEach(function(p){var errors=p.get("errors");if(errors&&errors.count()){isValid=false}});return isValid};function returnSelfOrNewMap(obj){return _immutable.Map.isMap(obj)?obj:new _immutable.Map}},function(module,exports,__webpack_require__){"use strict";var Schema=__webpack_require__(56);module.exports=Schema.DEFAULT=new Schema({include:[__webpack_require__(73)],explicit:[__webpack_require__(523),__webpack_require__(524),__webpack_require__(525)]})},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(33);var document=__webpack_require__(15).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(33);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=="function"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var dPs=__webpack_require__(296);var enumBugKeys=__webpack_require__(109);var IE_PROTO=__webpack_require__(107)("IE_PROTO");var Empty=function(){};var PROTOTYPE="prototype";var createDict=function(){var iframe=__webpack_require__(102)("iframe");var i=enumBugKeys.length;var lt="<";var gt=">";var iframeDocument;iframe.style.display="none";__webpack_require__(157).appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+"script"+gt+"document.F=Object"+lt+"/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(106);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(108)("keys");var uid=__webpack_require__(80);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var global=__webpack_require__(15);var SHARED="__core-js_shared__";var store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){var classof=__webpack_require__(111);var ITERATOR=__webpack_require__(14)("iterator");var Iterators=__webpack_require__(46);module.exports=__webpack_require__(10).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){var cof=__webpack_require__(57);var TAG=__webpack_require__(14)("toStringTag");var ARG=cof(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=tryGet(O=Object(it),TAG))=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},function(module,exports,__webpack_require__){var cof=__webpack_require__(62);var TAG=__webpack_require__(12)("toStringTag");var ARG=cof(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=tryGet(O=Object(it),TAG))=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(51);var document=__webpack_require__(23).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var shared=__webpack_require__(159)("keys");var uid=__webpack_require__(113);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var def=__webpack_require__(82).f;var has=__webpack_require__(83);var TAG=__webpack_require__(12)("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(86);function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)}module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports,__webpack_require__){var isRegExp=__webpack_require__(173);var defined=__webpack_require__(35);module.exports=function(that,searchString,NAME){if(isRegExp(searchString))throw TypeError("String#"+NAME+" doesn't accept regex!");return String(defined(that))}},function(module,exports,__webpack_require__){var MATCH=__webpack_require__(12)("match");module.exports=function(KEY){var re=/./;try{"/./"[KEY](re)}catch(e){try{re[MATCH]=false;return!"/./"[KEY](re)}catch(f){}}return true}},function(module,exports,__webpack_require__){exports.f=__webpack_require__(14)},function(module,exports,__webpack_require__){var global=__webpack_require__(15);var core=__webpack_require__(10);var LIBRARY=__webpack_require__(78);var wksExt=__webpack_require__(120);var defineProperty=__webpack_require__(29).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!="_"&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)})}},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports){module.exports=require("serialize-error")},function(module,exports,__webpack_require__){var mapCacheClear=__webpack_require__(408),mapCacheDelete=__webpack_require__(424),mapCacheGet=__webpack_require__(426),mapCacheHas=__webpack_require__(427),mapCacheSet=__webpack_require__(428);function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;module.exports=MapCache},function(module,exports,__webpack_require__){var getNative=__webpack_require__(45),root=__webpack_require__(26);var Map=getNative(root,"Map");module.exports=Map},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(93),stackClear=__webpack_require__(433),stackDelete=__webpack_require__(434),stackGet=__webpack_require__(435),stackHas=__webpack_require__(436),stackSet=__webpack_require__(437);function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;module.exports=Stack},function(module,exports){function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index]}return array}module.exports=arrayPush},function(module,exports,__webpack_require__){var arrayFilter=__webpack_require__(447),stubArray=__webpack_require__(197);var objectProto=Object.prototype;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[]}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)})};module.exports=getSymbols},function(module,exports,__webpack_require__){var baseIsArguments=__webpack_require__(449),isObjectLike=__webpack_require__(32);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},function(module,exports,__webpack_require__){(function(module){var root=__webpack_require__(26),stubFalse=__webpack_require__(450);var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Buffer:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer}).call(exports,__webpack_require__(131)(module))},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,"loaded",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,"id",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports){var MAX_SAFE_INTEGER=9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}module.exports=isLength},function(module,exports){function baseUnary(func){return function(value){return func(value)}}module.exports=baseUnary},function(module,exports,__webpack_require__){(function(module){var freeGlobal=__webpack_require__(182);var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types}return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}).call(exports,__webpack_require__(131)(module))},function(module,exports){var objectProto=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto;return value===proto}module.exports=isPrototype},function(module,exports,__webpack_require__){var baseGet=__webpack_require__(137);function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result}module.exports=get},function(module,exports,__webpack_require__){var castPath=__webpack_require__(69),toKey=__webpack_require__(54);function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])]}return index&&index==length?object:undefined}module.exports=baseGet},function(module,exports,__webpack_require__){var isArray=__webpack_require__(20),isSymbol=__webpack_require__(91);var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(value,object){if(isArray(value)){return false}var type=typeof value;if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol(value)){return true}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object)}module.exports=isKey},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.memoizedSampleFromSchema=exports.memoizedCreateXMLExample=exports.sampleXmlFromSchema=exports.inferSchema=exports.sampleFromSchema=undefined;exports.createXMLExample=createXMLExample;var _utils=__webpack_require__(8);var _xml=__webpack_require__(479);var _xml2=_interopRequireDefault(_xml);var _memoizee=__webpack_require__(483);var _memoizee2=_interopRequireDefault(_memoizee);var _objectAssignDeep=__webpack_require__(180);var _objectAssignDeep2=_interopRequireDefault(_objectAssignDeep);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var primitives={string:function string(){return"string"},string_email:function string_email(){return"[email protected]"},"string_date-time":function string_dateTime(){return(new Date).toISOString()},string_date:function string_date(){return(new Date).toISOString().substring(0,10)},string_uuid:function string_uuid(){return"3fa85f64-5717-4562-b3fc-2c963f66afa6"},string_hostname:function string_hostname(){return"example.com"},string_ipv4:function string_ipv4(){return"198.51.100.42"},string_ipv6:function string_ipv6(){return"2001:0db8:5b96:0000:0000:426f:8e17:642a"},number:function number(){return 0},number_float:function number_float(){return 0},integer:function integer(){return 0},boolean:function boolean(schema){return typeof schema.default==="boolean"?schema.default:true}};var primitive=function primitive(schema){schema=(0,_utils.objectify)(schema);var _schema=schema,type=_schema.type,format=_schema.format;var fn=primitives[type+"_"+format]||primitives[type];if((0,_utils.isFunc)(fn))return fn(schema);return"Unknown Type: "+schema.type};var sampleFromSchema=exports.sampleFromSchema=function sampleFromSchema(schema){var config=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _objectify=(0,_utils.objectify)(schema),type=_objectify.type,example=_objectify.example,properties=_objectify.properties,additionalProperties=_objectify.additionalProperties,items=_objectify.items;var includeReadOnly=config.includeReadOnly,includeWriteOnly=config.includeWriteOnly;if(example!==undefined){return(0,_utils.deeplyStripKey)(example,"$$ref",function(val){return typeof val==="string"&&val.indexOf("#")>-1})}if(!type){if(properties){type="object"}else if(items){type="array"}else{return}}if(type==="object"){var props=(0,_utils.objectify)(properties);var obj={};for(var name in props){if(props[name]&&props[name].deprecated){continue}if(props[name]&&props[name].readOnly&&!includeReadOnly){continue}if(props[name]&&props[name].writeOnly&&!includeWriteOnly){continue}obj[name]=sampleFromSchema(props[name],config)}if(additionalProperties===true){obj.additionalProp1={}}else if(additionalProperties){var additionalProps=(0,_utils.objectify)(additionalProperties);var additionalPropVal=sampleFromSchema(additionalProps,config);for(var i=1;i<4;i++){obj["additionalProp"+i]=additionalPropVal}}return obj}if(type==="array"){if(Array.isArray(items.anyOf)){return items.anyOf.map(function(i){return sampleFromSchema(i,config)})}if(Array.isArray(items.oneOf)){return items.oneOf.map(function(i){return sampleFromSchema(i,config)})}return[sampleFromSchema(items,config)]}if(schema["enum"]){if(schema["default"])return schema["default"];return(0,_utils.normalizeArray)(schema["enum"])[0]}if(type==="file"){return}return primitive(schema)};var inferSchema=exports.inferSchema=function inferSchema(thing){if(thing.schema)thing=thing.schema;if(thing.properties){thing.type="object"}return thing};var sampleXmlFromSchema=exports.sampleXmlFromSchema=function sampleXmlFromSchema(schema){var config=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var objectifySchema=(0,_objectAssignDeep2.default)({},(0,_utils.objectify)(schema));var type=objectifySchema.type,properties=objectifySchema.properties,additionalProperties=objectifySchema.additionalProperties,items=objectifySchema.items,example=objectifySchema.example;var includeReadOnly=config.includeReadOnly,includeWriteOnly=config.includeWriteOnly;var defaultValue=objectifySchema.default;var res={};var _attr={};var xml=schema.xml;var name=xml.name,prefix=xml.prefix,namespace=xml.namespace;var enumValue=objectifySchema.enum;var displayName=void 0,value=void 0;if(!type){if(properties||additionalProperties){type="object"}else if(items){type="array"}else{return}}name=name||"notagname";displayName=(prefix?prefix+":":"")+name;if(namespace){var namespacePrefix=prefix?"xmlns:"+prefix:"xmlns";_attr[namespacePrefix]=namespace}if(type==="array"){if(items){items.xml=items.xml||xml||{};items.xml.name=items.xml.name||xml.name;if(xml.wrapped){res[displayName]=[];if(Array.isArray(example)){example.forEach(function(v){items.example=v;res[displayName].push(sampleXmlFromSchema(items,config))})}else if(Array.isArray(defaultValue)){defaultValue.forEach(function(v){items.default=v;res[displayName].push(sampleXmlFromSchema(items,config))})}else{res[displayName]=[sampleXmlFromSchema(items,config)]}if(_attr){res[displayName].push({_attr:_attr})}return res}var _res=[];if(Array.isArray(example)){example.forEach(function(v){items.example=v;_res.push(sampleXmlFromSchema(items,config))});return _res}else if(Array.isArray(defaultValue)){defaultValue.forEach(function(v){items.default=v;_res.push(sampleXmlFromSchema(items,config))});return _res}return sampleXmlFromSchema(items,config)}}if(type==="object"){var props=(0,_utils.objectify)(properties);res[displayName]=[];example=example||{};for(var propName in props){if(!props.hasOwnProperty(propName)){continue}if(props[propName].readOnly&&!includeReadOnly){continue}if(props[propName].writeOnly&&!includeWriteOnly){continue}props[propName].xml=props[propName].xml||{};if(props[propName].xml.attribute){var enumAttrVal=Array.isArray(props[propName].enum)&&props[propName].enum[0];var attrExample=props[propName].example;var attrDefault=props[propName].default;_attr[props[propName].xml.name||propName]=attrExample!==undefined&&attrExample||example[propName]!==undefined&&example[propName]||attrDefault!==undefined&&attrDefault||enumAttrVal||primitive(props[propName])}else{props[propName].xml.name=props[propName].xml.name||propName;if(props[propName].example===undefined&&example[propName]!==undefined){props[propName].example=example[propName]}var t=sampleXmlFromSchema(props[propName]);if(Array.isArray(t)){res[displayName]=res[displayName].concat(t)}else{res[displayName].push(t)}}}if(additionalProperties===true){res[displayName].push({additionalProp:"Anything can be here"})}else if(additionalProperties){res[displayName].push({additionalProp:primitive(additionalProperties)})}if(_attr){res[displayName].push({_attr:_attr})}return res}if(example!==undefined){value=example}else if(defaultValue!==undefined){value=defaultValue}else if(Array.isArray(enumValue)){value=enumValue[0]}else{value=primitive(schema)}res[displayName]=_attr?[{_attr:_attr},value]:value;return res};function createXMLExample(schema,config){var json=sampleXmlFromSchema(schema,config);if(!json){return}return(0,_xml2.default)(json,{declaration:true,indent:"\t"})}var memoizedCreateXMLExample=exports.memoizedCreateXMLExample=(0,_memoizee2.default)(createXMLExample);var memoizedSampleFromSchema=exports.memoizedSampleFromSchema=(0,_memoizee2.default)(sampleFromSchema)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SHOW=exports.UPDATE_MODE=exports.UPDATE_FILTER=exports.UPDATE_LAYOUT=undefined;exports.updateLayout=updateLayout;exports.updateFilter=updateFilter;exports.show=show;exports.changeMode=changeMode;var _utils=__webpack_require__(8);var UPDATE_LAYOUT=exports.UPDATE_LAYOUT="layout_update_layout";var UPDATE_FILTER=exports.UPDATE_FILTER="layout_update_filter";var UPDATE_MODE=exports.UPDATE_MODE="layout_update_mode";var SHOW=exports.SHOW="layout_show";function updateLayout(layout){return{type:UPDATE_LAYOUT,payload:layout}}function updateFilter(filter){return{type:UPDATE_FILTER,payload:filter}}function show(thing){var shown=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;thing=(0,_utils.normalizeArray)(thing);return{type:SHOW,payload:{thing:thing,shown:shown}}}function changeMode(thing){var mode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";thing=(0,_utils.normalizeArray)(thing);return{type:UPDATE_MODE,payload:{thing:thing,mode:mode}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.execute=exports.executeRequest=exports.logRequest=exports.setMutatedRequest=exports.setRequest=exports.setResponse=exports.updateEmptyParamInclusion=exports.validateParams=exports.invalidateResolvedSubtreeCache=exports.updateResolvedSubtree=exports.requestResolvedSubtree=exports.resolveSpec=exports.parseToJson=exports.SET_SCHEME=exports.UPDATE_RESOLVED_SUBTREE=exports.UPDATE_RESOLVED=exports.UPDATE_OPERATION_META_VALUE=exports.CLEAR_VALIDATE_PARAMS=exports.CLEAR_REQUEST=exports.CLEAR_RESPONSE=exports.LOG_REQUEST=exports.SET_MUTATED_REQUEST=exports.SET_REQUEST=exports.SET_RESPONSE=exports.VALIDATE_PARAMS=exports.UPDATE_EMPTY_PARAM_INCLUSION=exports.UPDATE_PARAM=exports.UPDATE_JSON=exports.UPDATE_URL=exports.UPDATE_SPEC=undefined;var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _objectWithoutProperties2=__webpack_require__(71);var _objectWithoutProperties3=_interopRequireDefault(_objectWithoutProperties2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _promise=__webpack_require__(220);var _promise2=_interopRequireDefault(_promise);var _regenerator=__webpack_require__(503);var _regenerator2=_interopRequireDefault(_regenerator);var _asyncToGenerator2=__webpack_require__(505);var _asyncToGenerator3=_interopRequireDefault(_asyncToGenerator2);var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);exports.updateSpec=updateSpec;exports.updateResolved=updateResolved;exports.updateUrl=updateUrl;exports.updateJsonSpec=updateJsonSpec;exports.changeParam=changeParam;exports.changeParamByIdentity=changeParamByIdentity;exports.clearValidateParams=clearValidateParams;exports.changeConsumesValue=changeConsumesValue;exports.changeProducesValue=changeProducesValue;exports.clearResponse=clearResponse;exports.clearRequest=clearRequest;exports.setScheme=setScheme;var _jsYaml=__webpack_require__(225);var _jsYaml2=_interopRequireDefault(_jsYaml);var _immutable=__webpack_require__(7);var _urlParse=__webpack_require__(144);var _urlParse2=_interopRequireDefault(_urlParse);var _serializeError=__webpack_require__(123);var _serializeError2=_interopRequireDefault(_serializeError);var _isString=__webpack_require__(527);var _isString2=_interopRequireDefault(_isString);var _debounce=__webpack_require__(528);var _debounce2=_interopRequireDefault(_debounce);var _set=__webpack_require__(530);var _set2=_interopRequireDefault(_set);var _utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var UPDATE_SPEC=exports.UPDATE_SPEC="spec_update_spec";var UPDATE_URL=exports.UPDATE_URL="spec_update_url";var UPDATE_JSON=exports.UPDATE_JSON="spec_update_json";var UPDATE_PARAM=exports.UPDATE_PARAM="spec_update_param";var UPDATE_EMPTY_PARAM_INCLUSION=exports.UPDATE_EMPTY_PARAM_INCLUSION="spec_update_empty_param_inclusion";var VALIDATE_PARAMS=exports.VALIDATE_PARAMS="spec_validate_param";var SET_RESPONSE=exports.SET_RESPONSE="spec_set_response";var SET_REQUEST=exports.SET_REQUEST="spec_set_request";var SET_MUTATED_REQUEST=exports.SET_MUTATED_REQUEST="spec_set_mutated_request";var LOG_REQUEST=exports.LOG_REQUEST="spec_log_request";var CLEAR_RESPONSE=exports.CLEAR_RESPONSE="spec_clear_response";var CLEAR_REQUEST=exports.CLEAR_REQUEST="spec_clear_request";var CLEAR_VALIDATE_PARAMS=exports.CLEAR_VALIDATE_PARAMS="spec_clear_validate_param";var UPDATE_OPERATION_META_VALUE=exports.UPDATE_OPERATION_META_VALUE="spec_update_operation_meta_value";var UPDATE_RESOLVED=exports.UPDATE_RESOLVED="spec_update_resolved";var UPDATE_RESOLVED_SUBTREE=exports.UPDATE_RESOLVED_SUBTREE="spec_update_resolved_subtree";var SET_SCHEME=exports.SET_SCHEME="set_scheme";var toStr=function toStr(str){return(0,_isString2.default)(str)?str:""};function updateSpec(spec){var cleanSpec=toStr(spec).replace(/\t/g," ");if(typeof spec==="string"){return{type:UPDATE_SPEC,payload:cleanSpec}}}function updateResolved(spec){return{type:UPDATE_RESOLVED,payload:spec}}function updateUrl(url){return{type:UPDATE_URL,payload:url}}function updateJsonSpec(json){return{type:UPDATE_JSON,payload:json}}var parseToJson=exports.parseToJson=function parseToJson(str){return function(_ref){var specActions=_ref.specActions,specSelectors=_ref.specSelectors,errActions=_ref.errActions;var specStr=specSelectors.specStr;var json=null;try{str=str||specStr();errActions.clear({source:"parser"});json=_jsYaml2.default.safeLoad(str)}catch(e){console.error(e);return errActions.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:undefined})}if(json&&(typeof json==="undefined"?"undefined":(0,_typeof3.default)(json))==="object"){return specActions.updateJsonSpec(json)}return{}}};var hasWarnedAboutResolveSpecDeprecation=false;var resolveSpec=exports.resolveSpec=function resolveSpec(json,url){return function(_ref2){var specActions=_ref2.specActions,specSelectors=_ref2.specSelectors,errActions=_ref2.errActions,_ref2$fn=_ref2.fn,fetch=_ref2$fn.fetch,resolve=_ref2$fn.resolve,_ref2$fn$AST=_ref2$fn.AST,AST=_ref2$fn$AST===undefined?{}:_ref2$fn$AST,getConfigs=_ref2.getConfigs;if(!hasWarnedAboutResolveSpecDeprecation){console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!");hasWarnedAboutResolveSpecDeprecation=true}var _getConfigs=getConfigs(),modelPropertyMacro=_getConfigs.modelPropertyMacro,parameterMacro=_getConfigs.parameterMacro,requestInterceptor=_getConfigs.requestInterceptor,responseInterceptor=_getConfigs.responseInterceptor;if(typeof json==="undefined"){json=specSelectors.specJson()}if(typeof url==="undefined"){url=specSelectors.url()}var getLineNumberForPath=AST.getLineNumberForPath?AST.getLineNumberForPath:function(){return undefined};var specStr=specSelectors.specStr();return resolve({fetch:fetch,spec:json,baseDoc:url,modelPropertyMacro:modelPropertyMacro,parameterMacro:parameterMacro,requestInterceptor:requestInterceptor,responseInterceptor:responseInterceptor}).then(function(_ref3){var spec=_ref3.spec,errors=_ref3.errors;errActions.clear({type:"thrown"});if(Array.isArray(errors)&&errors.length>0){var preparedErrors=errors.map(function(err){console.error(err);err.line=err.fullPath?getLineNumberForPath(specStr,err.fullPath):null;err.path=err.fullPath?err.fullPath.join("."):null;err.level="error";err.type="thrown";err.source="resolver";Object.defineProperty(err,"message",{enumerable:true,value:err.message});return err});errActions.newThrownErrBatch(preparedErrors)}return specActions.updateResolved(spec)})}};var requestBatch=[];var debResolveSubtrees=(0,_debounce2.default)((0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(){var system,errActions,errSelectors,_system$fn,resolveSubtree,_system$fn$AST,AST,specSelectors,specActions,getLineNumberForPath,specStr,_system$getConfigs,modelPropertyMacro,parameterMacro,requestInterceptor,responseInterceptor,batchResult;return _regenerator2.default.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:system=requestBatch.system;if(system){_context2.next=4;break}console.error("debResolveSubtrees: don't have a system to operate on, aborting.");return _context2.abrupt("return");case 4:errActions=system.errActions,errSelectors=system.errSelectors,_system$fn=system.fn,resolveSubtree=_system$fn.resolveSubtree,_system$fn$AST=_system$fn.AST,AST=_system$fn$AST===undefined?{}:_system$fn$AST,specSelectors=system.specSelectors,specActions=system.specActions;if(resolveSubtree){_context2.next=8;break}console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");return _context2.abrupt("return");case 8:getLineNumberForPath=AST.getLineNumberForPath?AST.getLineNumberForPath:function(){return undefined};specStr=specSelectors.specStr();_system$getConfigs=system.getConfigs(),modelPropertyMacro=_system$getConfigs.modelPropertyMacro,parameterMacro=_system$getConfigs.parameterMacro,requestInterceptor=_system$getConfigs.requestInterceptor,responseInterceptor=_system$getConfigs.responseInterceptor;_context2.prev=11;_context2.next=14;return requestBatch.reduce(function(){var _ref5=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(prev,path){var _ref6,resultMap,specWithCurrentSubtrees,_ref7,errors,spec,preparedErrors;return _regenerator2.default.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.next=2;return prev;case 2:_ref6=_context.sent;resultMap=_ref6.resultMap;specWithCurrentSubtrees=_ref6.specWithCurrentSubtrees;_context.next=7;return resolveSubtree(specWithCurrentSubtrees,path,{baseDoc:specSelectors.url(),modelPropertyMacro:modelPropertyMacro,parameterMacro:parameterMacro,requestInterceptor:requestInterceptor,responseInterceptor:responseInterceptor});case 7:_ref7=_context.sent;errors=_ref7.errors;spec=_ref7.spec;if(errSelectors.allErrors().size){errActions.clearBy(function(err){return err.get("type")!=="thrown"||err.get("source")!=="resolver"||!err.get("fullPath").every(function(key,i){return key===path[i]||path[i]===undefined})})}if(Array.isArray(errors)&&errors.length>0){preparedErrors=errors.map(function(err){err.line=err.fullPath?getLineNumberForPath(specStr,err.fullPath):null;err.path=err.fullPath?err.fullPath.join("."):null;err.level="error";err.type="thrown";err.source="resolver";Object.defineProperty(err,"message",{enumerable:true,value:err.message});return err});errActions.newThrownErrBatch(preparedErrors)}(0,_set2.default)(resultMap,path,spec);(0,_set2.default)(specWithCurrentSubtrees,path,spec);return _context.abrupt("return",{resultMap:resultMap,specWithCurrentSubtrees:specWithCurrentSubtrees});case 15:case"end":return _context.stop()}}},_callee,undefined)}));return function(_x,_x2){return _ref5.apply(this,arguments)}}(),_promise2.default.resolve({resultMap:(specSelectors.specResolvedSubtree([])||(0,_immutable.Map)()).toJS(),specWithCurrentSubtrees:specSelectors.specJson().toJS()}));case 14:batchResult=_context2.sent;delete requestBatch.system;requestBatch=[];_context2.next=22;break;case 19:_context2.prev=19;_context2.t0=_context2["catch"](11);console.error(_context2.t0);case 22:specActions.updateResolvedSubtree([],batchResult.resultMap);case 23:case"end":return _context2.stop()}}},_callee2,undefined,[[11,19]])})),35);var requestResolvedSubtree=exports.requestResolvedSubtree=function requestResolvedSubtree(path){return function(system){var isPathAlreadyBatched=requestBatch.map(function(arr){return arr.join("@@")}).indexOf(path.join("@@"))>-1;if(isPathAlreadyBatched){return}requestBatch.push(path);requestBatch.system=system;debResolveSubtrees()}};function changeParam(path,paramName,paramIn,value,isXml){return{type:UPDATE_PARAM,payload:{path:path,value:value,paramName:paramName,paramIn:paramIn,isXml:isXml}}}function changeParamByIdentity(pathMethod,param,value,isXml){return{type:UPDATE_PARAM,payload:{path:pathMethod,param:param,value:value,isXml:isXml}}}var updateResolvedSubtree=exports.updateResolvedSubtree=function updateResolvedSubtree(path,value){return{type:UPDATE_RESOLVED_SUBTREE,payload:{path:path,value:value}}};var invalidateResolvedSubtreeCache=exports.invalidateResolvedSubtreeCache=function invalidateResolvedSubtreeCache(){return{type:UPDATE_RESOLVED_SUBTREE,payload:{path:[],value:(0,_immutable.Map)()}}};var validateParams=exports.validateParams=function validateParams(payload,isOAS3){return{type:VALIDATE_PARAMS,payload:{pathMethod:payload,isOAS3:isOAS3}}};var updateEmptyParamInclusion=exports.updateEmptyParamInclusion=function updateEmptyParamInclusion(pathMethod,paramName,paramIn,includeEmptyValue){return{type:UPDATE_EMPTY_PARAM_INCLUSION,payload:{pathMethod:pathMethod,paramName:paramName,paramIn:paramIn,includeEmptyValue:includeEmptyValue}}};function clearValidateParams(payload){return{type:CLEAR_VALIDATE_PARAMS,payload:{pathMethod:payload}}}function changeConsumesValue(path,value){return{type:UPDATE_OPERATION_META_VALUE,payload:{path:path,value:value,key:"consumes_value"}}}function changeProducesValue(path,value){return{type:UPDATE_OPERATION_META_VALUE,payload:{path:path,value:value,key:"produces_value"}}}var setResponse=exports.setResponse=function setResponse(path,method,res){return{payload:{path:path,method:method,res:res},type:SET_RESPONSE}};var setRequest=exports.setRequest=function setRequest(path,method,req){return{payload:{path:path,method:method,req:req},type:SET_REQUEST}};var setMutatedRequest=exports.setMutatedRequest=function setMutatedRequest(path,method,req){return{payload:{path:path,method:method,req:req},type:SET_MUTATED_REQUEST}};var logRequest=exports.logRequest=function logRequest(req){return{payload:req,type:LOG_REQUEST}};var executeRequest=exports.executeRequest=function executeRequest(req){return function(_ref8){var fn=_ref8.fn,specActions=_ref8.specActions,specSelectors=_ref8.specSelectors,getConfigs=_ref8.getConfigs,oas3Selectors=_ref8.oas3Selectors;var pathName=req.pathName,method=req.method,operation=req.operation;var _getConfigs2=getConfigs(),requestInterceptor=_getConfigs2.requestInterceptor,responseInterceptor=_getConfigs2.responseInterceptor;var op=operation.toJS();if(operation&&operation.get("parameters")){operation.get("parameters").filter(function(param){return param&&param.get("allowEmptyValue")===true}).forEach(function(param){if(specSelectors.parameterInclusionSettingFor([pathName,method],param.get("name"),param.get("in"))){req.parameters=req.parameters||{};var paramValue=(0,_utils.paramToValue)(param,req.parameters);if(!paramValue||paramValue&&paramValue.size===0){req.parameters[param.get("name")]=""}}})}req.contextUrl=(0,_urlParse2.default)(specSelectors.url()).toString();if(op&&op.operationId){req.operationId=op.operationId}else if(op&&pathName&&method){req.operationId=fn.opId(op,pathName,method)}if(specSelectors.isOAS3()){var namespace=pathName+":"+method;req.server=oas3Selectors.selectedServer(namespace)||oas3Selectors.selectedServer();var namespaceVariables=oas3Selectors.serverVariables({server:req.server,namespace:namespace}).toJS();var globalVariables=oas3Selectors.serverVariables({server:req.server}).toJS();req.serverVariables=(0,_keys2.default)(namespaceVariables).length?namespaceVariables:globalVariables;req.requestContentType=oas3Selectors.requestContentType(pathName,method);req.responseContentType=oas3Selectors.responseContentType(pathName,method)||"*/*";var requestBody=oas3Selectors.requestBodyValue(pathName,method);if((0,_utils.isJSONObject)(requestBody)){req.requestBody=JSON.parse(requestBody)}else if(requestBody&&requestBody.toJS){req.requestBody=requestBody.toJS()}else{req.requestBody=requestBody}}var parsedRequest=(0,_assign2.default)({},req);parsedRequest=fn.buildRequest(parsedRequest);specActions.setRequest(req.pathName,req.method,parsedRequest);var requestInterceptorWrapper=function requestInterceptorWrapper(r){var mutatedRequest=requestInterceptor.apply(this,[r]);var parsedMutatedRequest=(0,_assign2.default)({},mutatedRequest);specActions.setMutatedRequest(req.pathName,req.method,parsedMutatedRequest);return mutatedRequest};req.requestInterceptor=requestInterceptorWrapper;req.responseInterceptor=responseInterceptor;var startTime=Date.now();return fn.execute(req).then(function(res){res.duration=Date.now()-startTime;specActions.setResponse(req.pathName,req.method,res)}).catch(function(err){return specActions.setResponse(req.pathName,req.method,{error:true,err:(0,_serializeError2.default)(err)})})}};var execute=function execute(){var _ref9=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var path=_ref9.path,method=_ref9.method,extras=(0,_objectWithoutProperties3.default)(_ref9,["path","method"]);return function(system){var fetch=system.fn.fetch,specSelectors=system.specSelectors,specActions=system.specActions;var spec=specSelectors.specJsonWithResolvedSubtrees().toJS();var scheme=specSelectors.operationScheme(path,method);var _specSelectors$conten=specSelectors.contentTypeValues([path,method]).toJS(),requestContentType=_specSelectors$conten.requestContentType,responseContentType=_specSelectors$conten.responseContentType;var isXml=/xml/i.test(requestContentType);var parameters=specSelectors.parameterValues([path,method],isXml).toJS();return specActions.executeRequest((0,_extends3.default)({},extras,{fetch:fetch,spec:spec,pathName:path,method:method,parameters:parameters,requestContentType:requestContentType,scheme:scheme,responseContentType:responseContentType}))}};exports.execute=execute;function clearResponse(path,method){return{type:CLEAR_RESPONSE,payload:{path:path,method:method}}}function clearRequest(path,method){return{type:CLEAR_REQUEST,payload:{path:path,method:method}}}function setScheme(scheme,path,method){return{type:SET_SCHEME,payload:{scheme:scheme,path:path,method:method}}}},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(79);function PromiseCapability(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)}module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports,__webpack_require__){"use strict";var Schema=__webpack_require__(56);module.exports=new Schema({explicit:[__webpack_require__(509),__webpack_require__(510),__webpack_require__(511)]})},function(module,exports){module.exports=require("url-parse")},function(module,exports,__webpack_require__){var baseAssignValue=__webpack_require__(228),eq=__webpack_require__(67);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value)}}module.exports=assignValue},function(module,exports,__webpack_require__){var overArg=__webpack_require__(200);var getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype},function(module,exports,__webpack_require__){var Uint8Array=__webpack_require__(194);function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result}module.exports=cloneArrayBuffer},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.authorizeRequest=exports.authorizeAccessCodeWithBasicAuthentication=exports.authorizeAccessCodeWithFormParams=exports.authorizeApplication=exports.authorizePassword=exports.preAuthorizeImplicit=exports.CONFIGURE_AUTH=exports.VALIDATE=exports.AUTHORIZE_OAUTH2=exports.PRE_AUTHORIZE_OAUTH2=exports.LOGOUT=exports.AUTHORIZE=exports.SHOW_AUTH_POPUP=undefined;var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _stringify=__webpack_require__(30);var _stringify2=_interopRequireDefault(_stringify);exports.showDefinitions=showDefinitions;exports.authorize=authorize;exports.logout=logout;exports.authorizeOauth2=authorizeOauth2;exports.configureAuth=configureAuth;var _urlParse=__webpack_require__(144);var _urlParse2=_interopRequireDefault(_urlParse);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);var _utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var SHOW_AUTH_POPUP=exports.SHOW_AUTH_POPUP="show_popup";var AUTHORIZE=exports.AUTHORIZE="authorize";var LOGOUT=exports.LOGOUT="logout";var PRE_AUTHORIZE_OAUTH2=exports.PRE_AUTHORIZE_OAUTH2="pre_authorize_oauth2";var AUTHORIZE_OAUTH2=exports.AUTHORIZE_OAUTH2="authorize_oauth2";var VALIDATE=exports.VALIDATE="validate";var CONFIGURE_AUTH=exports.CONFIGURE_AUTH="configure_auth";var scopeSeparator=" ";function showDefinitions(payload){return{type:SHOW_AUTH_POPUP,payload:payload}}function authorize(payload){return{type:AUTHORIZE,payload:payload}}function logout(payload){return{type:LOGOUT,payload:payload}}var preAuthorizeImplicit=exports.preAuthorizeImplicit=function preAuthorizeImplicit(payload){return function(_ref){var authActions=_ref.authActions,errActions=_ref.errActions;var auth=payload.auth,token=payload.token,isValid=payload.isValid;var schema=auth.schema,name=auth.name;var flow=schema.get("flow");delete _window2.default.swaggerUIRedirectOauth2;if(flow!=="accessCode"&&!isValid){errActions.newAuthErr({authId:name,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"})}if(token.error){errActions.newAuthErr({authId:name,source:"auth",level:"error",message:(0,_stringify2.default)(token)});return}authActions.authorizeOauth2({auth:auth,token:token})}};function authorizeOauth2(payload){return{type:AUTHORIZE_OAUTH2,payload:payload}}var authorizePassword=exports.authorizePassword=function authorizePassword(auth){return function(_ref2){var authActions=_ref2.authActions;var schema=auth.schema,name=auth.name,username=auth.username,password=auth.password,passwordType=auth.passwordType,clientId=auth.clientId,clientSecret=auth.clientSecret;var form={grant_type:"password",scope:auth.scopes.join(scopeSeparator),username:username,password:password};var query={};var headers={};switch(passwordType){case"request-body":setClientIdAndSecret(form,clientId,clientSecret);break;case"basic":headers.Authorization="Basic "+(0,_utils.btoa)(clientId+":"+clientSecret);break;default:console.warn("Warning: invalid passwordType "+passwordType+" was passed, not including client id and secret")}return authActions.authorizeRequest({body:(0,_utils.buildFormData)(form),url:schema.get("tokenUrl"),name:name,headers:headers,query:query,auth:auth})}};function setClientIdAndSecret(target,clientId,clientSecret){if(clientId){(0,_assign2.default)(target,{client_id:clientId})}if(clientSecret){(0,_assign2.default)(target,{client_secret:clientSecret})}}var authorizeApplication=exports.authorizeApplication=function authorizeApplication(auth){return function(_ref3){var authActions=_ref3.authActions;var schema=auth.schema,scopes=auth.scopes,name=auth.name,clientId=auth.clientId,clientSecret=auth.clientSecret;var headers={Authorization:"Basic "+(0,_utils.btoa)(clientId+":"+clientSecret)};var form={grant_type:"client_credentials",scope:scopes.join(scopeSeparator)};return authActions.authorizeRequest({body:(0,_utils.buildFormData)(form),name:name,url:schema.get("tokenUrl"),auth:auth,headers:headers})}};var authorizeAccessCodeWithFormParams=exports.authorizeAccessCodeWithFormParams=function authorizeAccessCodeWithFormParams(_ref4){var auth=_ref4.auth,redirectUrl=_ref4.redirectUrl;return function(_ref5){var authActions=_ref5.authActions;var schema=auth.schema,name=auth.name,clientId=auth.clientId,clientSecret=auth.clientSecret;var form={grant_type:"authorization_code",code:auth.code,client_id:clientId,client_secret:clientSecret,redirect_uri:redirectUrl};return authActions.authorizeRequest({body:(0,_utils.buildFormData)(form),name:name,url:schema.get("tokenUrl"),auth:auth})}};var authorizeAccessCodeWithBasicAuthentication=exports.authorizeAccessCodeWithBasicAuthentication=function authorizeAccessCodeWithBasicAuthentication(_ref6){var auth=_ref6.auth,redirectUrl=_ref6.redirectUrl;return function(_ref7){var authActions=_ref7.authActions;var schema=auth.schema,name=auth.name,clientId=auth.clientId,clientSecret=auth.clientSecret;var headers={Authorization:"Basic "+(0,_utils.btoa)(clientId+":"+clientSecret)};var form={grant_type:"authorization_code",code:auth.code,client_id:clientId,redirect_uri:redirectUrl};return authActions.authorizeRequest({body:(0,_utils.buildFormData)(form),name:name,url:schema.get("tokenUrl"),auth:auth,headers:headers})}};var authorizeRequest=exports.authorizeRequest=function authorizeRequest(data){return function(_ref8){var fn=_ref8.fn,getConfigs=_ref8.getConfigs,authActions=_ref8.authActions,errActions=_ref8.errActions,oas3Selectors=_ref8.oas3Selectors,specSelectors=_ref8.specSelectors,authSelectors=_ref8.authSelectors;var body=data.body,_data$query=data.query,query=_data$query===undefined?{}:_data$query,_data$headers=data.headers,headers=_data$headers===undefined?{}:_data$headers,name=data.name,url=data.url,auth=data.auth;var _ref9=authSelectors.getConfigs()||{},additionalQueryStringParams=_ref9.additionalQueryStringParams;var parsedUrl=void 0;if(specSelectors.isOAS3()){parsedUrl=(0,_urlParse2.default)(url,oas3Selectors.selectedServer(),true)}else{parsedUrl=(0,_urlParse2.default)(url,specSelectors.url(),true)}if((typeof additionalQueryStringParams==="undefined"?"undefined":(0,_typeof3.default)(additionalQueryStringParams))==="object"){parsedUrl.query=(0,_assign2.default)({},parsedUrl.query,additionalQueryStringParams)}var fetchUrl=parsedUrl.toString();var _headers=(0,_assign2.default)({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},headers);fn.fetch({url:fetchUrl,method:"post",headers:_headers,query:query,body:body,requestInterceptor:getConfigs().requestInterceptor,responseInterceptor:getConfigs().responseInterceptor}).then(function(response){var token=JSON.parse(response.data);var error=token&&(token.error||"");var parseError=token&&(token.parseError||"");if(!response.ok){errActions.newAuthErr({authId:name,level:"error",source:"auth",message:response.statusText});return}if(error||parseError){errActions.newAuthErr({authId:name,level:"error",source:"auth",message:(0,_stringify2.default)(token)});return}authActions.authorizeOauth2({auth:auth,token:token})}).catch(function(e){var err=new Error(e);var message=err.message;if(e.response&&e.response.data){var errData=e.response.data;try{var jsonResponse=typeof errData==="string"?JSON.parse(errData):errData;if(jsonResponse.error)message+=", error: "+jsonResponse.error;if(jsonResponse.error_description)message+=", description: "+jsonResponse.error_description}catch(jsonError){}}errActions.newAuthErr({authId:name,level:"error",source:"auth",message:message})})}};function configureAuth(payload){return{type:CONFIGURE_AUTH,payload:payload}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.parseYamlConfig=undefined;var _jsYaml=__webpack_require__(225);var _jsYaml2=_interopRequireDefault(_jsYaml);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var parseYamlConfig=exports.parseYamlConfig=function parseYamlConfig(yaml,system){try{return _jsYaml2.default.safeLoad(yaml)}catch(e){if(system){system.errActions.newThrownErr(new Error(e))}return{}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.loaded=exports.TOGGLE_CONFIGS=exports.UPDATE_CONFIGS=undefined;var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);exports.update=update;exports.toggle=toggle;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var UPDATE_CONFIGS=exports.UPDATE_CONFIGS="configs_update";var TOGGLE_CONFIGS=exports.TOGGLE_CONFIGS="configs_toggle";function update(configName,configValue){return{type:UPDATE_CONFIGS,payload:(0,_defineProperty3.default)({},configName,configValue)}}function toggle(configName){return{type:TOGGLE_CONFIGS,payload:configName}}var loaded=exports.loaded=function loaded(){return function(){}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.setSelectedServer=setSelectedServer;exports.setRequestBodyValue=setRequestBodyValue;exports.setRequestContentType=setRequestContentType;exports.setResponseContentType=setResponseContentType;exports.setServerVariableValue=setServerVariableValue;var UPDATE_SELECTED_SERVER=exports.UPDATE_SELECTED_SERVER="oas3_set_servers";var UPDATE_REQUEST_BODY_VALUE=exports.UPDATE_REQUEST_BODY_VALUE="oas3_set_request_body_value";var UPDATE_REQUEST_CONTENT_TYPE=exports.UPDATE_REQUEST_CONTENT_TYPE="oas3_set_request_content_type";var UPDATE_RESPONSE_CONTENT_TYPE=exports.UPDATE_RESPONSE_CONTENT_TYPE="oas3_set_response_content_type";var UPDATE_SERVER_VARIABLE_VALUE=exports.UPDATE_SERVER_VARIABLE_VALUE="oas3_set_server_variable_value";function setSelectedServer(selectedServerUrl,namespace){return{type:UPDATE_SELECTED_SERVER,payload:{selectedServerUrl:selectedServerUrl,namespace:namespace}}}function setRequestBodyValue(_ref){var value=_ref.value,pathMethod=_ref.pathMethod;return{type:UPDATE_REQUEST_BODY_VALUE,payload:{value:value,pathMethod:pathMethod}}}function setRequestContentType(_ref2){var value=_ref2.value,pathMethod=_ref2.pathMethod;return{type:UPDATE_REQUEST_CONTENT_TYPE,payload:{value:value,pathMethod:pathMethod}}}function setResponseContentType(_ref3){var value=_ref3.value,path=_ref3.path,method=_ref3.method;return{type:UPDATE_RESPONSE_CONTENT_TYPE,payload:{value:value,path:path,method:method}}}function setServerVariableValue(_ref4){var server=_ref4.server,namespace=_ref4.namespace,key=_ref4.key,val=_ref4.val;return{type:UPDATE_SERVER_VARIABLE_VALUE,payload:{server:server,namespace:namespace,key:key,val:val}}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(57);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(78);var $export=__webpack_require__(25);var redefine=__webpack_require__(155);var hide=__webpack_require__(38);var Iterators=__webpack_require__(46);var $iterCreate=__webpack_require__(295);var setToStringTag=__webpack_require__(81);var getPrototypeOf=__webpack_require__(158);var ITERATOR=__webpack_require__(14)("iterator");var BUGGY=!([].keys&&"next"in[].keys());var FF_ITERATOR="@@iterator";var KEYS="keys";var VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod("entries"):undefined;var $anyNative=NAME=="Array"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!="function")hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(34)&&!__webpack_require__(49)(function(){return Object.defineProperty(__webpack_require__(102)("div"),"a",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){module.exports=__webpack_require__(38)},function(module,exports,__webpack_require__){var has=__webpack_require__(39);var toIObject=__webpack_require__(47);var arrayIndexOf=__webpack_require__(297)(false);var IE_PROTO=__webpack_require__(107)("IE_PROTO");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var document=__webpack_require__(15).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var has=__webpack_require__(39);var toObject=__webpack_require__(60);var IE_PROTO=__webpack_require__(107)("IE_PROTO");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var global=__webpack_require__(23);var SHARED="__core-js_shared__";var store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(162)(true);__webpack_require__(163)(String,"String",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(84);var defined=__webpack_require__(35);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(164);var $export=__webpack_require__(16);var redefine=__webpack_require__(50);var hide=__webpack_require__(40);var Iterators=__webpack_require__(65);var $iterCreate=__webpack_require__(305);var setToStringTag=__webpack_require__(116);var getPrototypeOf=__webpack_require__(311);var ITERATOR=__webpack_require__(12)("iterator");var BUGGY=!([].keys&&"next"in[].keys());var FF_ITERATOR="@@iterator";var KEYS="keys";var VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod("entries"):undefined;var $anyNative=NAME=="Array"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&typeof IteratorPrototype[ITERATOR]!="function")hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports){module.exports=false},function(module,exports,__webpack_require__){var $keys=__webpack_require__(308);var enumBugKeys=__webpack_require__(167);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(84);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){var document=__webpack_require__(23).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var anObject=__webpack_require__(41);var aFunction=__webpack_require__(86);var SPECIES=__webpack_require__(12)("species");module.exports=function(O,D){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S)}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(85);var invoke=__webpack_require__(323);var html=__webpack_require__(168);var cel=__webpack_require__(114);var global=__webpack_require__(23);var process=global.process;var setTask=global.setImmediate;var clearTask=global.clearImmediate;var MessageChannel=global.MessageChannel;var Dispatch=global.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var defer,channel,port;var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listener=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[];var i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(__webpack_require__(62)(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(Dispatch&&Dispatch.now){defer=function(id){Dispatch.now(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},function(module,exports){module.exports=function(exec){try{return{e:false,v:exec()}}catch(e){return{e:true,v:e}}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(41);var isObject=__webpack_require__(51);var newPromiseCapability=__webpack_require__(117);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(51);var cof=__webpack_require__(62);var MATCH=__webpack_require__(12)("match");module.exports=function(it){var isRegExp;return isObject(it)&&((isRegExp=it[MATCH])!==undefined?!!isRegExp:cof(it)=="RegExp")}},function(module,exports,__webpack_require__){var $export=__webpack_require__(25);var core=__webpack_require__(10);var fails=__webpack_require__(49);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(156);var hiddenKeys=__webpack_require__(109).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},function(module,exports,__webpack_require__){var pIE=__webpack_require__(89);var createDesc=__webpack_require__(58);var toIObject=__webpack_require__(47);var toPrimitive=__webpack_require__(103);var has=__webpack_require__(39);var IE8_DOM_DEFINE=__webpack_require__(154);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__webpack_require__(34)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P])}},function(module,exports){},function(module,exports){module.exports=require("deep-extend")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(375),__esModule:true}},function(module,exports,__webpack_require__){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};function getTypeOf(input){if(input===null){return"null"}else if(typeof input==="undefined"){return"undefined"}else if((typeof input==="undefined"?"undefined":_typeof(input))==="object"){return Array.isArray(input)?"array":"object"}return typeof input==="undefined"?"undefined":_typeof(input)}function cloneValue(value){if(getTypeOf(value)==="object"){return quickCloneObject(value)}else if(getTypeOf(value)==="array"){return quickCloneArray(value)}return value}function quickCloneArray(input){return input.map(cloneValue)}function quickCloneObject(input){var output={};for(var key in input){if(!input.hasOwnProperty(key)){continue}output[key]=cloneValue(input[key])}return output}function executeDeepMerge(target){var _objects=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var _options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var options={arrayBehaviour:_options.arrayBehaviour||"replace"};var objects=_objects.map(function(object){return object||{}});var output=target||{};for(var oindex=0;oindex<objects.length;oindex++){var object=objects[oindex];var keys=Object.keys(object);for(var kindex=0;kindex<keys.length;kindex++){var key=keys[kindex];var value=object[key];var type=getTypeOf(value);var existingValueType=getTypeOf(output[key]);if(type==="object"){if(existingValueType!=="undefined"){var existingValue=existingValueType==="object"?output[key]:{};output[key]=executeDeepMerge({},[existingValue,quickCloneObject(value)],options)}else{output[key]=quickCloneObject(value)}}else if(type==="array"){if(existingValueType==="array"){var newValue=quickCloneArray(value);output[key]=options.arrayBehaviour==="merge"?output[key].concat(newValue):newValue}else{output[key]=quickCloneArray(value)}}else{output[key]=value}}}return output}module.exports=function objectAssignDeep(target){for(var _len=arguments.length,objects=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){objects[_key-1]=arguments[_key]}return executeDeepMerge(target,objects)};module.exports.noMutate=function objectAssignDeepInto(){for(var _len2=arguments.length,objects=Array(_len2),_key2=0;_key2<_len2;_key2++){objects[_key2]=arguments[_key2]}return executeDeepMerge({},objects)};module.exports.withOptions=function objectAssignDeepInto(target,objects,options){return executeDeepMerge(target,objects,options)}},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(1,eval)("this")}catch(e){if(typeof window==="object")g=window}module.exports=g},function(module,exports,__webpack_require__){(function(global){var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;module.exports=freeGlobal}).call(exports,__webpack_require__(181))},function(module,exports){function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array)}return result}module.exports=arrayMap},function(module,exports,__webpack_require__){var createCaseFirst=__webpack_require__(395);var upperFirst=createCaseFirst("toUpperCase");module.exports=upperFirst},function(module,exports){function baseSlice(array,start,end){var index=-1,length=array.length;if(start<0){start=-start>length?0:length+start}end=end>length?length:end;if(end<0){end+=length}length=start>end?0:end-start>>>0;start>>>=0;var result=Array(length);while(++index<length){result[index]=array[index+start]}return result}module.exports=baseSlice},function(module,exports){var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f";var rsZWJ="\\u200d";var reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]");function hasUnicode(string){return reHasUnicode.test(string)}module.exports=hasUnicode},function(module,exports){function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array==null?0:array.length;if(initAccum&&length){accumulator=array[++index]}while(++index<length){accumulator=iteratee(accumulator,array[index],index,array)}return accumulator}module.exports=arrayReduce},function(module,exports,__webpack_require__){var MapCache=__webpack_require__(124);var FUNC_ERROR_TEXT="Expected a function";function memoize(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT)}var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key)}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;module.exports=memoize},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(44),isObject=__webpack_require__(28);var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}module.exports=isFunction},function(module,exports){var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}module.exports=toSource},function(module,exports,__webpack_require__){var baseIsEqualDeep=__webpack_require__(438),isObjectLike=__webpack_require__(32);function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true}if(value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)){return value!==value&&other!==other}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack)}module.exports=baseIsEqual},function(module,exports,__webpack_require__){var SetCache=__webpack_require__(439),arraySome=__webpack_require__(193),cacheHas=__webpack_require__(442);var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false}var stacked=stack.get(array);if(stacked&&stack.get(other)){return stacked==other}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack)}if(compared!==undefined){if(compared){continue}result=false;break}if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex)}})){result=false;break}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break}}stack["delete"](array);stack["delete"](other);return result}module.exports=equalArrays},function(module,exports){function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(predicate(array[index],index,array)){return true}}return false}module.exports=arraySome},function(module,exports,__webpack_require__){var root=__webpack_require__(26);var Uint8Array=root.Uint8Array;module.exports=Uint8Array},function(module,exports,__webpack_require__){var baseGetAllKeys=__webpack_require__(196),getSymbols=__webpack_require__(128),keys=__webpack_require__(53);function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}module.exports=getAllKeys},function(module,exports,__webpack_require__){var arrayPush=__webpack_require__(127),isArray=__webpack_require__(20);function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}module.exports=baseGetAllKeys},function(module,exports){function stubArray(){return[]}module.exports=stubArray},function(module,exports,__webpack_require__){var baseTimes=__webpack_require__(448),isArguments=__webpack_require__(129),isArray=__webpack_require__(20),isBuffer=__webpack_require__(130),isIndex=__webpack_require__(97),isTypedArray=__webpack_require__(199);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex(key,length)))){result.push(key)}}return result}module.exports=arrayLikeKeys},function(module,exports,__webpack_require__){var baseIsTypedArray=__webpack_require__(451),baseUnary=__webpack_require__(133),nodeUtil=__webpack_require__(134);var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},function(module,exports){function overArg(func,transform){return function(arg){return func(transform(arg))}}module.exports=overArg},function(module,exports,__webpack_require__){var isObject=__webpack_require__(28);function isStrictComparable(value){return value===value&&!isObject(value)}module.exports=isStrictComparable},function(module,exports){function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object))}}module.exports=matchesStrictComparable},function(module,exports){function identity(value){return value}module.exports=identity},function(module,exports,__webpack_require__){var isObject=__webpack_require__(28),isSymbol=__webpack_require__(91);var NAN=0/0;var reTrim=/^\s+|\s+$/g;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber(value){if(typeof value=="number"){return value}if(isSymbol(value)){return NAN}if(isObject(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject(other)?other+"":other}if(typeof value!="string"){return value===0?value:+value}value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}module.exports=toNumber},function(module,exports,__webpack_require__){var baseForOwn=__webpack_require__(474),createBaseEach=__webpack_require__(477);var baseEach=createBaseEach(baseForOwn);module.exports=baseEach},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(system){return{statePlugins:{err:{reducers:(0,_reducers2.default)(system),actions:actions,selectors:selectors}}}};var _reducers=__webpack_require__(207);var _reducers2=_interopRequireDefault(_reducers);var _actions=__webpack_require__(90);var actions=_interopRequireWildcard(_actions);var _selectors=__webpack_require__(211);var selectors=_interopRequireWildcard(_selectors);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);exports.default=function(system){var _ref8;return _ref8={},(0,_defineProperty3.default)(_ref8,_actions.NEW_THROWN_ERR,function(state,_ref){var payload=_ref.payload;var error=(0,_assign2.default)(DEFAULT_ERROR_STRUCTURE,payload,{type:"thrown"});return state.update("errors",function(errors){return(errors||(0,_immutable.List)()).push((0,_immutable.fromJS)(error))}).update("errors",function(errors){return(0,_hook2.default)(errors,system.getSystem())})}),(0,_defineProperty3.default)(_ref8,_actions.NEW_THROWN_ERR_BATCH,function(state,_ref2){var payload=_ref2.payload;payload=payload.map(function(err){return(0,_immutable.fromJS)((0,_assign2.default)(DEFAULT_ERROR_STRUCTURE,err,{type:"thrown"}))});return state.update("errors",function(errors){return(errors||(0,_immutable.List)()).concat((0,_immutable.fromJS)(payload))}).update("errors",function(errors){return(0,_hook2.default)(errors,system.getSystem())})}),(0,_defineProperty3.default)(_ref8,_actions.NEW_SPEC_ERR,function(state,_ref3){var payload=_ref3.payload;var error=(0,_immutable.fromJS)(payload);error=error.set("type","spec");return state.update("errors",function(errors){return(errors||(0,_immutable.List)()).push((0,_immutable.fromJS)(error)).sortBy(function(err){return err.get("line")})}).update("errors",function(errors){return(0,_hook2.default)(errors,system.getSystem())})}),(0,_defineProperty3.default)(_ref8,_actions.NEW_SPEC_ERR_BATCH,function(state,_ref4){var payload=_ref4.payload;payload=payload.map(function(err){return(0,_immutable.fromJS)((0,_assign2.default)(DEFAULT_ERROR_STRUCTURE,err,{type:"spec"}))});return state.update("errors",function(errors){return(errors||(0,_immutable.List)()).concat((0,_immutable.fromJS)(payload))}).update("errors",function(errors){return(0,_hook2.default)(errors,system.getSystem())})}),(0,_defineProperty3.default)(_ref8,_actions.NEW_AUTH_ERR,function(state,_ref5){var payload=_ref5.payload;var error=(0,_immutable.fromJS)((0,_assign2.default)({},payload));error=error.set("type","auth");return state.update("errors",function(errors){return(errors||(0,_immutable.List)()).push((0,_immutable.fromJS)(error))}).update("errors",function(errors){return(0,_hook2.default)(errors,system.getSystem())})}),(0,_defineProperty3.default)(_ref8,_actions.CLEAR,function(state,_ref6){var payload=_ref6.payload;if(!payload||!state.get("errors")){return state}var newErrors=state.get("errors").filter(function(err){return err.keySeq().every(function(k){var errValue=err.get(k);var filterValue=payload[k];if(!filterValue)return true;return errValue!==filterValue})});return state.merge({errors:newErrors})}),(0,_defineProperty3.default)(_ref8,_actions.CLEAR_BY,function(state,_ref7){var payload=_ref7.payload;if(!payload||typeof payload!=="function"){return state}var newErrors=state.get("errors").filter(function(err){return payload(err)});return state.merge({errors:newErrors})}),_ref8};var _actions=__webpack_require__(90);var _immutable=__webpack_require__(7);var _hook=__webpack_require__(208);var _hook2=_interopRequireDefault(_hook);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_ERROR_STRUCTURE={line:0,level:"error",message:"Unknown error"}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=transformErrors;var _reduce=__webpack_require__(487);var _reduce2=_interopRequireDefault(_reduce);var _notOfType=__webpack_require__(209);var NotOfType=_interopRequireWildcard(_notOfType);var _parameterOneof=__webpack_require__(210);var ParameterOneOf=_interopRequireWildcard(_parameterOneof);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var errorTransformers=[NotOfType,ParameterOneOf];function transformErrors(errors,system){var inputs={jsSpec:system.specSelectors.specJson().toJS()};var transformedErrors=(0,_reduce2.default)(errorTransformers,function(result,transformer){try{var newlyTransformedErrors=transformer.transform(result,inputs);return newlyTransformedErrors.filter(function(err){return!!err})}catch(e){console.error("Transformer error:",e);return result}},errors);return transformedErrors.filter(function(err){return!!err}).map(function(err){if(!err.get("line")&&err.get("path")){}return err})}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.transform=transform;function transform(errors){return errors.map(function(err){var seekStr="is not of a type(s)";var i=err.get("message").indexOf(seekStr);if(i>-1){var types=err.get("message").slice(i+seekStr.length).split(",");return err.set("message",err.get("message").slice(0,i)+makeNewMessage(types))}else{return err}})}function makeNewMessage(types){return types.reduce(function(p,c,i,arr){if(i===arr.length-1&&arr.length>1){return p+"or "+c}else if(arr[i+1]&&arr.length>2){return p+c+", "}else if(arr[i+1]){return p+c+" "}else{return p+c}},"should be a")}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.transform=transform;var _get=__webpack_require__(136);var _get2=_interopRequireDefault(_get);var _immutable=__webpack_require__(7);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function transform(errors,_ref){var jsSpec=_ref.jsSpec;return errors;var searchStr="is not exactly one from <#/definitions/parameter>,<#/definitions/jsonReference>";return errors.map(function(err){var message=err.get("message");var isParameterOneOfError=message.indexOf(searchStr)>-1;if(isParameterOneOfError){return createTailoredParameterError(err,jsSpec)}else{return err}}).flatten(true)}var VALID_IN_VALUES=["path","query","header","body","formData"];var VALID_COLLECTIONFORMAT_VALUES=["csv","ssv","tsv","pipes","multi"];function createTailoredParameterError(err,jsSpec){var newErrs=[];var parameter=(0,_get2.default)(jsSpec,err.get("path"));if(parameter.in&&VALID_IN_VALUES.indexOf(parameter.in)===-1){var message='Wrong value for the "in" keyword. Expected one of: '+VALID_IN_VALUES.join(", ")+".";newErrs.push({message:message,path:err.get("path")+".in",type:"spec",source:"structural",level:"error"})}if(parameter.collectionFormat&&VALID_COLLECTIONFORMAT_VALUES.indexOf(parameter.collectionFormat)===-1){var _message='Wrong value for the "collectionFormat" keyword. Expected one of: '+VALID_COLLECTIONFORMAT_VALUES.join(", ")+".";newErrs.push({message:_message,path:err.get("path")+".collectionFormat",type:"spec",source:"structural",level:"error"})}return newErrs.length?(0,_immutable.fromJS)(newErrs):err}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.lastError=exports.allErrors=undefined;var _immutable=__webpack_require__(7);var _reselect=__webpack_require__(37);var state=function state(_state){return _state};var allErrors=exports.allErrors=(0,_reselect.createSelector)(state,function(err){return err.get("errors",(0,_immutable.List)())});var lastError=exports.lastError=(0,_reselect.createSelector)(allErrors,function(all){return all.last()})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{statePlugins:{layout:{reducers:_reducers2.default,actions:actions,selectors:selectors}}}};var _reducers=__webpack_require__(213);var _reducers2=_interopRequireDefault(_reducers);var _actions=__webpack_require__(140);var actions=_interopRequireWildcard(_actions);var _selectors=__webpack_require__(214);var selectors=_interopRequireWildcard(_selectors);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _UPDATE_LAYOUT$UPDATE;var _immutable=__webpack_require__(7);var _actions=__webpack_require__(140);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(_UPDATE_LAYOUT$UPDATE={},(0,_defineProperty3.default)(_UPDATE_LAYOUT$UPDATE,_actions.UPDATE_LAYOUT,function(state,action){return state.set("layout",action.payload)}),(0,_defineProperty3.default)(_UPDATE_LAYOUT$UPDATE,_actions.UPDATE_FILTER,function(state,action){return state.set("filter",action.payload)}),(0,_defineProperty3.default)(_UPDATE_LAYOUT$UPDATE,_actions.SHOW,function(state,action){var isShown=action.payload.shown;var thingToShow=(0,_immutable.fromJS)(action.payload.thing);return state.update("shown",(0,_immutable.fromJS)({}),function(a){return a.set(thingToShow,isShown)})}),(0,_defineProperty3.default)(_UPDATE_LAYOUT$UPDATE,_actions.UPDATE_MODE,function(state,action){var thing=action.payload.thing;var mode=action.payload.mode;return state.setIn(["modes"].concat(thing),(mode||"")+"")}),_UPDATE_LAYOUT$UPDATE)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.showSummary=exports.whatMode=exports.isShown=exports.currentFilter=exports.current=undefined;var _toConsumableArray2=__webpack_require__(70);var _toConsumableArray3=_interopRequireDefault(_toConsumableArray2);var _reselect=__webpack_require__(37);var _utils=__webpack_require__(8);var _immutable=__webpack_require__(7);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var state=function state(_state){return _state};var current=exports.current=function current(state){return state.get("layout")};var currentFilter=exports.currentFilter=function currentFilter(state){return state.get("filter")};var isShown=exports.isShown=function isShown(state,thing,def){thing=(0,_utils.normalizeArray)(thing);return state.get("shown",(0,_immutable.fromJS)({})).get((0,_immutable.fromJS)(thing),def)};var whatMode=exports.whatMode=function whatMode(state,thing){var def=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";thing=(0,_utils.normalizeArray)(thing);return state.getIn(["modes"].concat((0,_toConsumableArray3.default)(thing)),def)};var showSummary=exports.showSummary=(0,_reselect.createSelector)(state,function(state){return!isShown(state,"editor")})},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(46);var ITERATOR=__webpack_require__(14)("iterator");var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(14)("iterator");var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true}};arr[ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{statePlugins:{spec:{wrapActions:wrapActions,reducers:_reducers2.default,actions:actions,selectors:selectors}}}};var _reducers=__webpack_require__(219);var _reducers2=_interopRequireDefault(_reducers);var _actions=__webpack_require__(141);var actions=_interopRequireWildcard(_actions);var _selectors=__webpack_require__(99);var selectors=_interopRequireWildcard(_selectors);var _wrapActions=__webpack_require__(230);var wrapActions=_interopRequireWildcard(_wrapActions);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _toConsumableArray2=__webpack_require__(70);var _toConsumableArray3=_interopRequireDefault(_toConsumableArray2);var _UPDATE_SPEC$UPDATE_U;var _immutable=__webpack_require__(7);var _utils=__webpack_require__(8);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);var _selectors=__webpack_require__(99);var _actions=__webpack_require__(141);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(_UPDATE_SPEC$UPDATE_U={},(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_SPEC,function(state,action){return typeof action.payload==="string"?state.set("spec",action.payload):state}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_URL,function(state,action){return state.set("url",action.payload+"")}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_JSON,function(state,action){return state.set("json",(0,_utils.fromJSOrdered)(action.payload))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_RESOLVED,function(state,action){return state.setIn(["resolved"],(0,_utils.fromJSOrdered)(action.payload))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_RESOLVED_SUBTREE,function(state,action){var _action$payload=action.payload,value=_action$payload.value,path=_action$payload.path;return state.setIn(["resolvedSubtrees"].concat((0,_toConsumableArray3.default)(path)),(0,_utils.fromJSOrdered)(value))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_PARAM,function(state,_ref){var payload=_ref.payload;var pathMethod=payload.path,paramName=payload.paramName,paramIn=payload.paramIn,param=payload.param,value=payload.value,isXml=payload.isXml;var paramKey=param?(0,_utils.paramToIdentifier)(param):paramIn+"."+paramName;var valueKey=isXml?"value_xml":"value";return state.setIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters",paramKey,valueKey]),value)}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_EMPTY_PARAM_INCLUSION,function(state,_ref2){var payload=_ref2.payload;var pathMethod=payload.pathMethod,paramName=payload.paramName,paramIn=payload.paramIn,includeEmptyValue=payload.includeEmptyValue;if(!paramName||!paramIn){console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.");return state}var paramKey=paramIn+"."+paramName;return state.setIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameter_inclusions",paramKey]),includeEmptyValue)}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.VALIDATE_PARAMS,function(state,_ref3){var _ref3$payload=_ref3.payload,pathMethod=_ref3$payload.pathMethod,isOAS3=_ref3$payload.isOAS3;var op=(0,_selectors.specJsonWithResolvedSubtrees)(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)));var paramValues=(0,_selectors.parameterValues)(state,pathMethod).toJS();return state.updateIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)({}),function(paramMeta){return op.get("parameters",(0,_immutable.List)()).reduce(function(res,param){var value=(0,_utils.paramToValue)(param,paramValues);var isEmptyValueIncluded=(0,_selectors.parameterInclusionSettingFor)(state,pathMethod,param.get("name"),param.get("in"));var errors=(0,_utils.validateParam)(param,value,{bypassRequiredCheck:isEmptyValueIncluded,isOAS3:isOAS3});return res.setIn([(0,_utils.paramToIdentifier)(param),"errors"],(0,_immutable.fromJS)(errors))},paramMeta)})}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.CLEAR_VALIDATE_PARAMS,function(state,_ref4){var pathMethod=_ref4.payload.pathMethod;return state.updateIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)([]),function(parameters){return parameters.map(function(param){return param.set("errors",(0,_immutable.fromJS)([]))})})}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.SET_RESPONSE,function(state,_ref5){var _ref5$payload=_ref5.payload,res=_ref5$payload.res,path=_ref5$payload.path,method=_ref5$payload.method;var result=void 0;if(res.error){result=(0,_assign2.default)({error:true,name:res.err.name,message:res.err.message,statusCode:res.err.statusCode},res.err.response)}else{result=res}result.headers=result.headers||{};var newState=state.setIn(["responses",path,method],(0,_utils.fromJSOrdered)(result));if(_window2.default.Blob&&res.data instanceof _window2.default.Blob){newState=newState.setIn(["responses",path,method,"text"],res.data)}return newState}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.SET_REQUEST,function(state,_ref6){var _ref6$payload=_ref6.payload,req=_ref6$payload.req,path=_ref6$payload.path,method=_ref6$payload.method;return state.setIn(["requests",path,method],(0,_utils.fromJSOrdered)(req))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.SET_MUTATED_REQUEST,function(state,_ref7){var _ref7$payload=_ref7.payload,req=_ref7$payload.req,path=_ref7$payload.path,method=_ref7$payload.method;return state.setIn(["mutatedRequests",path,method],(0,_utils.fromJSOrdered)(req))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.UPDATE_OPERATION_META_VALUE,function(state,_ref8){var _ref8$payload=_ref8.payload,path=_ref8$payload.path,value=_ref8$payload.value,key=_ref8$payload.key;var operationPath=["paths"].concat((0,_toConsumableArray3.default)(path));var metaPath=["meta","paths"].concat((0,_toConsumableArray3.default)(path));if(!state.getIn(["json"].concat((0,_toConsumableArray3.default)(operationPath)))&&!state.getIn(["resolved"].concat((0,_toConsumableArray3.default)(operationPath)))&&!state.getIn(["resolvedSubtrees"].concat((0,_toConsumableArray3.default)(operationPath)))){return state}return state.setIn([].concat((0,_toConsumableArray3.default)(metaPath),[key]),(0,_immutable.fromJS)(value))}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.CLEAR_RESPONSE,function(state,_ref9){var _ref9$payload=_ref9.payload,path=_ref9$payload.path,method=_ref9$payload.method;return state.deleteIn(["responses",path,method])}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.CLEAR_REQUEST,function(state,_ref10){var _ref10$payload=_ref10.payload,path=_ref10$payload.path,method=_ref10$payload.method;return state.deleteIn(["requests",path,method])}),(0,_defineProperty3.default)(_UPDATE_SPEC$UPDATE_U,_actions.SET_SCHEME,function(state,_ref11){var _ref11$payload=_ref11.payload,scheme=_ref11$payload.scheme,path=_ref11$payload.path,method=_ref11$payload.method;if(path&&method){return state.setIn(["scheme",path,method],scheme)}if(!path&&!method){return state.setIn(["scheme","_defaultScheme"],scheme)}}),_UPDATE_SPEC$UPDATE_U)},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(493),__esModule:true}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var aFunction=__webpack_require__(79);var SPECIES=__webpack_require__(14)("species");module.exports=function(O,D){var C=anObject(O).constructor;var S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S)}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(48);var invoke=__webpack_require__(497);var html=__webpack_require__(157);var cel=__webpack_require__(102);var global=__webpack_require__(15);var process=global.process;var setTask=global.setImmediate;var clearTask=global.clearImmediate;var MessageChannel=global.MessageChannel;var Dispatch=global.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE="onreadystatechange";var defer,channel,port;var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listener=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[];var i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(__webpack_require__(57)(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(Dispatch&&Dispatch.now){defer=function(id){Dispatch.now(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},function(module,exports){module.exports=function(exec){try{return{e:false,v:exec()}}catch(e){return{e:true,v:e}}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var isObject=__webpack_require__(33);var newPromiseCapability=__webpack_require__(142);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise}},function(module,exports,__webpack_require__){"use strict";var yaml=__webpack_require__(506);module.exports=yaml},function(module,exports,__webpack_require__){"use strict";var Schema=__webpack_require__(56);module.exports=new Schema({include:[__webpack_require__(227)]})},function(module,exports,__webpack_require__){"use strict";var Schema=__webpack_require__(56);module.exports=new Schema({include:[__webpack_require__(143)],implicit:[__webpack_require__(512),__webpack_require__(513),__webpack_require__(514),__webpack_require__(515)]})},function(module,exports,__webpack_require__){var defineProperty=__webpack_require__(229);function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{configurable:true,enumerable:true,value:value,writable:true})}else{object[key]=value}}module.exports=baseAssignValue},function(module,exports,__webpack_require__){var getNative=__webpack_require__(45);var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();module.exports=defineProperty},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.validateParams=exports.executeRequest=exports.updateJsonSpec=exports.updateSpec=undefined;var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _get=__webpack_require__(136);var _get2=_interopRequireDefault(_get);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var updateSpec=exports.updateSpec=function updateSpec(ori,_ref){var specActions=_ref.specActions;return function(){ori.apply(undefined,arguments);specActions.parseToJson.apply(specActions,arguments)}};var updateJsonSpec=exports.updateJsonSpec=function updateJsonSpec(ori,_ref2){var specActions=_ref2.specActions;return function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}ori.apply(undefined,args);specActions.invalidateResolvedSubtreeCache();var json=args[0];var pathItems=(0,_get2.default)(json,["paths"])||{};var pathItemKeys=(0,_keys2.default)(pathItems);pathItemKeys.forEach(function(k){var val=(0,_get2.default)(pathItems,[k]);if(val.$ref){specActions.requestResolvedSubtree(["paths",k])}});specActions.requestResolvedSubtree(["components","securitySchemes"])}};var executeRequest=exports.executeRequest=function executeRequest(ori,_ref3){var specActions=_ref3.specActions;return function(req){specActions.logRequest(req);return ori(req)}};var validateParams=exports.validateParams=function validateParams(ori,_ref4){var specSelectors=_ref4.specSelectors;return function(req){return ori(req,specSelectors.isOAS3())}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(_ref){var getComponents=_ref.getComponents,getStore=_ref.getStore,getSystem=_ref.getSystem;var getComponent=rootInjects.getComponent,render=rootInjects.render,makeMappedContainer=rootInjects.makeMappedContainer;var memGetComponent=(0,_utils.memoize)(getComponent.bind(null,getSystem,getStore,getComponents));var memMakeMappedContainer=(0,_utils.memoize)(makeMappedContainer.bind(null,getSystem,getStore,memGetComponent,getComponents));return{rootInjects:{getComponent:memGetComponent,makeMappedContainer:memMakeMappedContainer,render:render.bind(null,getSystem,getStore,getComponent,getComponents)}}};var _rootInjects=__webpack_require__(232);var rootInjects=_interopRequireWildcard(_rootInjects);var _utils=__webpack_require__(8);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getComponent=exports.render=exports.makeMappedContainer=undefined;var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _reactDom=__webpack_require__(541);var _reactDom2=_interopRequireDefault(_reactDom);var _reactRedux=__webpack_require__(542);var _omit=__webpack_require__(543);var _omit2=_interopRequireDefault(_omit);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var SystemWrapper=function SystemWrapper(getSystem,ComponentToWrap){return function(_Component){(0,_inherits3.default)(_class,_Component);function _class(){(0,_classCallCheck3.default)(this,_class);return(0,_possibleConstructorReturn3.default)(this,(_class.__proto__||(0,_getPrototypeOf2.default)(_class)).apply(this,arguments))}(0,_createClass3.default)(_class,[{key:"render",value:function render(){return _react2.default.createElement(ComponentToWrap,(0,_extends3.default)({},getSystem(),this.props,this.context))}}]);return _class}(_react.Component)};var RootWrapper=function RootWrapper(reduxStore,ComponentToWrap){return function(_Component2){(0,_inherits3.default)(_class2,_Component2);function _class2(){(0,_classCallCheck3.default)(this,_class2);return(0,_possibleConstructorReturn3.default)(this,(_class2.__proto__||(0,_getPrototypeOf2.default)(_class2)).apply(this,arguments))}(0,_createClass3.default)(_class2,[{key:"render",value:function render(){return _react2.default.createElement(_reactRedux.Provider,{store:reduxStore},_react2.default.createElement(ComponentToWrap,(0,_extends3.default)({},this.props,this.context)))}}]);return _class2}(_react.Component)};var makeContainer=function makeContainer(getSystem,component,reduxStore){var mapStateToProps=function mapStateToProps(state,ownProps){var propsForContainerComponent=(0,_assign2.default)({},ownProps,getSystem());var ori=component.prototype.mapStateToProps||function(state){return{state:state}};return ori(state,propsForContainerComponent)};var wrappedWithSystem=SystemWrapper(getSystem,component,reduxStore);var connected=(0,_reactRedux.connect)(mapStateToProps)(wrappedWithSystem);if(reduxStore)return RootWrapper(reduxStore,connected);return connected};var handleProps=function handleProps(getSystem,mapping,props,oldProps){for(var prop in mapping){var fn=mapping[prop];if(typeof fn==="function")fn(props[prop],oldProps[prop],getSystem())}};var makeMappedContainer=exports.makeMappedContainer=function makeMappedContainer(getSystem,getStore,memGetComponent,getComponents,componentName,mapping){return function(_Component3){(0,_inherits3.default)(_class3,_Component3);function _class3(props,context){(0,_classCallCheck3.default)(this,_class3);var _this3=(0,_possibleConstructorReturn3.default)(this,(_class3.__proto__||(0,_getPrototypeOf2.default)(_class3)).call(this,props,context));handleProps(getSystem,mapping,props,{});return _this3}(0,_createClass3.default)(_class3,[{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){handleProps(getSystem,mapping,nextProps,this.props)}},{key:"render",value:function render(){var cleanProps=(0,_omit2.default)(this.props,mapping?(0,_keys2.default)(mapping):[]);var Comp=memGetComponent(componentName,"root");return _react2.default.createElement(Comp,cleanProps)}}]);return _class3}(_react.Component)};var render=exports.render=function render(getSystem,getStore,getComponent,getComponents,domNode){var App=getComponent(getSystem,getStore,getComponents,"App","root");_reactDom2.default.render(_react2.default.createElement(App,null),domNode)};var createClass=function createClass(component){return function(_Component4){(0,_inherits3.default)(_class4,_Component4);function _class4(){(0,_classCallCheck3.default)(this,_class4);return(0,_possibleConstructorReturn3.default)(this,(_class4.__proto__||(0,_getPrototypeOf2.default)(_class4)).apply(this,arguments))}(0,_createClass3.default)(_class4,[{key:"render",value:function render(){return component(this.props)}}]);return _class4}(_react.Component)};var Fallback=function Fallback(_ref){var name=_ref.name;return _react2.default.createElement("div",{style:{padding:"1em",color:"#aaa"}},"😱 ",_react2.default.createElement("i",null,"Could not render ",name==="t"?"this component":name,", see the console."))};var wrapRender=function wrapRender(component){var isStateless=function isStateless(component){return!(component.prototype&&component.prototype.isReactComponent)};var target=isStateless(component)?createClass(component):component;var ori=target.prototype.render;target.prototype.render=function render(){try{for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return ori.apply(this,args)}catch(error){console.error(error);return _react2.default.createElement(Fallback,{error:error,name:target.name})}};return target};var getComponent=exports.getComponent=function getComponent(getSystem,getStore,getComponents,componentName,container){if(typeof componentName!=="string")throw new TypeError("Need a string, to fetch a component. Was given a "+(typeof componentName==="undefined"?"undefined":(0,_typeof3.default)(componentName)));var component=getComponents(componentName);if(!component){getSystem().log.warn("Could not find component",componentName);return null}if(!container)return wrapRender(component);if(container==="root")return makeContainer(getSystem,component,getStore());return makeContainer(getSystem,wrapRender(component))}},function(module,exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(198),baseKeysIn=__webpack_require__(548),isArrayLike=__webpack_require__(68);function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object)}module.exports=keysIn},function(module,exports,__webpack_require__){var arrayPush=__webpack_require__(127),getPrototype=__webpack_require__(146),getSymbols=__webpack_require__(128),stubArray=__webpack_require__(197);var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbolsIn=!nativeGetSymbols?stubArray:function(object){var result=[];while(object){arrayPush(result,getSymbols(object));object=getPrototype(object)}return result};module.exports=getSymbolsIn},function(module,exports,__webpack_require__){var baseGetAllKeys=__webpack_require__(196),getSymbolsIn=__webpack_require__(234),keysIn=__webpack_require__(233);function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn)}module.exports=getAllKeysIn},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{fn:fn}};var _fn=__webpack_require__(139);var fn=_interopRequireWildcard(_fn);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(_ref){var configs=_ref.configs;var levels={debug:0,info:1,log:2,warn:3,error:4};var getLevel=function getLevel(level){return levels[level]||-1};var logLevel=configs.logLevel;var logLevelInt=getLevel(logLevel);function log(level){var _console;for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}if(getLevel(level)>=logLevelInt)(_console=console)[level].apply(_console,args)}log.warn=log.bind(null,"warn");log.error=log.bind(null,"error");log.info=log.bind(null,"info");log.debug=log.bind(null,"debug");return{rootInjects:{log:log}}}},function(module,exports,__webpack_require__){"use strict";var _swaggerClient=__webpack_require__(239);var _swaggerClient2=_interopRequireDefault(_swaggerClient);var _configsWrapActions=__webpack_require__(240);var configsWrapActions=_interopRequireWildcard(_configsWrapActions);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}module.exports=function(_ref){var configs=_ref.configs,getConfigs=_ref.getConfigs;return{fn:{fetch:_swaggerClient2.default.makeHttp(configs.preFetch,configs.postFetch),buildRequest:_swaggerClient2.default.buildRequest,execute:_swaggerClient2.default.execute,resolve:_swaggerClient2.default.resolve,resolveSubtree:function resolveSubtree(obj,path,opts){for(var _len=arguments.length,rest=Array(_len>3?_len-3:0),_key=3;_key<_len;_key++){rest[_key-3]=arguments[_key]}if(opts===undefined){var freshConfigs=getConfigs();opts={modelPropertyMacro:freshConfigs.modelPropertyMacro,parameterMacro:freshConfigs.parameterMacro,requestInterceptor:freshConfigs.requestInterceptor,responseInterceptor:freshConfigs.responseInterceptor}}return _swaggerClient2.default.resolveSubtree.apply(_swaggerClient2.default,[obj,path,opts].concat(rest))},serializeRes:_swaggerClient2.default.serializeRes,opId:_swaggerClient2.default.helpers.opId},statePlugins:{configs:{wrapActions:configsWrapActions}}}}},function(module,exports){module.exports=require("swagger-client")},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var loaded=exports.loaded=function loaded(ori,system){return function(){ori.apply(undefined,arguments);var value=system.getConfigs().withCredentials;if(value!==undefined){system.fn.fetch.withCredentials=typeof value==="string"?value==="true":!!value}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);exports.default=function(){return{afterLoad:function afterLoad(system){this.rootInjects=this.rootInjects||{};this.rootInjects.initOAuth=system.authActions.configureAuth;this.rootInjects.preauthorizeApiKey=preauthorizeApiKey.bind(null,system);this.rootInjects.preauthorizeBasic=preauthorizeBasic.bind(null,system)},statePlugins:{auth:{reducers:_reducers2.default,actions:actions,selectors:selectors},spec:{wrapActions:specWrapActionReplacements}}}};exports.preauthorizeBasic=preauthorizeBasic;exports.preauthorizeApiKey=preauthorizeApiKey;var _reducers=__webpack_require__(242);var _reducers2=_interopRequireDefault(_reducers);var _actions=__webpack_require__(148);var actions=_interopRequireWildcard(_actions);var _selectors=__webpack_require__(243);var selectors=_interopRequireWildcard(_selectors);var _specWrapActions=__webpack_require__(244);var specWrapActionReplacements=_interopRequireWildcard(_specWrapActions);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function preauthorizeBasic(system,key,username,password){var authorize=system.authActions.authorize,_system$specSelectors=system.specSelectors,specJson=_system$specSelectors.specJson,isOAS3=_system$specSelectors.isOAS3;var definitionBase=isOAS3()?["components","securitySchemes"]:["securityDefinitions"];var schema=specJson().getIn([].concat(definitionBase,[key]));if(!schema){return null}return authorize((0,_defineProperty3.default)({},key,{value:{username:username,password:password},schema:schema.toJS()}))}function preauthorizeApiKey(system,key,value){var authorize=system.authActions.authorize,_system$specSelectors2=system.specSelectors,specJson=_system$specSelectors2.specJson,isOAS3=_system$specSelectors2.isOAS3;var definitionBase=isOAS3()?["components","securitySchemes"]:["securityDefinitions"];var schema=specJson().getIn([].concat(definitionBase,[key]));if(!schema){return null}return authorize((0,_defineProperty3.default)({},key,{value:value,schema:schema.toJS()}))}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _SHOW_AUTH_POPUP$AUTH;var _immutable=__webpack_require__(7);var _utils=__webpack_require__(8);var _actions=__webpack_require__(148);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(_SHOW_AUTH_POPUP$AUTH={},(0,_defineProperty3.default)(_SHOW_AUTH_POPUP$AUTH,_actions.SHOW_AUTH_POPUP,function(state,_ref){var payload=_ref.payload;return state.set("showDefinitions",payload)}),(0,_defineProperty3.default)(_SHOW_AUTH_POPUP$AUTH,_actions.AUTHORIZE,function(state,_ref2){var payload=_ref2.payload;var securities=(0,_immutable.fromJS)(payload);var map=state.get("authorized")||(0,_immutable.Map)();securities.entrySeq().forEach(function(_ref3){var _ref4=(0,_slicedToArray3.default)(_ref3,2),key=_ref4[0],security=_ref4[1];var type=security.getIn(["schema","type"]);if(type==="apiKey"||type==="http"){map=map.set(key,security)}else if(type==="basic"){var username=security.getIn(["value","username"]);var password=security.getIn(["value","password"]);map=map.setIn([key,"value"],{username:username,header:"Basic "+(0,_utils.btoa)(username+":"+password)});map=map.setIn([key,"schema"],security.get("schema"))}});return state.set("authorized",map)}),(0,_defineProperty3.default)(_SHOW_AUTH_POPUP$AUTH,_actions.AUTHORIZE_OAUTH2,function(state,_ref5){var payload=_ref5.payload;var auth=payload.auth,token=payload.token;var parsedAuth=void 0;auth.token=(0,_assign2.default)({},token);parsedAuth=(0,_immutable.fromJS)(auth);return state.setIn(["authorized",parsedAuth.get("name")],parsedAuth)}),(0,_defineProperty3.default)(_SHOW_AUTH_POPUP$AUTH,_actions.LOGOUT,function(state,_ref6){var payload=_ref6.payload;var result=state.get("authorized").withMutations(function(authorized){payload.forEach(function(auth){authorized.delete(auth)})});return state.set("authorized",result)}),(0,_defineProperty3.default)(_SHOW_AUTH_POPUP$AUTH,_actions.CONFIGURE_AUTH,function(state,_ref7){var payload=_ref7.payload;return state.set("configs",payload)}),_SHOW_AUTH_POPUP$AUTH)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getConfigs=exports.isAuthorized=exports.authorized=exports.definitionsForRequirements=exports.getDefinitionsByNames=exports.definitionsToAuthorize=exports.shownDefinitions=undefined;var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _reselect=__webpack_require__(37);var _immutable=__webpack_require__(7);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var state=function state(_state){return _state};var shownDefinitions=exports.shownDefinitions=(0,_reselect.createSelector)(state,function(auth){return auth.get("showDefinitions")});var definitionsToAuthorize=exports.definitionsToAuthorize=(0,_reselect.createSelector)(state,function(){return function(_ref){var specSelectors=_ref.specSelectors;var definitions=specSelectors.securityDefinitions()||(0,_immutable.Map)({});var list=(0,_immutable.List)();definitions.entrySeq().forEach(function(_ref2){var _ref3=(0,_slicedToArray3.default)(_ref2,2),key=_ref3[0],val=_ref3[1];var map=(0,_immutable.Map)();map=map.set(key,val);list=list.push(map)});return list}});var getDefinitionsByNames=exports.getDefinitionsByNames=function getDefinitionsByNames(state,securities){return function(_ref4){var specSelectors=_ref4.specSelectors;console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");var securityDefinitions=specSelectors.securityDefinitions();var result=(0,_immutable.List)();securities.valueSeq().forEach(function(names){var map=(0,_immutable.Map)();names.entrySeq().forEach(function(_ref5){var _ref6=(0,_slicedToArray3.default)(_ref5,2),name=_ref6[0],scopes=_ref6[1];var definition=securityDefinitions.get(name);var allowedScopes=void 0;if(definition.get("type")==="oauth2"&&scopes.size){allowedScopes=definition.get("scopes");allowedScopes.keySeq().forEach(function(key){if(!scopes.contains(key)){allowedScopes=allowedScopes.delete(key)}});definition=definition.set("allowedScopes",allowedScopes)}map=map.set(name,definition)});result=result.push(map)});return result}};var definitionsForRequirements=exports.definitionsForRequirements=function definitionsForRequirements(state){var securities=arguments.length>1&&arguments[1]!==undefined?arguments[1]:(0,_immutable.List)();return function(_ref7){var authSelectors=_ref7.authSelectors;var allDefinitions=authSelectors.definitionsToAuthorize()||(0,_immutable.List)();return allDefinitions.filter(function(def){return securities.some(function(sec){return sec.get(def.keySeq().first())})})}};var authorized=exports.authorized=(0,_reselect.createSelector)(state,function(auth){return auth.get("authorized")||(0,_immutable.Map)()});var isAuthorized=exports.isAuthorized=function isAuthorized(state,securities){return function(_ref8){var authSelectors=_ref8.authSelectors;var authorized=authSelectors.authorized();if(!_immutable.List.isList(securities)){return null}return!!securities.toJS().filter(function(security){var isAuthorized=true;return(0,_keys2.default)(security).map(function(key){return!isAuthorized||!!authorized.get(key)}).indexOf(false)===-1}).length}};var getConfigs=exports.getConfigs=(0,_reselect.createSelector)(state,function(auth){return auth.get("configs")})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.execute=undefined;var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var execute=exports.execute=function execute(oriAction,_ref){var authSelectors=_ref.authSelectors,specSelectors=_ref.specSelectors;return function(_ref2){var path=_ref2.path,method=_ref2.method,operation=_ref2.operation,extras=_ref2.extras;var securities={authorized:authSelectors.authorized()&&authSelectors.authorized().toJS(),definitions:specSelectors.securityDefinitions()&&specSelectors.securityDefinitions().toJS(),specSecurity:specSelectors.security()&&specSelectors.security().toJS()};return oriAction((0,_extends3.default)({path:path,method:method,operation:operation,securities:securities},extras))}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{fn:{shallowEqualKeys:_utils.shallowEqualKeys}}};var _utils=__webpack_require__(8)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _stringify=__webpack_require__(30);var _stringify2=_interopRequireDefault(_stringify);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);exports.default=downloadUrlPlugin;var _reselect=__webpack_require__(37);var _immutable=__webpack_require__(7);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function downloadUrlPlugin(toolbox){var fn=toolbox.fn;var actions={download:function download(url){return function(_ref){var errActions=_ref.errActions,specSelectors=_ref.specSelectors,specActions=_ref.specActions,getConfigs=_ref.getConfigs;var fetch=fn.fetch;var config=getConfigs();url=url||specSelectors.url();specActions.updateLoadingStatus("loading");errActions.clear({source:"fetch"});fetch({url:url,loadSpec:true,requestInterceptor:config.requestInterceptor||function(a){return a},responseInterceptor:config.responseInterceptor||function(a){return a},credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(next,next);function next(res){if(res instanceof Error||res.status>=400){specActions.updateLoadingStatus("failed");errActions.newThrownErr((0,_assign2.default)(new Error((res.message||res.statusText)+" "+url),{source:"fetch"}));if(!res.status&&res instanceof Error)checkPossibleFailReasons();return}specActions.updateLoadingStatus("success");specActions.updateSpec(res.text);if(specSelectors.url()!==url){specActions.updateUrl(url)}}function checkPossibleFailReasons(){try{var specUrl=void 0;if("URL"in _window2.default){specUrl=new URL(url)}else{specUrl=document.createElement("a");specUrl.href=url}if(specUrl.protocol!=="https:"&&_window2.default.location.protocol==="https:"){var error=(0,_assign2.default)(new Error("Possible mixed-content issue? The page was loaded over https:// but a "+specUrl.protocol+"// URL was specified. Check that you are not attempting to load mixed content."),{source:"fetch"});errActions.newThrownErr(error);return}if(specUrl.origin!==_window2.default.location.origin){var _error=(0,_assign2.default)(new Error("Possible cross-origin (CORS) issue? The URL origin ("+specUrl.origin+") does not match the page ("+_window2.default.location.origin+"). Check the server returns the correct 'Access-Control-Allow-*' headers."),{source:"fetch"});errActions.newThrownErr(_error)}}catch(e){return}}}},updateLoadingStatus:function updateLoadingStatus(status){var enums=[null,"loading","failed","success","failedConfig"];if(enums.indexOf(status)===-1){console.error("Error: "+status+" is not one of "+(0,_stringify2.default)(enums))}return{type:"spec_update_loading_status",payload:status}}};var reducers={spec_update_loading_status:function spec_update_loading_status(state,action){return typeof action.payload==="string"?state.set("loadingStatus",action.payload):state}};var selectors={loadingStatus:(0,_reselect.createSelector)(function(state){return state||(0,_immutable.Map)()},function(spec){return spec.get("loadingStatus")||null})};return{statePlugins:{spec:{actions:actions,reducers:reducers,selectors:selectors}}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=configsPlugin;var _swaggerConfig=__webpack_require__(581);var _swaggerConfig2=_interopRequireDefault(_swaggerConfig);var _helpers=__webpack_require__(149);var _actions=__webpack_require__(150);var actions=_interopRequireWildcard(_actions);var _specActions=__webpack_require__(248);var specActions=_interopRequireWildcard(_specActions);var _selectors=__webpack_require__(249);var selectors=_interopRequireWildcard(_selectors);var _reducers=__webpack_require__(250);var _reducers2=_interopRequireDefault(_reducers);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var specSelectors={getLocalConfig:function getLocalConfig(){return(0,_helpers.parseYamlConfig)(_swaggerConfig2.default)}};function configsPlugin(){return{statePlugins:{spec:{actions:specActions,selectors:specSelectors},configs:{reducers:_reducers2.default,actions:actions,selectors:selectors}}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getConfigByUrl=exports.downloadConfig=undefined;var _helpers=__webpack_require__(149);var downloadConfig=exports.downloadConfig=function downloadConfig(req){return function(system){var fetch=system.fn.fetch;return fetch(req)}};var getConfigByUrl=exports.getConfigByUrl=function getConfigByUrl(req,cb){return function(_ref){var specActions=_ref.specActions;if(req){return specActions.downloadConfig(req).then(next,next)}function next(res){if(res instanceof Error||res.status>=400){specActions.updateLoadingStatus("failedConfig");specActions.updateLoadingStatus("failedConfig");specActions.updateUrl("");console.error(res.statusText+" "+req.url);cb(null)}else{cb((0,_helpers.parseYamlConfig)(res.text))}}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var get=exports.get=function get(state,path){return state.getIn(Array.isArray(path)?path:[path])}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _UPDATE_CONFIGS$TOGGL;var _immutable=__webpack_require__(7);var _actions=__webpack_require__(150);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(_UPDATE_CONFIGS$TOGGL={},(0,_defineProperty3.default)(_UPDATE_CONFIGS$TOGGL,_actions.UPDATE_CONFIGS,function(state,action){return state.merge((0,_immutable.fromJS)(action.payload))}),(0,_defineProperty3.default)(_UPDATE_CONFIGS$TOGGL,_actions.TOGGLE_CONFIGS,function(state,action){var configName=action.payload;var oriVal=state.get(configName);return state.set(configName,!oriVal)}),_UPDATE_CONFIGS$TOGGL)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return[_layout2.default,{statePlugins:{configs:{wrapActions:{loaded:function loaded(ori,system){return function(){ori.apply(undefined,arguments);var hash=decodeURIComponent(window.location.hash);system.layoutActions.parseDeepLinkHash(hash)}}}}},wrapComponents:{operation:_operationWrapper2.default,OperationTag:_operationTagWrapper2.default}}]};var _layout=__webpack_require__(252);var _layout2=_interopRequireDefault(_layout);var _operationWrapper=__webpack_require__(254);var _operationWrapper2=_interopRequireDefault(_operationWrapper);var _operationTagWrapper=__webpack_require__(255);var _operationTagWrapper2=_interopRequireDefault(_operationTagWrapper);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.clearScrollTo=exports.scrollToElement=exports.readyToScroll=exports.parseDeepLinkHash=exports.scrollTo=exports.show=undefined;var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _reducers;var _helpers=__webpack_require__(253);var _zenscroll=__webpack_require__(582);var _zenscroll2=_interopRequireDefault(_zenscroll);var _utils=__webpack_require__(8);var _immutable=__webpack_require__(7);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var SCROLL_TO="layout_scroll_to";var CLEAR_SCROLL_TO="layout_clear_scroll";var show=exports.show=function show(ori,_ref){var getConfigs=_ref.getConfigs,layoutSelectors=_ref.layoutSelectors;return function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}ori.apply(undefined,args);if(!getConfigs().deepLinking){return}try{var tokenArray=args[0],shown=args[1];tokenArray=Array.isArray(tokenArray)?tokenArray:[tokenArray];var urlHashArray=layoutSelectors.urlHashArrayFromIsShownKey(tokenArray);if(!urlHashArray.length)return;var _urlHashArray=(0,_slicedToArray3.default)(urlHashArray,2),type=_urlHashArray[0],assetName=_urlHashArray[1];if(!shown){return(0,_helpers.setHash)("/")}if(urlHashArray.length===2){(0,_helpers.setHash)((0,_utils.createDeepLinkPath)("/"+encodeURIComponent(type)+"/"+encodeURIComponent(assetName)))}else if(urlHashArray.length===1){(0,_helpers.setHash)((0,_utils.createDeepLinkPath)("/"+encodeURIComponent(type)))}}catch(e){console.error(e)}}};var scrollTo=exports.scrollTo=function scrollTo(path){return{type:SCROLL_TO,payload:Array.isArray(path)?path:[path]}};var parseDeepLinkHash=exports.parseDeepLinkHash=function parseDeepLinkHash(rawHash){return function(_ref2){var layoutActions=_ref2.layoutActions,layoutSelectors=_ref2.layoutSelectors,getConfigs=_ref2.getConfigs;if(!getConfigs().deepLinking){return}if(rawHash){var hash=rawHash.slice(1);if(hash[0]==="!"){hash=hash.slice(1)}if(hash[0]==="/"){hash=hash.slice(1)}var hashArray=hash.split("/").map(function(val){return val||""});var isShownKey=layoutSelectors.isShownKeyFromUrlHashArray(hashArray);var _isShownKey=(0,_slicedToArray3.default)(isShownKey,3),type=_isShownKey[0],_isShownKey$=_isShownKey[1],tagId=_isShownKey$===undefined?"":_isShownKey$,_isShownKey$2=_isShownKey[2],maybeOperationId=_isShownKey$2===undefined?"":_isShownKey$2;if(type==="operations"){var tagIsShownKey=layoutSelectors.isShownKeyFromUrlHashArray([tagId]);if(tagId.indexOf("_")>-1){console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.");layoutActions.show(tagIsShownKey.map(function(val){return val.replace(/_/g," ")}),true)}layoutActions.show(tagIsShownKey,true)}if(tagId.indexOf("_")>-1||maybeOperationId.indexOf("_")>-1){console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.");layoutActions.show(isShownKey.map(function(val){return val.replace(/_/g," ")}),true)}layoutActions.show(isShownKey,true);layoutActions.scrollTo(isShownKey)}}};var readyToScroll=exports.readyToScroll=function readyToScroll(isShownKey,ref){return function(system){var scrollToKey=system.layoutSelectors.getScrollToKey();if(_immutable2.default.is(scrollToKey,(0,_immutable.fromJS)(isShownKey))){system.layoutActions.scrollToElement(ref);system.layoutActions.clearScrollTo()}}};var scrollToElement=exports.scrollToElement=function scrollToElement(ref,container){return function(system){try{container=container||system.fn.getScrollParent(ref);var myScroller=_zenscroll2.default.createScroller(container);myScroller.to(ref)}catch(e){console.error(e)}}};var clearScrollTo=exports.clearScrollTo=function clearScrollTo(){return{type:CLEAR_SCROLL_TO}};function getScrollParent(element,includeHidden){var LAST_RESORT=document.documentElement;var style=getComputedStyle(element);var excludeStaticParent=style.position==="absolute";var overflowRegex=includeHidden?/(auto|scroll|hidden)/:/(auto|scroll)/;if(style.position==="fixed")return LAST_RESORT;for(var parent=element;parent=parent.parentElement;){style=getComputedStyle(parent);if(excludeStaticParent&&style.position==="static"){continue}if(overflowRegex.test(style.overflow+style.overflowY+style.overflowX))return parent}return LAST_RESORT}exports.default={fn:{getScrollParent:getScrollParent},statePlugins:{layout:{actions:{scrollToElement:scrollToElement,scrollTo:scrollTo,clearScrollTo:clearScrollTo,readyToScroll:readyToScroll,parseDeepLinkHash:parseDeepLinkHash},selectors:{getScrollToKey:function getScrollToKey(state){return state.get("scrollToKey")},isShownKeyFromUrlHashArray:function isShownKeyFromUrlHashArray(state,urlHashArray){var _urlHashArray2=(0,_slicedToArray3.default)(urlHashArray,2),tag=_urlHashArray2[0],operationId=_urlHashArray2[1];if(operationId){return["operations",tag,operationId]}else if(tag){return["operations-tag",tag]}return[]},urlHashArrayFromIsShownKey:function urlHashArrayFromIsShownKey(state,isShownKey){var _isShownKey2=(0,_slicedToArray3.default)(isShownKey,3),type=_isShownKey2[0],tag=_isShownKey2[1],operationId=_isShownKey2[2];if(type=="operations"){return[tag,operationId]}else if(type=="operations-tag"){return[tag]}return[]}},reducers:(_reducers={},(0,_defineProperty3.default)(_reducers,SCROLL_TO,function(state,action){return state.set("scrollToKey",_immutable2.default.fromJS(action.payload))}),(0,_defineProperty3.default)(_reducers,CLEAR_SCROLL_TO,function(state){return state.delete("scrollToKey")}),_reducers),wrapActions:{show:show}}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var setHash=exports.setHash=function setHash(value){if(value){return history.pushState(null,null,"#"+value)}else{return window.location.hash=""}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Wrapper=function Wrapper(Ori,system){return function(_React$Component){(0,_inherits3.default)(OperationWrapper,_React$Component);function OperationWrapper(){var _ref;var _temp,_this,_ret;(0,_classCallCheck3.default)(this,OperationWrapper);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=(0,_possibleConstructorReturn3.default)(this,(_ref=OperationWrapper.__proto__||(0,_getPrototypeOf2.default)(OperationWrapper)).call.apply(_ref,[this].concat(args))),_this),_this.onLoad=function(ref){var operation=_this.props.operation;var _operation$toObject=operation.toObject(),tag=_operation$toObject.tag,operationId=_operation$toObject.operationId;var isShownKey=["operations",tag,operationId];system.layoutActions.readyToScroll(isShownKey,ref)},_temp),(0,_possibleConstructorReturn3.default)(_this,_ret)}(0,_createClass3.default)(OperationWrapper,[{key:"render",value:function render(){return _react2.default.createElement("span",{ref:this.onLoad},_react2.default.createElement(Ori,this.props))}}]);return OperationWrapper}(_react2.default.Component)};exports.default=Wrapper},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Wrapper=function Wrapper(Ori,system){return function(_React$Component){(0,_inherits3.default)(OperationTagWrapper,_React$Component);function OperationTagWrapper(){var _ref;var _temp,_this,_ret;(0,_classCallCheck3.default)(this,OperationTagWrapper);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=(0,_possibleConstructorReturn3.default)(this,(_ref=OperationTagWrapper.__proto__||(0,_getPrototypeOf2.default)(OperationTagWrapper)).call.apply(_ref,[this].concat(args))),_this),_this.onLoad=function(ref){var tag=_this.props.tag;var isShownKey=["operations-tag",tag];system.layoutActions.readyToScroll(isShownKey,ref)},_temp),(0,_possibleConstructorReturn3.default)(_this,_ret)}(0,_createClass3.default)(OperationTagWrapper,[{key:"render",value:function render(){return _react2.default.createElement("span",{ref:this.onLoad},_react2.default.createElement(Ori,this.props))}}]);return OperationTagWrapper}(_react2.default.Component)};exports.default=Wrapper},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{fn:{opsFilter:_opsFilter2.default}}};var _opsFilter=__webpack_require__(257);var _opsFilter2=_interopRequireDefault(_opsFilter);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(taggedOps,phrase){return taggedOps.filter(function(tagObj,tag){return tag.indexOf(phrase)!==-1})}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{statePlugins:{spec:{wrapActions:{updateSpec:function updateSpec(ori){return function(){engaged=true;return ori.apply(undefined,arguments)}},updateJsonSpec:function updateJsonSpec(ori,system){return function(){var cb=system.getConfigs().onComplete;if(engaged&&typeof cb==="function"){setTimeout(cb,0);engaged=false}return ori.apply(undefined,arguments)}}}}}}};var engaged=false},function(module,exports){module.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwcHgiICBoZWlnaHQ9IjIwMHB4IiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiIGNsYXNzPSJsZHMtcm9sbGluZyIgc3R5bGU9ImJhY2tncm91bmQtaW1hZ2U6IG5vbmU7IGJhY2tncm91bmQtcG9zaXRpb246IGluaXRpYWwgaW5pdGlhbDsgYmFja2dyb3VuZC1yZXBlYXQ6IGluaXRpYWwgaW5pdGlhbDsiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIGZpbGw9Im5vbmUiIG5nLWF0dHItc3Ryb2tlPSJ7e2NvbmZpZy5jb2xvcn19IiBuZy1hdHRyLXN0cm9rZS13aWR0aD0ie3tjb25maWcud2lkdGh9fSIgbmctYXR0ci1yPSJ7e2NvbmZpZy5yYWRpdXN9fSIgbmctYXR0ci1zdHJva2UtZGFzaGFycmF5PSJ7e2NvbmZpZy5kYXNoYXJyYXl9fSIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjEwIiByPSIzNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTY0LjkzMzYxNDMxMzQ2NDE1IDU2Ljk3Nzg3MTQzNzgyMTM4Ij48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgY2FsY01vZGU9ImxpbmVhciIgdmFsdWVzPSIwIDUwIDUwOzM2MCA1MCA1MCIga2V5VGltZXM9IjA7MSIgZHVyPSIxcyIgYmVnaW49IjBzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlVHJhbnNmb3JtPjwvY2lyY2xlPjwvc3ZnPgo="},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Collapse=exports.Link=exports.Select=exports.Input=exports.TextArea=exports.Button=exports.Row=exports.Col=exports.Container=undefined;var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _objectWithoutProperties2=__webpack_require__(71);var _objectWithoutProperties3=_interopRequireDefault(_objectWithoutProperties2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function xclass(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return args.filter(function(a){return!!a}).join(" ").trim()}var Container=exports.Container=function(_React$Component){(0,_inherits3.default)(Container,_React$Component);function Container(){(0,_classCallCheck3.default)(this,Container);return(0,_possibleConstructorReturn3.default)(this,(Container.__proto__||(0,_getPrototypeOf2.default)(Container)).apply(this,arguments))}(0,_createClass3.default)(Container,[{key:"render",value:function render(){var _props=this.props,fullscreen=_props.fullscreen,full=_props.full,rest=(0,_objectWithoutProperties3.default)(_props,["fullscreen","full"]);if(fullscreen)return _react2.default.createElement("section",rest);var containerClass="swagger-container"+(full?"-full":"");return _react2.default.createElement("section",(0,_extends3.default)({},rest,{className:xclass(rest.className,containerClass)}))}}]);return Container}(_react2.default.Component);var DEVICES={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};var Col=exports.Col=function(_React$Component2){(0,_inherits3.default)(Col,_React$Component2);function Col(){(0,_classCallCheck3.default)(this,Col);return(0,_possibleConstructorReturn3.default)(this,(Col.__proto__||(0,_getPrototypeOf2.default)(Col)).apply(this,arguments))}(0,_createClass3.default)(Col,[{key:"render",value:function render(){var _props2=this.props,hide=_props2.hide,keepContents=_props2.keepContents,mobile=_props2.mobile,tablet=_props2.tablet,desktop=_props2.desktop,large=_props2.large,rest=(0,_objectWithoutProperties3.default)(_props2,["hide","keepContents","mobile","tablet","desktop","large"]);if(hide&&!keepContents)return _react2.default.createElement("span",null);var classesAr=[];for(var device in DEVICES){if(!DEVICES.hasOwnProperty(device)){continue}var deviceClass=DEVICES[device];if(device in this.props){var val=this.props[device];if(val<1){classesAr.push("none"+deviceClass);continue}classesAr.push("block"+deviceClass);classesAr.push("col-"+val+deviceClass)}}var classes=xclass.apply(undefined,[rest.className].concat(classesAr));return _react2.default.createElement("section",(0,_extends3.default)({},rest,{style:{display:hide?"none":null},className:classes}))}}]);return Col}(_react2.default.Component);var Row=exports.Row=function(_React$Component3){(0,_inherits3.default)(Row,_React$Component3);function Row(){(0,_classCallCheck3.default)(this,Row);return(0,_possibleConstructorReturn3.default)(this,(Row.__proto__||(0,_getPrototypeOf2.default)(Row)).apply(this,arguments))}(0,_createClass3.default)(Row,[{key:"render",value:function render(){return _react2.default.createElement("div",(0,_extends3.default)({},this.props,{className:xclass(this.props.className,"wrapper")}))}}]);return Row}(_react2.default.Component);var Button=exports.Button=function(_React$Component4){(0,_inherits3.default)(Button,_React$Component4);function Button(){(0,_classCallCheck3.default)(this,Button);return(0,_possibleConstructorReturn3.default)(this,(Button.__proto__||(0,_getPrototypeOf2.default)(Button)).apply(this,arguments))}(0,_createClass3.default)(Button,[{key:"render",value:function render(){return _react2.default.createElement("button",(0,_extends3.default)({},this.props,{className:xclass(this.props.className,"button")}))}}]);return Button}(_react2.default.Component);Button.defaultProps={className:""};var TextArea=exports.TextArea=function TextArea(props){return _react2.default.createElement("textarea",props)};var Input=exports.Input=function Input(props){return _react2.default.createElement("input",props)};var Select=exports.Select=function(_React$Component5){(0,_inherits3.default)(Select,_React$Component5);function Select(props,context){(0,_classCallCheck3.default)(this,Select);var _this5=(0,_possibleConstructorReturn3.default)(this,(Select.__proto__||(0,_getPrototypeOf2.default)(Select)).call(this,props,context));_initialiseProps.call(_this5);var value=void 0;if(props.value){value=props.value}else{value=props.multiple?[""]:""}_this5.state={value:value};return _this5}(0,_createClass3.default)(Select,[{key:"render",value:function render(){var _props3=this.props,allowedValues=_props3.allowedValues,multiple=_props3.multiple,allowEmptyValue=_props3.allowEmptyValue;var value=this.state.value.toJS?this.state.value.toJS():this.state.value;return _react2.default.createElement("select",{className:this.props.className,multiple:multiple,value:value,onChange:this.onChange},allowEmptyValue?_react2.default.createElement("option",{value:""},"--"):null,allowedValues.map(function(item,key){return _react2.default.createElement("option",{key:key,value:String(item)},String(item))}))}}]);return Select}(_react2.default.Component);Select.defaultProps={multiple:false,allowEmptyValue:true};var _initialiseProps=function _initialiseProps(){var _this8=this;this.onChange=function(e){var _props5=_this8.props,onChange=_props5.onChange,multiple=_props5.multiple;var options=[].slice.call(e.target.options);var value=void 0;if(multiple){value=options.filter(function(option){return option.selected}).map(function(option){return option.value})}else{value=e.target.value}_this8.setState({value:value});onChange&&onChange(value)}};var Link=exports.Link=function(_React$Component6){(0,_inherits3.default)(Link,_React$Component6);function Link(){(0,_classCallCheck3.default)(this,Link);return(0,_possibleConstructorReturn3.default)(this,(Link.__proto__||(0,_getPrototypeOf2.default)(Link)).apply(this,arguments))}(0,_createClass3.default)(Link,[{key:"render",value:function render(){return _react2.default.createElement("a",(0,_extends3.default)({},this.props,{rel:"noopener noreferrer",className:xclass(this.props.className,"link")}))}}]);return Link}(_react2.default.Component);var NoMargin=function NoMargin(_ref){var children=_ref.children;return _react2.default.createElement("div",{style:{height:"auto",border:"none",margin:0,padding:0}}," ",children," ")};var Collapse=exports.Collapse=function(_React$Component7){(0,_inherits3.default)(Collapse,_React$Component7);function Collapse(){(0,_classCallCheck3.default)(this,Collapse);return(0,_possibleConstructorReturn3.default)(this,(Collapse.__proto__||(0,_getPrototypeOf2.default)(Collapse)).apply(this,arguments))}(0,_createClass3.default)(Collapse,[{key:"renderNotAnimated",value:function renderNotAnimated(){if(!this.props.isOpened)return _react2.default.createElement("noscript",null);return _react2.default.createElement(NoMargin,null,this.props.children)}},{key:"render",value:function render(){var _props4=this.props,animated=_props4.animated,isOpened=_props4.isOpened,children=_props4.children;if(!animated)return this.renderNotAnimated();children=isOpened?children:null;return _react2.default.createElement(NoMargin,null,children)}}]);return Collapse}(_react2.default.Component);Collapse.defaultProps={isOpened:false,animated:false}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _reactImmutablePureComponent=__webpack_require__(636);var _reactImmutablePureComponent2=_interopRequireDefault(_reactImmutablePureComponent);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Model=function(_ImmutablePureCompone){(0,_inherits3.default)(Model,_ImmutablePureCompone);function Model(){var _ref;var _temp,_this,_ret;(0,_classCallCheck3.default)(this,Model);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=(0,_possibleConstructorReturn3.default)(this,(_ref=Model.__proto__||(0,_getPrototypeOf2.default)(Model)).call.apply(_ref,[this].concat(args))),_this),_this.getModelName=function(ref){if(ref.indexOf("#/definitions/")!==-1){return ref.replace(/^.*#\/definitions\//,"")}if(ref.indexOf("#/components/schemas/")!==-1){return ref.replace(/^.*#\/components\/schemas\//,"")}},_this.getRefSchema=function(model){var specSelectors=_this.props.specSelectors;return specSelectors.findDefinition(model)},_temp),(0,_possibleConstructorReturn3.default)(_this,_ret)}(0,_createClass3.default)(Model,[{key:"render",value:function render(){var _props=this.props,getComponent=_props.getComponent,getConfigs=_props.getConfigs,specSelectors=_props.specSelectors,schema=_props.schema,required=_props.required,name=_props.name,isRef=_props.isRef,specPath=_props.specPath,displayName=_props.displayName;var ObjectModel=getComponent("ObjectModel");var ArrayModel=getComponent("ArrayModel");var PrimitiveModel=getComponent("PrimitiveModel");var type="object";var $$ref=schema&&schema.get("$$ref");if(!name&&$$ref){name=this.getModelName($$ref)}if(!schema&&$$ref){schema=this.getRefSchema(name)}if(!schema){return _react2.default.createElement("span",{className:"model model-title"},_react2.default.createElement("span",{className:"model-title__text"},displayName||name),_react2.default.createElement("img",{src:__webpack_require__(259),height:"20px",width:"20px",style:{marginLeft:"1em",position:"relative",bottom:"0px"}}))}var deprecated=specSelectors.isOAS3()&&schema.get("deprecated");isRef=isRef!==undefined?isRef:!!$$ref;type=schema&&schema.get("type")||type;switch(type){case"object":return _react2.default.createElement(ObjectModel,(0,_extends3.default)({className:"object"},this.props,{specPath:specPath,getConfigs:getConfigs,schema:schema,name:name,deprecated:deprecated,isRef:isRef}));case"array":return _react2.default.createElement(ArrayModel,(0,_extends3.default)({className:"array"},this.props,{getConfigs:getConfigs,schema:schema,name:name,deprecated:deprecated,required:required}));case"string":case"number":case"integer":case"boolean":default:return _react2.default.createElement(PrimitiveModel,(0,_extends3.default)({},this.props,{getComponent:getComponent,getConfigs:getConfigs,schema:schema,name:name,deprecated:deprecated,required:required}))}}}]);return Model}(_reactImmutablePureComponent2.default);Model.propTypes={schema:_reactImmutableProptypes2.default.orderedMap.isRequired,getComponent:_propTypes2.default.func.isRequired,getConfigs:_propTypes2.default.func.isRequired,specSelectors:_propTypes2.default.object.isRequired,name:_propTypes2.default.string,displayName:_propTypes2.default.string,isRef:_propTypes2.default.bool,required:_propTypes2.default.bool,expandDepth:_propTypes2.default.number,depth:_propTypes2.default.number,specPath:_reactImmutableProptypes2.default.list.isRequired};exports.default=Model},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.sanitizer=sanitizer;var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _remarkable=__webpack_require__(263);var _remarkable2=_interopRequireDefault(_remarkable);var _dompurify=__webpack_require__(648);var _dompurify2=_interopRequireDefault(_dompurify);var _classnames=__webpack_require__(75);var _classnames2=_interopRequireDefault(_classnames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}_dompurify2.default.addHook("beforeSanitizeElements",function(current){if(current.href){current.setAttribute("rel","noopener noreferrer")}return current});var isPlainText=function isPlainText(str){return/^[A-Z\s0-9!?\.]+$/gi.test(str)};function Markdown(_ref){var source=_ref.source,_ref$className=_ref.className,className=_ref$className===undefined?"":_ref$className;if(typeof source!=="string"){return null}if(isPlainText(source)){return _react2.default.createElement("div",{className:"markdown"},source)}var md=new _remarkable2.default({html:true,typographer:true,breaks:true,linkify:true,linkTarget:"_blank"});md.core.ruler.disable(["replacements","smartquotes"]);var html=md.render(source);var sanitized=sanitizer(html);if(!source||!html||!sanitized){return null}return _react2.default.createElement("div",{className:(0,_classnames2.default)(className,"markdown"),dangerouslySetInnerHTML:{__html:sanitized}})}exports.default=Markdown;function sanitizer(str){return _dompurify2.default.sanitize(str,{ADD_ATTR:["target"]})}},function(module,exports){module.exports=require("remarkable")},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{components:_components2.default,wrapComponents:_wrapComponents2.default,statePlugins:{spec:{wrapSelectors:specWrapSelectors,selectors:specSelectors},auth:{wrapSelectors:authWrapSelectors},oas3:{actions:oas3Actions,reducers:_reducers2.default,selectors:oas3Selectors}}}};var _wrapSelectors=__webpack_require__(265);var specWrapSelectors=_interopRequireWildcard(_wrapSelectors);var _wrapSelectors2=__webpack_require__(266);var authWrapSelectors=_interopRequireWildcard(_wrapSelectors2);var _selectors=__webpack_require__(267);var specSelectors=_interopRequireWildcard(_selectors);var _components=__webpack_require__(268);var _components2=_interopRequireDefault(_components);var _wrapComponents=__webpack_require__(277);var _wrapComponents2=_interopRequireDefault(_wrapComponents);var _actions=__webpack_require__(151);var oas3Actions=_interopRequireWildcard(_actions);var _selectors2=__webpack_require__(285);var oas3Selectors=_interopRequireWildcard(_selectors2);var _reducers=__webpack_require__(286);var _reducers2=_interopRequireDefault(_reducers);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.isSwagger2=exports.isOAS3=exports.servers=exports.schemes=exports.produces=exports.consumes=exports.basePath=exports.host=exports.securityDefinitions=exports.hasHost=exports.definitions=undefined;var _reselect=__webpack_require__(37);var _selectors=__webpack_require__(99);var _immutable=__webpack_require__(7);var _helpers=__webpack_require__(24);function onlyOAS3(selector){return function(ori,system){return function(){var spec=system.getSystem().specSelectors.specJson();if((0,_helpers.isOAS3)(spec)){return selector.apply(undefined,arguments)}else{return ori.apply(undefined,arguments)}}}}var state=function state(_state){return _state||(0,_immutable.Map)()};var nullSelector=(0,_reselect.createSelector)(function(){return null});var OAS3NullSelector=onlyOAS3(nullSelector);var specJson=(0,_reselect.createSelector)(state,function(spec){return spec.get("json",(0,_immutable.Map)())});var specResolved=(0,_reselect.createSelector)(state,function(spec){return spec.get("resolved",(0,_immutable.Map)())});var spec=function spec(state){var res=specResolved(state);if(res.count()<1)res=specJson(state);return res};var definitions=exports.definitions=onlyOAS3((0,_reselect.createSelector)(spec,function(spec){var res=spec.getIn(["components","schemas"]);return _immutable.Map.isMap(res)?res:(0,_immutable.Map)()}));var hasHost=exports.hasHost=onlyOAS3(function(state){return spec(state).hasIn(["servers",0])});var securityDefinitions=exports.securityDefinitions=onlyOAS3((0,_reselect.createSelector)(_selectors.specJsonWithResolvedSubtrees,function(spec){return spec.getIn(["components","securitySchemes"])||null}));var host=exports.host=OAS3NullSelector;var basePath=exports.basePath=OAS3NullSelector;var consumes=exports.consumes=OAS3NullSelector;var produces=exports.produces=OAS3NullSelector;var schemes=exports.schemes=OAS3NullSelector;var servers=exports.servers=onlyOAS3((0,_reselect.createSelector)(spec,function(spec){return spec.getIn(["servers"])||(0,_immutable.Map)()}));var isOAS3=exports.isOAS3=function isOAS3(ori,system){return function(){var spec=system.getSystem().specSelectors.specJson();return(0,_helpers.isOAS3)(_immutable.Map.isMap(spec)?spec:(0,_immutable.Map)())}};var isSwagger2=exports.isSwagger2=function isSwagger2(ori,system){return function(){var spec=system.getSystem().specSelectors.specJson();return(0,_helpers.isSwagger2)(_immutable.Map.isMap(spec)?spec:(0,_immutable.Map)())}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.definitionsToAuthorize=undefined;var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _reselect=__webpack_require__(37);var _immutable=__webpack_require__(7);var _helpers=__webpack_require__(24);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var state=function state(_state){return _state};function onlyOAS3(selector){return function(ori,system){return function(state){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}var spec=system.getSystem().specSelectors.specJson();if((0,_helpers.isOAS3)(spec)){return selector.apply(undefined,[system].concat(args))}else{return ori.apply(undefined,args)}}}}var definitionsToAuthorize=exports.definitionsToAuthorize=onlyOAS3((0,_reselect.createSelector)(state,function(_ref){var specSelectors=_ref.specSelectors;return specSelectors.securityDefinitions()},function(system,definitions){var list=(0,_immutable.List)();if(!definitions){return list}definitions.entrySeq().forEach(function(_ref2){var _ref3=(0,_slicedToArray3.default)(_ref2,2),defName=_ref3[0],definition=_ref3[1];var type=definition.get("type");if(type==="oauth2"){definition.get("flows").entrySeq().forEach(function(_ref4){var _ref5=(0,_slicedToArray3.default)(_ref4,2),flowKey=_ref5[0],flowVal=_ref5[1];var translatedDef=(0,_immutable.fromJS)({flow:flowKey,authorizationUrl:flowVal.get("authorizationUrl"),tokenUrl:flowVal.get("tokenUrl"),scopes:flowVal.get("scopes"),type:definition.get("type")});list=list.push(new _immutable.Map((0,_defineProperty3.default)({},defName,translatedDef.filter(function(v){return v!==undefined}))))})}if(type==="http"||type==="apiKey"){list=list.push(new _immutable.Map((0,_defineProperty3.default)({},defName,definition)))}});return list}))},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.isSwagger2=exports.servers=undefined;var _reselect=__webpack_require__(37);var _immutable=__webpack_require__(7);var _helpers=__webpack_require__(24);function onlyOAS3(selector){return function(){return function(system){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}var spec=system.getSystem().specSelectors.specJson();if((0,_helpers.isOAS3)(spec)){return selector.apply(undefined,args)}else{return null}}}}var state=function state(_state){return _state||(0,_immutable.Map)()};var specJson=(0,_reselect.createSelector)(state,function(spec){return spec.get("json",(0,_immutable.Map)())});var specResolved=(0,_reselect.createSelector)(state,function(spec){return spec.get("resolved",(0,_immutable.Map)())});var spec=function spec(state){var res=specResolved(state);if(res.count()<1)res=specJson(state);return res};var servers=exports.servers=onlyOAS3((0,_reselect.createSelector)(spec,function(spec){return spec.getIn(["servers"])||(0,_immutable.Map)()}));var isSwagger2=exports.isSwagger2=function isSwagger2(ori,system){return function(){var spec=system.getSystem().specSelectors.specJson();return(0,_helpers.isSwagger2)(spec)}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _callbacks=__webpack_require__(269);var _callbacks2=_interopRequireDefault(_callbacks);var _requestBody=__webpack_require__(270);var _requestBody2=_interopRequireDefault(_requestBody);var _operationLink=__webpack_require__(271);var _operationLink2=_interopRequireDefault(_operationLink);var _servers=__webpack_require__(272);var _servers2=_interopRequireDefault(_servers);var _serversContainer=__webpack_require__(273);var _serversContainer2=_interopRequireDefault(_serversContainer);var _requestBodyEditor=__webpack_require__(274);var _requestBodyEditor2=_interopRequireDefault(_requestBodyEditor);var _httpAuth=__webpack_require__(275);var _httpAuth2=_interopRequireDefault(_httpAuth);var _operationServers=__webpack_require__(276);var _operationServers2=_interopRequireDefault(_operationServers);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default={Callbacks:_callbacks2.default,HttpAuth:_httpAuth2.default,RequestBody:_requestBody2.default,Servers:_servers2.default,ServersContainer:_serversContainer2.default,RequestBodyEditor:_requestBodyEditor2.default,OperationServers:_operationServers2.default,operationLink:_operationLink2.default}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);var _immutable=__webpack_require__(7);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Callbacks=function Callbacks(props){var callbacks=props.callbacks,getComponent=props.getComponent,specPath=props.specPath;var OperationContainer=getComponent("OperationContainer",true);if(!callbacks){return _react2.default.createElement("span",null,"No callbacks")}var callbackElements=callbacks.map(function(callback,callbackName){return _react2.default.createElement("div",{key:callbackName},_react2.default.createElement("h2",null,callbackName),callback.map(function(pathItem,pathItemName){if(pathItemName==="$$ref"){return null}return _react2.default.createElement("div",{key:pathItemName},pathItem.map(function(operation,method){if(method==="$$ref"){return null}var op=(0,_immutable.fromJS)({operation:operation});return _react2.default.createElement(OperationContainer,(0,_extends3.default)({},props,{op:op,key:method,tag:"",method:method,path:pathItemName,specPath:specPath.push(callbackName,pathItemName,method),allowTryItOut:false}))}))}))});return _react2.default.createElement("div",null,callbackElements)};exports.default=Callbacks},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);var _immutable=__webpack_require__(7);var _utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var RequestBody=function RequestBody(_ref){var requestBody=_ref.requestBody,requestBodyValue=_ref.requestBodyValue,getComponent=_ref.getComponent,getConfigs=_ref.getConfigs,specSelectors=_ref.specSelectors,fn=_ref.fn,contentType=_ref.contentType,isExecute=_ref.isExecute,specPath=_ref.specPath,_onChange=_ref.onChange;var handleFile=function handleFile(e){_onChange(e.target.files[0])};var Markdown=getComponent("Markdown");var ModelExample=getComponent("modelExample");var RequestBodyEditor=getComponent("RequestBodyEditor");var _getConfigs=getConfigs(),showCommonExtensions=_getConfigs.showCommonExtensions;var requestBodyDescription=requestBody&&requestBody.get("description")||null;var requestBodyContent=requestBody&&requestBody.get("content")||new _immutable.OrderedMap;contentType=contentType||requestBodyContent.keySeq().first()||"";var mediaTypeValue=requestBodyContent.get(contentType,(0,_immutable.OrderedMap)());var schemaForMediaType=mediaTypeValue.get("schema",(0,_immutable.OrderedMap)());if(!mediaTypeValue.size){return null}var isObjectContent=mediaTypeValue.getIn(["schema","type"])==="object";if(contentType==="application/octet-stream"||contentType.indexOf("image/")===0||contentType.indexOf("audio/")===0||contentType.indexOf("video/")===0){var Input=getComponent("Input");if(!isExecute){return _react2.default.createElement("i",null,"Example values are not available for ",_react2.default.createElement("code",null,"application/octet-stream")," media types.")}return _react2.default.createElement(Input,{type:"file",onChange:handleFile})}if(isObjectContent&&(contentType==="application/x-www-form-urlencoded"||contentType.indexOf("multipart/")===0)&&schemaForMediaType.get("properties",(0,_immutable.OrderedMap)()).size>0){var JsonSchemaForm=getComponent("JsonSchemaForm");var ParameterExt=getComponent("ParameterExt");var bodyProperties=schemaForMediaType.get("properties",(0,_immutable.OrderedMap)());requestBodyValue=_immutable.Map.isMap(requestBodyValue)?requestBodyValue:(0,_immutable.OrderedMap)();return _react2.default.createElement("div",{className:"table-container"},requestBodyDescription&&_react2.default.createElement(Markdown,{source:requestBodyDescription}),_react2.default.createElement("table",null,_react2.default.createElement("tbody",null,bodyProperties.map(function(prop,key){var commonExt=showCommonExtensions?(0,_utils.getCommonExtensions)(prop):null;var required=schemaForMediaType.get("required",(0,_immutable.List)()).includes(key);var type=prop.get("type");var format=prop.get("format");var description=prop.get("description");var currentValue=requestBodyValue.get(key);var initialValue=prop.get("default")||prop.get("example")||"";if(initialValue===""&&type==="object"){initialValue=(0,_utils.getSampleSchema)(prop,false,{includeWriteOnly:true})}if(typeof initialValue!=="string"&&type==="object"){initialValue=(0,_utils.stringify)(initialValue)}var isFile=type==="string"&&(format==="binary"||format==="base64");return _react2.default.createElement("tr",{key:key,className:"parameters","data-property-name":key},_react2.default.createElement("td",{className:"col parameters-col_name"},_react2.default.createElement("div",{className:required?"parameter__name required":"parameter__name"},key,!required?null:_react2.default.createElement("span",{style:{color:"red"}}," *")),_react2.default.createElement("div",{className:"parameter__type"},type,format&&_react2.default.createElement("span",{className:"prop-format"},"($",format,")"),!showCommonExtensions||!commonExt.size?null:commonExt.map(function(v,key){return _react2.default.createElement(ParameterExt,{key:key+"-"+v,xKey:key,xVal:v})})),_react2.default.createElement("div",{className:"parameter__deprecated"},prop.get("deprecated")?"deprecated":null)),_react2.default.createElement("td",{className:"col parameters-col_description"},_react2.default.createElement(Markdown,{source:description}),isExecute?_react2.default.createElement("div",null,_react2.default.createElement(JsonSchemaForm,{fn:fn,dispatchInitialValue:!isFile,schema:prop,description:key,getComponent:getComponent,value:currentValue===undefined?initialValue:currentValue,onChange:function onChange(value){_onChange(value,[key])}})):null))}))))}return _react2.default.createElement("div",null,requestBodyDescription&&_react2.default.createElement(Markdown,{source:requestBodyDescription}),_react2.default.createElement(ModelExample,{getComponent:getComponent,getConfigs:getConfigs,specSelectors:specSelectors,expandDepth:1,isExecute:isExecute,schema:mediaTypeValue.get("schema"),specPath:specPath.push("content",contentType),example:_react2.default.createElement(RequestBodyEditor,{requestBody:requestBody,onChange:_onChange,mediaType:contentType,getComponent:getComponent,isExecute:isExecute,specSelectors:specSelectors})}))};exports.default=RequestBody},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _stringify=__webpack_require__(30);var _stringify2=_interopRequireDefault(_stringify);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var OperationLink=function(_Component){(0,_inherits3.default)(OperationLink,_Component);function OperationLink(){(0,_classCallCheck3.default)(this,OperationLink);return(0,_possibleConstructorReturn3.default)(this,(OperationLink.__proto__||(0,_getPrototypeOf2.default)(OperationLink)).apply(this,arguments))}(0,_createClass3.default)(OperationLink,[{key:"render",value:function render(){var _props=this.props,link=_props.link,name=_props.name,getComponent=_props.getComponent;var Markdown=getComponent("Markdown");var targetOp=link.get("operationId")||link.get("operationRef");var parameters=link.get("parameters")&&link.get("parameters").toJS();var description=link.get("description");return _react2.default.createElement("div",{style:{marginBottom:"1.5em"}},_react2.default.createElement("div",{style:{marginBottom:".5em"}},_react2.default.createElement("b",null,_react2.default.createElement("code",null,name)),description?_react2.default.createElement(Markdown,{source:description}):null),_react2.default.createElement("pre",null,"Operation `",targetOp,"`",_react2.default.createElement("br",null),_react2.default.createElement("br",null),"Parameters ",padString(0,(0,_stringify2.default)(parameters,null,2))||"{}",_react2.default.createElement("br",null)))}}]);return OperationLink}(_react.Component);function padString(n,string){if(typeof string!=="string"){return""}return string.split("\n").map(function(line,i){return i>0?Array(n+1).join(" ")+line:line}).join("\n")}exports.default=OperationLink},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _immutable=__webpack_require__(7);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Servers=function(_React$Component){(0,_inherits3.default)(Servers,_React$Component);function Servers(){var _ref;var _temp,_this,_ret;(0,_classCallCheck3.default)(this,Servers);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=(0,_possibleConstructorReturn3.default)(this,(_ref=Servers.__proto__||(0,_getPrototypeOf2.default)(Servers)).call.apply(_ref,[this].concat(args))),_this),_this.onServerChange=function(e){_this.setServer(e.target.value)},_this.onServerVariableValueChange=function(e){var _this$props=_this.props,setServerVariableValue=_this$props.setServerVariableValue,currentServer=_this$props.currentServer;var variableName=e.target.getAttribute("data-variable");var newVariableValue=e.target.value;if(typeof setServerVariableValue==="function"){setServerVariableValue({server:currentServer,key:variableName,val:newVariableValue})}},_this.setServer=function(value){var setSelectedServer=_this.props.setSelectedServer;setSelectedServer(value)},_temp),(0,_possibleConstructorReturn3.default)(_this,_ret)}(0,_createClass3.default)(Servers,[{key:"componentDidMount",value:function componentDidMount(){var _props=this.props,servers=_props.servers,currentServer=_props.currentServer;if(currentServer){return}this.setServer(servers.first().get("url"))}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){var _props2=this.props,servers=_props2.servers,setServerVariableValue=_props2.setServerVariableValue,getServerVariable=_props2.getServerVariable;if(this.props.currentServer!==nextProps.currentServer){var currentServerDefinition=servers.find(function(v){return v.get("url")===nextProps.currentServer});if(!currentServerDefinition){return this.setServer(servers.first().get("url"))}var currentServerVariableDefs=currentServerDefinition.get("variables")||(0,_immutable.OrderedMap)();currentServerVariableDefs.map(function(val,key){var currentValue=getServerVariable(nextProps.currentServer,key);if(!currentValue){setServerVariableValue({server:nextProps.currentServer,key:key,val:val.get("default")||""})}})}}},{key:"render",value:function render(){var _this2=this;var _props3=this.props,servers=_props3.servers,currentServer=_props3.currentServer,getServerVariable=_props3.getServerVariable,getEffectiveServerValue=_props3.getEffectiveServerValue;var currentServerDefinition=servers.find(function(v){return v.get("url")===currentServer})||(0,_immutable.OrderedMap)();var currentServerVariableDefs=currentServerDefinition.get("variables")||(0,_immutable.OrderedMap)();var shouldShowVariableUI=currentServerVariableDefs.size!==0;return _react2.default.createElement("div",{className:"servers"},_react2.default.createElement("label",{htmlFor:"servers"},_react2.default.createElement("select",{onChange:this.onServerChange},servers.valueSeq().map(function(server){return _react2.default.createElement("option",{value:server.get("url"),key:server.get("url")},server.get("url"),server.get("description")&&" - "+server.get("description"))}).toArray())),shouldShowVariableUI?_react2.default.createElement("div",null,_react2.default.createElement("div",{className:"computed-url"},"Computed URL:",_react2.default.createElement("code",null,getEffectiveServerValue(currentServer))),_react2.default.createElement("h4",null,"Server variables"),_react2.default.createElement("table",null,_react2.default.createElement("tbody",null,currentServerVariableDefs.map(function(val,name){return _react2.default.createElement("tr",{key:name},_react2.default.createElement("td",null,name),_react2.default.createElement("td",null,val.get("enum")?_react2.default.createElement("select",{"data-variable":name,onChange:_this2.onServerVariableValueChange},val.get("enum").map(function(enumValue){return _react2.default.createElement("option",{selected:enumValue===getServerVariable(currentServer,name),key:enumValue,value:enumValue},enumValue)})):_react2.default.createElement("input",{type:"text",value:getServerVariable(currentServer,name)||"",onChange:_this2.onServerVariableValueChange,"data-variable":name})))})))):null)}}]);return Servers}(_react2.default.Component);exports.default=Servers},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ServersContainer=function(_React$Component){(0,_inherits3.default)(ServersContainer,_React$Component);function ServersContainer(){(0,_classCallCheck3.default)(this,ServersContainer);return(0,_possibleConstructorReturn3.default)(this,(ServersContainer.__proto__||(0,_getPrototypeOf2.default)(ServersContainer)).apply(this,arguments))}(0,_createClass3.default)(ServersContainer,[{key:"render",value:function render(){var _props=this.props,specSelectors=_props.specSelectors,oas3Selectors=_props.oas3Selectors,oas3Actions=_props.oas3Actions,getComponent=_props.getComponent;var servers=specSelectors.servers();var Servers=getComponent("Servers");return servers&&servers.size?_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"servers-title"},"Servers"),_react2.default.createElement(Servers,{servers:servers,currentServer:oas3Selectors.selectedServer(),setSelectedServer:oas3Actions.setSelectedServer,setServerVariableValue:oas3Actions.setServerVariableValue,getServerVariable:oas3Selectors.serverVariableValue,getEffectiveServerValue:oas3Selectors.serverEffectiveValue})):null}}]);return ServersContainer}(_react2.default.Component);exports.default=ServersContainer},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _immutable=__webpack_require__(7);var _utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var NOOP=Function.prototype;var RequestBodyEditor=function(_PureComponent){(0,_inherits3.default)(RequestBodyEditor,_PureComponent);function RequestBodyEditor(props,context){(0,_classCallCheck3.default)(this,RequestBodyEditor);var _this=(0,_possibleConstructorReturn3.default)(this,(RequestBodyEditor.__proto__||(0,_getPrototypeOf2.default)(RequestBodyEditor)).call(this,props,context));_this.setValueToSample=function(explicitMediaType){_this.onChange(_this.sample(explicitMediaType))};_this.resetValueToSample=function(explicitMediaType){_this.setState({userDidModify:false});_this.setValueToSample(explicitMediaType)};_this.sample=function(explicitMediaType){var _this$props=_this.props,requestBody=_this$props.requestBody,mediaType=_this$props.mediaType;var mediaTypeValue=requestBody.getIn(["content",explicitMediaType||mediaType]);var schema=mediaTypeValue.get("schema").toJS();var mediaTypeExample=mediaTypeValue.get("example")!==undefined?(0,_utils.stringify)(mediaTypeValue.get("example")):null;return mediaTypeExample||(0,_utils.getSampleSchema)(schema,explicitMediaType||mediaType,{includeWriteOnly:true})};_this.onChange=function(value){_this.setState({value:value});_this.props.onChange(value)};_this.handleOnChange=function(e){var mediaType=_this.props.mediaType;var isJson=/json/i.test(mediaType);var inputValue=isJson?e.target.value.trim():e.target.value;_this.setState({userDidModify:true});_this.onChange(inputValue)};_this.toggleIsEditBox=function(){return _this.setState(function(state){return{isEditBox:!state.isEditBox}})};_this.state={isEditBox:false,userDidModify:false,value:""};return _this}(0,_createClass3.default)(RequestBodyEditor,[{key:"componentDidMount",value:function componentDidMount(){this.setValueToSample.call(this)}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(nextProps){if(this.props.mediaType!==nextProps.mediaType){this.setValueToSample(nextProps.mediaType)}if(!this.props.isExecute&&nextProps.isExecute){this.setState({isEditBox:true})}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){if(this.props.requestBody!==prevProps.requestBody){this.setValueToSample(this.props.mediaType)}}},{key:"render",value:function render(){var _this2=this;var _props=this.props,isExecute=_props.isExecute,getComponent=_props.getComponent,mediaType=_props.mediaType;var Button=getComponent("Button");var TextArea=getComponent("TextArea");var HighlightCode=getComponent("highlightCode");var _state=this.state,value=_state.value,isEditBox=_state.isEditBox,userDidModify=_state.userDidModify;return _react2.default.createElement("div",{className:"body-param"},isEditBox&&isExecute?_react2.default.createElement(TextArea,{className:"body-param__text",value:value,onChange:this.handleOnChange}):value&&_react2.default.createElement(HighlightCode,{className:"body-param__example",value:value}),_react2.default.createElement("div",{className:"body-param-options"},_react2.default.createElement("div",{className:"body-param-edit"},!isExecute?null:_react2.default.createElement(Button,{className:isEditBox?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},isEditBox?"Cancel":"Edit"),userDidModify&&_react2.default.createElement(Button,{className:"btn ml3",onClick:function onClick(){_this2.resetValueToSample(mediaType)}},"Reset"))))}}]);return RequestBodyEditor}(_react.PureComponent);RequestBodyEditor.defaultProps={mediaType:"application/json",requestBody:(0,_immutable.fromJS)({}),onChange:NOOP};exports.default=RequestBodyEditor},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var HttpAuth=function(_React$Component){(0,_inherits3.default)(HttpAuth,_React$Component);function HttpAuth(props,context){(0,_classCallCheck3.default)(this,HttpAuth);var _this=(0,_possibleConstructorReturn3.default)(this,(HttpAuth.__proto__||(0,_getPrototypeOf2.default)(HttpAuth)).call(this,props,context));_initialiseProps.call(_this);var _this$props=_this.props,name=_this$props.name,schema=_this$props.schema;var value=_this.getValue();_this.state={name:name,schema:schema,value:value};return _this}(0,_createClass3.default)(HttpAuth,[{key:"getValue",value:function getValue(){var _props=this.props,name=_props.name,authorized=_props.authorized;return authorized&&authorized.getIn([name,"value"])}},{key:"render",value:function render(){var _props2=this.props,schema=_props2.schema,getComponent=_props2.getComponent,errSelectors=_props2.errSelectors,name=_props2.name;var Input=getComponent("Input");var Row=getComponent("Row");var Col=getComponent("Col");var AuthError=getComponent("authError");var Markdown=getComponent("Markdown");var JumpToPath=getComponent("JumpToPath",true);var scheme=(schema.get("scheme")||"").toLowerCase();var value=this.getValue();var errors=errSelectors.allErrors().filter(function(err){return err.get("authId")===name});if(scheme==="basic"){var username=value?value.get("username"):null;return _react2.default.createElement("div",null,_react2.default.createElement("h4",null,_react2.default.createElement("code",null,name||schema.get("name")),"  (http, Basic)",_react2.default.createElement(JumpToPath,{path:["securityDefinitions",name]})),username&&_react2.default.createElement("h6",null,"Authorized"),_react2.default.createElement(Row,null,_react2.default.createElement(Markdown,{source:schema.get("description")})),_react2.default.createElement(Row,null,_react2.default.createElement("label",null,"Username:"),username?_react2.default.createElement("code",null," ",username," "):_react2.default.createElement(Col,null,_react2.default.createElement(Input,{type:"text",required:"required",name:"username",onChange:this.onChange}))),_react2.default.createElement(Row,null,_react2.default.createElement("label",null,"Password:"),username?_react2.default.createElement("code",null," ****** "):_react2.default.createElement(Col,null,_react2.default.createElement(Input,{required:"required",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),errors.valueSeq().map(function(error,key){return _react2.default.createElement(AuthError,{error:error,key:key})}))}if(scheme==="bearer"){return _react2.default.createElement("div",null,_react2.default.createElement("h4",null,_react2.default.createElement("code",null,name||schema.get("name")),"  (http, Bearer)",_react2.default.createElement(JumpToPath,{path:["securityDefinitions",name]})),value&&_react2.default.createElement("h6",null,"Authorized"),_react2.default.createElement(Row,null,_react2.default.createElement(Markdown,{source:schema.get("description")})),_react2.default.createElement(Row,null,_react2.default.createElement("label",null,"Value:"),value?_react2.default.createElement("code",null," ****** "):_react2.default.createElement(Col,null,_react2.default.createElement(Input,{type:"text",onChange:this.onChange}))),errors.valueSeq().map(function(error,key){return _react2.default.createElement(AuthError,{error:error,key:key})}))}return _react2.default.createElement("div",null,_react2.default.createElement("em",null,_react2.default.createElement("b",null,name)," HTTP authentication: unsupported scheme ","'"+scheme+"'"))}}]);return HttpAuth}(_react2.default.Component);var _initialiseProps=function _initialiseProps(){var _this2=this;this.onChange=function(e){var onChange=_this2.props.onChange;var _e$target=e.target,value=_e$target.value,name=_e$target.name;var newValue=(0,_assign2.default)({},_this2.state.value);if(name){newValue[name]=value}else{newValue=value}_this2.setState({value:newValue},function(){return onChange(_this2.state)})}};exports.default=HttpAuth},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var OperationServers=function(_React$Component){(0,_inherits3.default)(OperationServers,_React$Component);function OperationServers(){var _ref;var _temp,_this,_ret;(0,_classCallCheck3.default)(this,OperationServers);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=(0,_possibleConstructorReturn3.default)(this,(_ref=OperationServers.__proto__||(0,_getPrototypeOf2.default)(OperationServers)).call.apply(_ref,[this].concat(args))),_this),_this.setSelectedServer=function(server){var _this$props=_this.props,path=_this$props.path,method=_this$props.method;_this.forceUpdate();return _this.props.setSelectedServer(server,path+":"+method)},_this.setServerVariableValue=function(obj){var _this$props2=_this.props,path=_this$props2.path,method=_this$props2.method;_this.forceUpdate();return _this.props.setServerVariableValue((0,_extends3.default)({},obj,{namespace:path+":"+method}))},_this.getSelectedServer=function(){var _this$props3=_this.props,path=_this$props3.path,method=_this$props3.method;return _this.props.getSelectedServer(path+":"+method)},_this.getServerVariable=function(server,key){var _this$props4=_this.props,path=_this$props4.path,method=_this$props4.method;return _this.props.getServerVariable({namespace:path+":"+method,server:server},key)},_this.getEffectiveServerValue=function(server){var _this$props5=_this.props,path=_this$props5.path,method=_this$props5.method;return _this.props.getEffectiveServerValue({server:server,namespace:path+":"+method})},_temp),(0,_possibleConstructorReturn3.default)(_this,_ret)}(0,_createClass3.default)(OperationServers,[{key:"render",value:function render(){var _props=this.props,operationServers=_props.operationServers,pathServers=_props.pathServers,getComponent=_props.getComponent;if(!operationServers&&!pathServers){return null}var Servers=getComponent("Servers");var serversToDisplay=operationServers||pathServers;var displaying=operationServers?"operation":"path";return _react2.default.createElement("div",{className:"opblock-section operation-servers"},_react2.default.createElement("div",{className:"opblock-section-header"},_react2.default.createElement("div",{className:"tab-header"},_react2.default.createElement("h4",{className:"opblock-title"},"Servers"))),_react2.default.createElement("div",{className:"opblock-description-wrapper"},_react2.default.createElement("h4",{className:"message"},"These ",displaying,"-level options override the global server options."),_react2.default.createElement(Servers,{servers:serversToDisplay,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}]);return OperationServers}(_react2.default.Component);exports.default=OperationServers},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _markdown=__webpack_require__(278);var _markdown2=_interopRequireDefault(_markdown);var _authItem=__webpack_require__(279);var _authItem2=_interopRequireDefault(_authItem);var _parameters=__webpack_require__(280);var _parameters2=_interopRequireDefault(_parameters);var _versionStamp=__webpack_require__(281);var _versionStamp2=_interopRequireDefault(_versionStamp);var _onlineValidatorBadge=__webpack_require__(282);var _onlineValidatorBadge2=_interopRequireDefault(_onlineValidatorBadge);var _model=__webpack_require__(283);var _model2=_interopRequireDefault(_model);var _jsonSchemaString=__webpack_require__(284);var _jsonSchemaString2=_interopRequireDefault(_jsonSchemaString);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default={Markdown:_markdown2.default,AuthItem:_authItem2.default,parameters:_parameters2.default,JsonSchema_string:_jsonSchemaString2.default,VersionStamp:_versionStamp2.default,model:_model2.default,onlineValidatorBadge:_onlineValidatorBadge2.default}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Markdown=undefined;var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _classnames=__webpack_require__(75);var _classnames2=_interopRequireDefault(_classnames);var _remarkable=__webpack_require__(263);var _remarkable2=_interopRequireDefault(_remarkable);var _helpers=__webpack_require__(24);var _markdown=__webpack_require__(262);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var parser=new _remarkable2.default("commonmark");parser.block.ruler.enable(["table"]);parser.set({linkTarget:"_blank"});var Markdown=exports.Markdown=function Markdown(_ref){var source=_ref.source,_ref$className=_ref.className,className=_ref$className===undefined?"":_ref$className;if(typeof source!=="string"){return null}if(source){var html=parser.render(source);var sanitized=(0,_markdown.sanitizer)(html);var trimmed=void 0;if(typeof sanitized==="string"){trimmed=sanitized.trim()}return _react2.default.createElement("div",{dangerouslySetInnerHTML:{__html:trimmed},className:(0,_classnames2.default)(className,"renderedMarkdown")})}return null};exports.default=(0,_helpers.OAS3ComponentWrapFactory)(Markdown)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _objectWithoutProperties2=__webpack_require__(71);var _objectWithoutProperties3=_interopRequireDefault(_objectWithoutProperties2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _helpers=__webpack_require__(24);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(0,_helpers.OAS3ComponentWrapFactory)(function(_ref){var Ori=_ref.Ori,props=(0,_objectWithoutProperties3.default)(_ref,["Ori"]);var schema=props.schema,getComponent=props.getComponent,errSelectors=props.errSelectors,authorized=props.authorized,onAuthChange=props.onAuthChange,name=props.name;var HttpAuth=getComponent("HttpAuth");var type=schema.get("type");if(type==="http"){return _react2.default.createElement(HttpAuth,{key:name,schema:schema,name:name,errSelectors:errSelectors,authorized:authorized,getComponent:getComponent,onChange:onAuthChange})}else{return _react2.default.createElement(Ori,props)}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _toConsumableArray2=__webpack_require__(70);var _toConsumableArray3=_interopRequireDefault(_toConsumableArray2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _immutable=__webpack_require__(7);var _immutable2=_interopRequireDefault(_immutable);var _reactImmutableProptypes=__webpack_require__(9);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);var _helpers=__webpack_require__(24);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var eachMap=function eachMap(iterable,fn){return iterable.valueSeq().filter(_immutable2.default.Map.isMap).map(fn)};var Parameters=function(_Component){(0,_inherits3.default)(Parameters,_Component);function Parameters(props){(0,_classCallCheck3.default)(this,Parameters);var _this=(0,_possibleConstructorReturn3.default)(this,(Parameters.__proto__||(0,_getPrototypeOf2.default)(Parameters)).call(this,props));_this.onChange=function(param,value,isXml){var _this$props=_this.props,changeParamByIdentity=_this$props.specActions.changeParamByIdentity,onChangeKey=_this$props.onChangeKey;changeParamByIdentity(onChangeKey,param,value,isXml)};_this.onChangeConsumesWrapper=function(val){var _this$props2=_this.props,changeConsumesValue=_this$props2.specActions.changeConsumesValue,onChangeKey=_this$props2.onChangeKey;changeConsumesValue(onChangeKey,val)};_this.toggleTab=function(tab){if(tab==="parameters"){return _this.setState({parametersVisible:true,callbackVisible:false})}else if(tab==="callbacks"){return _this.setState({callbackVisible:true,parametersVisible:false})}};_this.state={callbackVisible:false,parametersVisible:true};return _this}(0,_createClass3.default)(Parameters,[{key:"render",value:function render(){var _this2=this;var _props=this.props,onTryoutClick=_props.onTryoutClick,onCancelClick=_props.onCancelClick,parameters=_props.parameters,allowTryItOut=_props.allowTryItOut,tryItOutEnabled=_props.tryItOutEnabled,fn=_props.fn,getComponent=_props.getComponent,getConfigs=_props.getConfigs,specSelectors=_props.specSelectors,specActions=_props.specActions,oas3Actions=_props.oas3Actions,oas3Selectors=_props.oas3Selectors,pathMethod=_props.pathMethod,specPath=_props.specPath,operation=_props.operation;var ParameterRow=getComponent("parameterRow");var TryItOutButton=getComponent("TryItOutButton");var ContentType=getComponent("contentType");var Callbacks=getComponent("Callbacks",true);var RequestBody=getComponent("RequestBody",true);var isExecute=tryItOutEnabled&&allowTryItOut;var isOAS3=specSelectors.isOAS3;var requestBody=operation.get("requestBody");var requestBodySpecPath=specPath.slice(0,-1).push("requestBody");return _react2.default.createElement("div",{className:"opblock-section"},_react2.default.createElement("div",{className:"opblock-section-header"},_react2.default.createElement("div",{className:"tab-header"},_react2.default.createElement("div",{onClick:function onClick(){return _this2.toggleTab("parameters")},className:"tab-item "+(this.state.parametersVisible&&"active")},_react2.default.createElement("h4",{className:"opblock-title"},_react2.default.createElement("span",null,"Parameters"))),operation.get("callbacks")?_react2.default.createElement("div",{onClick:function onClick(){return _this2.toggleTab("callbacks")},className:"tab-item "+(this.state.callbackVisible&&"active")},_react2.default.createElement("h4",{className:"opblock-title"},_react2.default.createElement("span",null,"Callbacks"))):null),allowTryItOut?_react2.default.createElement(TryItOutButton,{enabled:tryItOutEnabled,onCancelClick:onCancelClick,onTryoutClick:onTryoutClick}):null),this.state.parametersVisible?_react2.default.createElement("div",{className:"parameters-container"},!parameters.count()?_react2.default.createElement("div",{className:"opblock-description-wrapper"},_react2.default.createElement("p",null,"No parameters")):_react2.default.createElement("div",{className:"table-container"},_react2.default.createElement("table",{className:"parameters"},_react2.default.createElement("thead",null,_react2.default.createElement("tr",null,_react2.default.createElement("th",{className:"col col_header parameters-col_name"},"Name"),_react2.default.createElement("th",{className:"col col_header parameters-col_description"},"Description"))),_react2.default.createElement("tbody",null,eachMap(parameters,function(parameter,i){return _react2.default.createElement(ParameterRow,{fn:fn,getComponent:getComponent,specPath:specPath.push(i),getConfigs:getConfigs,rawParam:parameter,param:specSelectors.parameterWithMetaByIdentity(pathMethod,parameter),key:parameter.get("name"),onChange:_this2.onChange,onChangeConsumes:_this2.onChangeConsumesWrapper,specSelectors:specSelectors,specActions:specActions,pathMethod:pathMethod,isExecute:isExecute})}).toArray())))):"",this.state.callbackVisible?_react2.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},_react2.default.createElement(Callbacks,{callbacks:(0,_immutable.Map)(operation.get("callbacks")),specPath:specPath.slice(0,-1).push("callbacks")})):"",isOAS3()&&requestBody&&this.state.parametersVisible&&_react2.default.createElement("div",{className:"opblock-section opblock-section-request-body"},_react2.default.createElement("div",{className:"opblock-section-header"},_react2.default.createElement("h4",{className:"opblock-title parameter__name "+(requestBody.get("required")&&"required")},"Request body"),_react2.default.createElement("label",null,_react2.default.createElement(ContentType,{value:oas3Selectors.requestContentType.apply(oas3Selectors,(0,_toConsumableArray3.default)(pathMethod)),contentTypes:requestBody.get("content",(0,_immutable.List)()).keySeq(),onChange:function onChange(value){oas3Actions.setRequestContentType({value:value,pathMethod:pathMethod})},className:"body-param-content-type"}))),_react2.default.createElement("div",{className:"opblock-description-wrapper"},_react2.default.createElement(RequestBody,{specPath:requestBodySpecPath,requestBody:requestBody,requestBodyValue:oas3Selectors.requestBodyValue.apply(oas3Selectors,(0,_toConsumableArray3.default)(pathMethod))||(0,_immutable.Map)(),isExecute:isExecute,onChange:function onChange(value,path){if(path){var lastValue=oas3Selectors.requestBodyValue.apply(oas3Selectors,(0,_toConsumableArray3.default)(pathMethod));var usableValue=_immutable.Map.isMap(lastValue)?lastValue:(0,_immutable.Map)();return oas3Actions.setRequestBodyValue({pathMethod:pathMethod,value:usableValue.setIn(path,value)})}oas3Actions.setRequestBodyValue({value:value,pathMethod:pathMethod})},contentType:oas3Selectors.requestContentType.apply(oas3Selectors,(0,_toConsumableArray3.default)(pathMethod))}))))}}]);return Parameters}(_react.Component);Parameters.defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:false,allowTryItOut:true,onChangeKey:[]};exports.default=(0,_helpers.OAS3ComponentWrapFactory)(Parameters)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _helpers=__webpack_require__(24);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(0,_helpers.OAS3ComponentWrapFactory)(function(props){var Ori=props.Ori;return _react2.default.createElement("span",null,_react2.default.createElement(Ori,props),_react2.default.createElement("small",{style:{backgroundColor:"#89bf04"}},_react2.default.createElement("pre",{className:"version"},"OAS3")))})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _helpers=__webpack_require__(24);exports.default=(0,_helpers.OAS3ComponentWrapFactory)(function(){return null})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _extends2=__webpack_require__(21);var _extends3=_interopRequireDefault(_extends2);var _getPrototypeOf=__webpack_require__(4);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(5);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _propTypes=__webpack_require__(1);var _propTypes2=_interopRequireDefault(_propTypes);var _helpers=__webpack_require__(24);var _model=__webpack_require__(261);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ModelComponent=function(_Component){(0,_inherits3.default)(ModelComponent,_Component);function ModelComponent(){(0,_classCallCheck3.default)(this,ModelComponent);return(0,_possibleConstructorReturn3.default)(this,(ModelComponent.__proto__||(0,_getPrototypeOf2.default)(ModelComponent)).apply(this,arguments))}(0,_createClass3.default)(ModelComponent,[{key:"render",value:function render(){var _props=this.props,getConfigs=_props.getConfigs,schema=_props.schema;var classes=["model-box"];var isDeprecated=schema.get("deprecated")===true;var message=null;if(isDeprecated){classes.push("deprecated");message=_react2.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")}return _react2.default.createElement("div",{className:classes.join(" ")},message,_react2.default.createElement(_model.Model,(0,_extends3.default)({},this.props,{getConfigs:getConfigs,depth:1,expandDepth:this.props.expandDepth||0})))}}]);return ModelComponent}(_react.Component);exports.default=(0,_helpers.OAS3ComponentWrapFactory)(ModelComponent)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _objectWithoutProperties2=__webpack_require__(71);var _objectWithoutProperties3=_interopRequireDefault(_objectWithoutProperties2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _helpers=__webpack_require__(24);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(0,_helpers.OAS3ComponentWrapFactory)(function(_ref){var Ori=_ref.Ori,props=(0,_objectWithoutProperties3.default)(_ref,["Ori"]);var schema=props.schema,getComponent=props.getComponent,errors=props.errors,_onChange=props.onChange;var type=schema.type,format=schema.format;var Input=getComponent("Input");if(type==="string"&&(format==="binary"||format==="base64")){return _react2.default.createElement(Input,{type:"file",className:errors.length?"invalid":"",title:errors.length?errors:"",onChange:function onChange(e){_onChange(e.target.files[0])},disabled:Ori.isDisabled})}else{return _react2.default.createElement(Ori,props)}})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.serverEffectiveValue=exports.serverVariables=exports.serverVariableValue=exports.responseContentType=exports.requestContentType=exports.requestBodyValue=exports.selectedServer=undefined;var _immutable=__webpack_require__(7);var _helpers=__webpack_require__(24);function onlyOAS3(selector){return function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return function(system){var spec=system.getSystem().specSelectors.specJson();if((0,_helpers.isOAS3)(spec)){return selector.apply(undefined,args)}else{return null}}}}var selectedServer=exports.selectedServer=onlyOAS3(function(state,namespace){var path=namespace?[namespace,"selectedServer"]:["selectedServer"];return state.getIn(path)||""});var requestBodyValue=exports.requestBodyValue=onlyOAS3(function(state,path,method){return state.getIn(["requestData",path,method,"bodyValue"])||null});var requestContentType=exports.requestContentType=onlyOAS3(function(state,path,method){return state.getIn(["requestData",path,method,"requestContentType"])||null});var responseContentType=exports.responseContentType=onlyOAS3(function(state,path,method){return state.getIn(["requestData",path,method,"responseContentType"])||null});var serverVariableValue=exports.serverVariableValue=onlyOAS3(function(state,locationData,key){var path=void 0;if(typeof locationData!=="string"){var server=locationData.server,namespace=locationData.namespace;if(namespace){path=[namespace,"serverVariableValues",server,key]}else{path=["serverVariableValues",server,key]}}else{var _server=locationData;path=["serverVariableValues",_server,key]}return state.getIn(path)||null});var serverVariables=exports.serverVariables=onlyOAS3(function(state,locationData){var path=void 0;if(typeof locationData!=="string"){var server=locationData.server,namespace=locationData.namespace;if(namespace){path=[namespace,"serverVariableValues",server]}else{path=["serverVariableValues",server]}}else{var _server2=locationData;path=["serverVariableValues",_server2]}return state.getIn(path)||(0,_immutable.OrderedMap)()});var serverEffectiveValue=exports.serverEffectiveValue=onlyOAS3(function(state,locationData){var varValues,serverValue;if(typeof locationData!=="string"){var server=locationData.server,namespace=locationData.namespace;serverValue=server;if(namespace){varValues=state.getIn([namespace,"serverVariableValues",serverValue])}else{varValues=state.getIn(["serverVariableValues",serverValue])}}else{serverValue=locationData;varValues=state.getIn(["serverVariableValues",serverValue])}varValues=varValues||(0,_immutable.OrderedMap)();var str=serverValue;varValues.map(function(val,key){str=str.replace(new RegExp("{"+key+"}","g"),val)});return str})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _slicedToArray2=__webpack_require__(13);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _UPDATE_SELECTED_SERV;var _actions=__webpack_require__(151);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=(_UPDATE_SELECTED_SERV={},(0,_defineProperty3.default)(_UPDATE_SELECTED_SERV,_actions.UPDATE_SELECTED_SERVER,function(state,_ref){var _ref$payload=_ref.payload,selectedServerUrl=_ref$payload.selectedServerUrl,namespace=_ref$payload.namespace;var path=namespace?[namespace,"selectedServer"]:["selectedServer"];return state.setIn(path,selectedServerUrl)}),(0,_defineProperty3.default)(_UPDATE_SELECTED_SERV,_actions.UPDATE_REQUEST_BODY_VALUE,function(state,_ref2){var _ref2$payload=_ref2.payload,value=_ref2$payload.value,pathMethod=_ref2$payload.pathMethod;var _pathMethod=(0,_slicedToArray3.default)(pathMethod,2),path=_pathMethod[0],method=_pathMethod[1];return state.setIn(["requestData",path,method,"bodyValue"],value)}),(0,_defineProperty3.default)(_UPDATE_SELECTED_SERV,_actions.UPDATE_REQUEST_CONTENT_TYPE,function(state,_ref3){var _ref3$payload=_ref3.payload,value=_ref3$payload.value,pathMethod=_ref3$payload.pathMethod;var _pathMethod2=(0,_slicedToArray3.default)(pathMethod,2),path=_pathMethod2[0],method=_pathMethod2[1];return state.setIn(["requestData",path,method,"requestContentType"],value)}),(0,_defineProperty3.default)(_UPDATE_SELECTED_SERV,_actions.UPDATE_RESPONSE_CONTENT_TYPE,function(state,_ref4){var _ref4$payload=_ref4.payload,value=_ref4$payload.value,path=_ref4$payload.path,method=_ref4$payload.method;return state.setIn(["requestData",path,method,"responseContentType"],value)}),(0,_defineProperty3.default)(_UPDATE_SELECTED_SERV,_actions.UPDATE_SERVER_VARIABLE_VALUE,function(state,_ref5){var _ref5$payload=_ref5.payload,server=_ref5$payload.server,namespace=_ref5$payload.namespace,key=_ref5$payload.key,val=_ref5$payload.val;var path=namespace?[namespace,"serverVariableValues",server,key]:["serverVariableValues",server,key];return state.setIn(path,val)}),_UPDATE_SELECTED_SERV)},function(module,exports,__webpack_require__){"use strict";var _utils=__webpack_require__(8);var request=__webpack_require__(652);request.keys().forEach(function(key){if(key==="./index.js"){return}var mod=request(key);module.exports[(0,_utils.pascalCaseFilename)(key)]=mod.default?mod.default:mod})},function(module,exports,__webpack_require__){__webpack_require__(289);__webpack_require__(290);module.exports=__webpack_require__(359)},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}if(typeof _window2.default.Promise==="undefined"){__webpack_require__(301)}if(!String.prototype.startsWith){__webpack_require__(330)}},function(module,exports,__webpack_require__){__webpack_require__(77);__webpack_require__(61);module.exports=__webpack_require__(300)},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(293);var step=__webpack_require__(294);var Iterators=__webpack_require__(46);var toIObject=__webpack_require__(47);module.exports=__webpack_require__(153)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind=="keys")return step(0,index);if(kind=="values")return step(0,O[index]);return step(0,[index,O[index]])},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},function(module,exports){module.exports=function(){}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(104);var descriptor=__webpack_require__(58);var setToStringTag=__webpack_require__(81);var IteratorPrototype={};__webpack_require__(38)(IteratorPrototype,__webpack_require__(14)("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var dP=__webpack_require__(29);var anObject=__webpack_require__(27);var getKeys=__webpack_require__(59);module.exports=__webpack_require__(34)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(47);var toLength=__webpack_require__(105);var toAbsoluteIndex=__webpack_require__(298);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(106);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(106);var defined=__webpack_require__(101);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var get=__webpack_require__(110);module.exports=__webpack_require__(10).getIterator=function(it){var iterFn=get(it);if(typeof iterFn!="function")throw TypeError(it+" is not iterable!");return anObject(iterFn.call(it))}},function(module,exports,__webpack_require__){__webpack_require__(302);__webpack_require__(161);__webpack_require__(313);__webpack_require__(317);__webpack_require__(328);__webpack_require__(329);module.exports=__webpack_require__(42).Promise},function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(112);var test={};test[__webpack_require__(12)("toStringTag")]="z";if(test+""!="[object z]"){__webpack_require__(50)(Object.prototype,"toString",function toString(){return"[object "+classof(this)+"]"},true)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(63)&&!__webpack_require__(64)(function(){return Object.defineProperty(__webpack_require__(114)("div"),"a",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(51);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=="function"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(306);var descriptor=__webpack_require__(160);var setToStringTag=__webpack_require__(116);var IteratorPrototype={};__webpack_require__(40)(IteratorPrototype,__webpack_require__(12)("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(41);var dPs=__webpack_require__(307);var enumBugKeys=__webpack_require__(167);var IE_PROTO=__webpack_require__(115)("IE_PROTO");var Empty=function(){};var PROTOTYPE="prototype";var createDict=function(){var iframe=__webpack_require__(114)("iframe");var i=enumBugKeys.length;var lt="<";var gt=">";var iframeDocument;iframe.style.display="none";__webpack_require__(168).appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+"script"+gt+"document.F=Object"+lt+"/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(82);var anObject=__webpack_require__(41);var getKeys=__webpack_require__(165);module.exports=__webpack_require__(63)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var has=__webpack_require__(83);var toIObject=__webpack_require__(87);var arrayIndexOf=__webpack_require__(310)(false);var IE_PROTO=__webpack_require__(115)("IE_PROTO");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var cof=__webpack_require__(62);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(87);var toLength=__webpack_require__(66);var toAbsoluteIndex=__webpack_require__(166);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var has=__webpack_require__(83);var toObject=__webpack_require__(312);var IE_PROTO=__webpack_require__(115)("IE_PROTO");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var defined=__webpack_require__(35);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){var $iterators=__webpack_require__(314);var getKeys=__webpack_require__(165);var redefine=__webpack_require__(50);var global=__webpack_require__(23);var hide=__webpack_require__(40);var Iterators=__webpack_require__(65);var wks=__webpack_require__(12);var ITERATOR=wks("iterator");var TO_STRING_TAG=wks("toStringTag");var ArrayValues=Iterators.Array;var DOMIterables={CSSRuleList:true,CSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,MimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,TextTrackCueList:false,TextTrackList:false,TouchList:false};for(var collections=getKeys(DOMIterables),i=0;i<collections.length;i++){var NAME=collections[i];var explicit=DOMIterables[NAME];var Collection=global[NAME];var proto=Collection&&Collection.prototype;var key;if(proto){if(!proto[ITERATOR])hide(proto,ITERATOR,ArrayValues);if(!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=ArrayValues;if(explicit)for(key in $iterators)if(!proto[key])redefine(proto,key,$iterators[key],true)}}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(315);var step=__webpack_require__(316);var Iterators=__webpack_require__(65);var toIObject=__webpack_require__(87);module.exports=__webpack_require__(163)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind=="keys")return step(0,index);if(kind=="values")return step(0,O[index]);return step(0,[index,O[index]])},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},function(module,exports,__webpack_require__){var UNSCOPABLES=__webpack_require__(12)("unscopables");var ArrayProto=Array.prototype;if(ArrayProto[UNSCOPABLES]==undefined)__webpack_require__(40)(ArrayProto,UNSCOPABLES,{});module.exports=function(key){ArrayProto[UNSCOPABLES][key]=true}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(164);var global=__webpack_require__(23);var ctx=__webpack_require__(85);var classof=__webpack_require__(112);var $export=__webpack_require__(16);var isObject=__webpack_require__(51);var aFunction=__webpack_require__(86);var anInstance=__webpack_require__(318);var forOf=__webpack_require__(319);var speciesConstructor=__webpack_require__(169);var task=__webpack_require__(170).set;var microtask=__webpack_require__(324)();var newPromiseCapabilityModule=__webpack_require__(117);var perform=__webpack_require__(171);var promiseResolve=__webpack_require__(172);var PROMISE="Promise";var TypeError=global.TypeError;var process=global.process;var $Promise=global[PROMISE];var isNode=classof(process)=="process";var empty=function(){};var Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper;var newPromiseCapability=newGenericPromiseCapability=newPromiseCapabilityModule.f;var USE_NATIVE=!!function(){try{var promise=$Promise.resolve(1);var FakePromise=(promise.constructor={})[__webpack_require__(12)("species")]=function(exec){exec(empty,empty)};return(isNode||typeof PromiseRejectionEvent=="function")&&promise.then(empty)instanceof FakePromise}catch(e){}}();var isThenable=function(it){var then;return isObject(it)&&typeof(then=it.then)=="function"?then:false};var notify=function(promise,isReject){if(promise._n)return;promise._n=true;var chain=promise._c;microtask(function(){var value=promise._v;var ok=promise._s==1;var i=0;var run=function(reaction){var handler=ok?reaction.ok:reaction.fail;var resolve=reaction.resolve;var reject=reaction.reject;var domain=reaction.domain;var result,then,exited;try{if(handler){if(!ok){if(promise._h==2)onHandleUnhandled(promise);promise._h=1}if(handler===true)result=value;else{if(domain)domain.enter();result=handler(value);if(domain){domain.exit();exited=true}}if(result===reaction.promise){reject(TypeError("Promise-chain cycle"))}else if(then=isThenable(result)){then.call(result,resolve,reject)}else resolve(result)}else reject(value)}catch(e){if(domain&&!exited)domain.exit();reject(e)}};while(chain.length>i)run(chain[i++]);promise._c=[];promise._n=false;if(isReject&&!promise._h)onUnhandled(promise)})};var onUnhandled=function(promise){task.call(global,function(){var value=promise._v;var unhandled=isUnhandled(promise);var result,handler,console;if(unhandled){result=perform(function(){if(isNode){process.emit("unhandledRejection",value,promise)}else if(handler=global.onunhandledrejection){handler({promise:promise,reason:value})}else if((console=global.console)&&console.error){console.error("Unhandled promise rejection",value)}});promise._h=isNode||isUnhandled(promise)?2:1}promise._a=undefined;if(unhandled&&result.e)throw result.v})};var isUnhandled=function(promise){return promise._h!==1&&(promise._a||promise._c).length===0};var onHandleUnhandled=function(promise){task.call(global,function(){var handler;if(isNode){process.emit("rejectionHandled",promise)}else if(handler=global.onrejectionhandled){handler({promise:promise,reason:promise._v})}})};var $reject=function(value){var promise=this;if(promise._d)return;promise._d=true;promise=promise._w||promise;promise._v=value;promise._s=2;if(!promise._a)promise._a=promise._c.slice();notify(promise,true)};var $resolve=function(value){var promise=this;var then;if(promise._d)return;promise._d=true;promise=promise._w||promise;try{if(promise===value)throw TypeError("Promise can't be resolved itself");if(then=isThenable(value)){microtask(function(){var wrapper={_w:promise,_d:false};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}})}else{promise._v=value;promise._s=1;notify(promise,false)}}catch(e){$reject.call({_w:promise,_d:false},e)}};if(!USE_NATIVE){$Promise=function Promise(executor){anInstance(this,$Promise,PROMISE,"_h");aFunction(executor);Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}};Internal=function Promise(executor){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};Internal.prototype=__webpack_require__(325)($Promise.prototype,{then:function then(onFulfilled,onRejected){var reaction=newPromiseCapability(speciesConstructor(this,$Promise));reaction.ok=typeof onFulfilled=="function"?onFulfilled:true;reaction.fail=typeof onRejected=="function"&&onRejected;reaction.domain=isNode?process.domain:undefined;this._c.push(reaction);if(this._a)this._a.push(reaction);if(this._s)notify(this,false);return reaction.promise},catch:function(onRejected){return this.then(undefined,onRejected)}});OwnPromiseCapability=function(){var promise=new Internal;this.promise=promise;this.resolve=ctx($resolve,promise,1);this.reject=ctx($reject,promise,1)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===$Promise||C===Wrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise});__webpack_require__(116)($Promise,PROMISE);__webpack_require__(326)(PROMISE);Wrapper=__webpack_require__(42)[PROMISE];$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function reject(r){var capability=newPromiseCapability(this);var $$reject=capability.reject;$$reject(r);return capability.promise}});$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function resolve(x){return promiseResolve(LIBRARY&&this===Wrapper?$Promise:this,x)}});$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(327)(function(iter){$Promise.all(iter)["catch"](empty)})),PROMISE,{all:function all(iterable){var C=this;var capability=newPromiseCapability(C);var resolve=capability.resolve;var reject=capability.reject;var result=perform(function(){var values=[];var index=0;var remaining=1;forOf(iterable,false,function(promise){var $index=index++;var alreadyCalled=false;values.push(undefined);remaining++;C.resolve(promise).then(function(value){if(alreadyCalled)return;alreadyCalled=true;values[$index]=value;--remaining||resolve(values)},reject)});--remaining||resolve(values)});if(result.e)reject(result.v);return capability.promise},race:function race(iterable){var C=this;var capability=newPromiseCapability(C);var reject=capability.reject;var result=perform(function(){forOf(iterable,false,function(promise){C.resolve(promise).then(capability.resolve,reject)})});if(result.e)reject(result.v);return capability.promise}})},function(module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+": incorrect invocation!")}return it}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(85);var call=__webpack_require__(320);var isArrayIter=__webpack_require__(321);var anObject=__webpack_require__(41);var toLength=__webpack_require__(66);var getIterFn=__webpack_require__(322);var BREAK={};var RETURN={};var exports=module.exports=function(iterable,entries,fn,that,ITERATOR){var iterFn=ITERATOR?function(){return iterable}:getIterFn(iterable);var f=ctx(fn,that,entries?2:1);var index=0;var length,step,iterator,result;if(typeof iterFn!="function")throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){result=entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);if(result===BREAK||result===RETURN)return result}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){result=call(iterator,f,step.value,entries);if(result===BREAK||result===RETURN)return result}};exports.BREAK=BREAK;exports.RETURN=RETURN},function(module,exports,__webpack_require__){var anObject=__webpack_require__(41);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(65);var ITERATOR=__webpack_require__(12)("iterator");var ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){var classof=__webpack_require__(112);var ITERATOR=__webpack_require__(12)("iterator");var Iterators=__webpack_require__(65);module.exports=__webpack_require__(42).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},function(module,exports,__webpack_require__){var global=__webpack_require__(23);var macrotask=__webpack_require__(170).set;var Observer=global.MutationObserver||global.WebKitMutationObserver;var process=global.process;var Promise=global.Promise;var isNode=__webpack_require__(62)(process)=="process";module.exports=function(){var head,last,notify;var flush=function(){var parent,fn;if(isNode&&(parent=process.domain))parent.exit();while(head){fn=head.fn;head=head.next;try{fn()}catch(e){if(head)notify();else last=undefined;throw e}}last=undefined;if(parent)parent.enter()};if(isNode){notify=function(){process.nextTick(flush)}}else if(Observer&&!(global.navigator&&global.navigator.standalone)){var toggle=true;var node=document.createTextNode("");new Observer(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve();notify=function(){promise.then(flush)}}else{notify=function(){macrotask.call(global,flush)}}return function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify()}last=task}}},function(module,exports,__webpack_require__){var redefine=__webpack_require__(50);module.exports=function(target,src,safe){for(var key in src)redefine(target,key,src[key],safe);return target}},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(23);var dP=__webpack_require__(82);var DESCRIPTORS=__webpack_require__(63);var SPECIES=__webpack_require__(12)("species");module.exports=function(KEY){var C=global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this}})}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(12)("iterator");var SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7];var iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true}};arr[ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var core=__webpack_require__(42);var global=__webpack_require__(23);var speciesConstructor=__webpack_require__(169);var promiseResolve=__webpack_require__(172);$export($export.P+$export.R,"Promise",{finally:function(onFinally){var C=speciesConstructor(this,core.Promise||global.Promise);var isFunction=typeof onFinally=="function";return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e})}:onFinally)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var newPromiseCapability=__webpack_require__(117);var perform=__webpack_require__(171);$export($export.S,"Promise",{try:function(callbackfn){var promiseCapability=newPromiseCapability.f(this);var result=perform(callbackfn);(result.e?promiseCapability.reject:promiseCapability.resolve)(result.v);return promiseCapability.promise}})},function(module,exports,__webpack_require__){__webpack_require__(331);__webpack_require__(332);__webpack_require__(333);__webpack_require__(161);__webpack_require__(336);__webpack_require__(337);__webpack_require__(338);__webpack_require__(339);__webpack_require__(341);__webpack_require__(342);__webpack_require__(343);__webpack_require__(344);__webpack_require__(345);__webpack_require__(346);__webpack_require__(347);__webpack_require__(348);__webpack_require__(349);__webpack_require__(350);__webpack_require__(351);__webpack_require__(352);__webpack_require__(353);__webpack_require__(354);__webpack_require__(355);__webpack_require__(356);__webpack_require__(357);__webpack_require__(358);module.exports=__webpack_require__(42).String},function(module,exports,__webpack_require__){var $export=__webpack_require__(16);var toAbsoluteIndex=__webpack_require__(166);var fromCharCode=String.fromCharCode;var $fromCodePoint=String.fromCodePoint;$export($export.S+$export.F*(!!$fromCodePoint&&$fromCodePoint.length!=1),"String",{fromCodePoint:function fromCodePoint(x){var res=[];var aLen=arguments.length;var i=0;var code;while(aLen>i){code=+arguments[i++];if(toAbsoluteIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");res.push(code<65536?fromCharCode(code):fromCharCode(((code-=65536)>>10)+55296,code%1024+56320))}return res.join("")}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(16);var toIObject=__webpack_require__(87);var toLength=__webpack_require__(66);$export($export.S,"String",{raw:function raw(callSite){var tpl=toIObject(callSite.raw);var len=toLength(tpl.length);var aLen=arguments.length;var res=[];var i=0;while(len>i){res.push(String(tpl[i++]));if(i<aLen)res.push(String(arguments[i]))}return res.join("")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(334)("trim",function($trim){return function trim(){return $trim(this,3)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(16);var defined=__webpack_require__(35);var fails=__webpack_require__(64);var spaces=__webpack_require__(335);var space="["+spaces+"]";var non="​�";var ltrim=RegExp("^"+space+space+"*");var rtrim=RegExp(space+space+"*$");var exporter=function(KEY,exec,ALIAS){var exp={};var FORCE=fails(function(){return!!spaces[KEY]()||non[KEY]()!=non});var fn=exp[KEY]=FORCE?exec(trim):spaces[KEY];if(ALIAS)exp[ALIAS]=fn;$export($export.P+$export.F*FORCE,"String",exp)};var trim=exporter.trim=function(string,TYPE){string=String(defined(string));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string};module.exports=exporter},function(module,exports){module.exports="\t\n\v\f\r   ᠎    "+"          \u2028\u2029\ufeff"},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var $at=__webpack_require__(162)(false);$export($export.P,"String",{codePointAt:function codePointAt(pos){return $at(this,pos)}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var toLength=__webpack_require__(66);var context=__webpack_require__(118);var ENDS_WITH="endsWith";var $endsWith=""[ENDS_WITH];$export($export.P+$export.F*__webpack_require__(119)(ENDS_WITH),"String",{endsWith:function endsWith(searchString){var that=context(this,searchString,ENDS_WITH);var endPosition=arguments.length>1?arguments[1]:undefined;var len=toLength(that.length);var end=endPosition===undefined?len:Math.min(toLength(endPosition),len);var search=String(searchString);return $endsWith?$endsWith.call(that,search,end):that.slice(end-search.length,end)===search}})},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var context=__webpack_require__(118);var INCLUDES="includes";$export($export.P+$export.F*__webpack_require__(119)(INCLUDES),"String",{includes:function includes(searchString){return!!~context(this,searchString,INCLUDES).indexOf(searchString,arguments.length>1?arguments[1]:undefined)}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(16);$export($export.P,"String",{repeat:__webpack_require__(340)})},function(module,exports,__webpack_require__){"use strict";var toInteger=__webpack_require__(84);var defined=__webpack_require__(35);module.exports=function repeat(count){var str=String(defined(this));var res="";var n=toInteger(count);if(n<0||n==Infinity)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(16);var toLength=__webpack_require__(66);var context=__webpack_require__(118);var STARTS_WITH="startsWith";var $startsWith=""[STARTS_WITH];$export($export.P+$export.F*__webpack_require__(119)(STARTS_WITH),"String",{startsWith:function startsWith(searchString){var that=context(this,searchString,STARTS_WITH);var index=toLength(Math.min(arguments.length>1?arguments[1]:undefined,that.length));var search=String(searchString);return $startsWith?$startsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("anchor",function(createHTML){return function anchor(name){return createHTML(this,"a","name",name)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("big",function(createHTML){return function big(){return createHTML(this,"big","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("blink",function(createHTML){return function blink(){return createHTML(this,"blink","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("bold",function(createHTML){return function bold(){return createHTML(this,"b","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("fixed",function(createHTML){return function fixed(){return createHTML(this,"tt","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("fontcolor",function(createHTML){return function fontcolor(color){return createHTML(this,"font","color",color)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("fontsize",function(createHTML){return function fontsize(size){return createHTML(this,"font","size",size)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("italics",function(createHTML){return function italics(){return createHTML(this,"i","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("link",function(createHTML){return function link(url){return createHTML(this,"a","href",url)}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("small",function(createHTML){return function small(){return createHTML(this,"small","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("strike",function(createHTML){return function strike(){return createHTML(this,"strike","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("sub",function(createHTML){return function sub(){return createHTML(this,"sub","","")}})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17)("sup",function(createHTML){return function sup(){return createHTML(this,"sup","","")}})},function(module,exports,__webpack_require__){__webpack_require__(88)("match",1,function(defined,MATCH,$match){return[function match(regexp){"use strict";var O=defined(this);var fn=regexp==undefined?undefined:regexp[MATCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[MATCH](String(O))},$match]})},function(module,exports,__webpack_require__){__webpack_require__(88)("replace",2,function(defined,REPLACE,$replace){return[function replace(searchValue,replaceValue){"use strict";var O=defined(this);var fn=searchValue==undefined?undefined:searchValue[REPLACE];return fn!==undefined?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue)},$replace]})},function(module,exports,__webpack_require__){__webpack_require__(88)("search",1,function(defined,SEARCH,$search){return[function search(regexp){"use strict";var O=defined(this);var fn=regexp==undefined?undefined:regexp[SEARCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[SEARCH](String(O))},$search]})},function(module,exports,__webpack_require__){__webpack_require__(88)("split",2,function(defined,SPLIT,$split){"use strict";var isRegExp=__webpack_require__(173);var _split=$split;var $push=[].push;var $SPLIT="split";var LENGTH="length";var LAST_INDEX="lastIndex";if("abbc"[$SPLIT](/(b)*/)[1]=="c"||"test"[$SPLIT](/(?:)/,-1)[LENGTH]!=4||"ab"[$SPLIT](/(?:ab)*/)[LENGTH]!=2||"."[$SPLIT](/(.?)(.?)/)[LENGTH]!=4||"."[$SPLIT](/()()/)[LENGTH]>1||""[$SPLIT](/.?/)[LENGTH]){var NPCG=/()??/.exec("")[1]===undefined;$split=function(separator,limit){var string=String(this);if(separator===undefined&&limit===0)return[];if(!isRegExp(separator))return _split.call(string,separator,limit);var output=[];var flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":"");var lastLastIndex=0;var splitLimit=limit===undefined?4294967295:limit>>>0;var separatorCopy=new RegExp(separator.source,flags+"g");var separator2,match,lastIndex,lastLength,i;if(!NPCG)separator2=new RegExp("^"+separatorCopy.source+"$(?!\\s)",flags);while(match=separatorCopy.exec(string)){lastIndex=match.index+match[0][LENGTH];if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(!NPCG&&match[LENGTH]>1)match[0].replace(separator2,function(){for(i=1;i<arguments[LENGTH]-2;i++)if(arguments[i]===undefined)match[i]=undefined});if(match[LENGTH]>1&&match.index<string[LENGTH])$push.apply(output,match.slice(1));lastLength=match[0][LENGTH];lastLastIndex=lastIndex;if(output[LENGTH]>=splitLimit)break}if(separatorCopy[LAST_INDEX]===match.index)separatorCopy[LAST_INDEX]++}if(lastLastIndex===string[LENGTH]){if(lastLength||!separatorCopy.test(""))output.push("")}else output.push(string.slice(lastLastIndex));return output[LENGTH]>splitLimit?output.slice(0,splitLimit):output}}else if("0"[$SPLIT](undefined,0)[LENGTH]){$split=function(separator,limit){return separator===undefined&&limit===0?[]:_split.call(this,separator,limit)}}return[function split(separator,limit){var O=defined(this);var fn=separator==undefined?undefined:separator[SPLIT];return fn!==undefined?fn.call(separator,O,limit):$split.call(String(O),separator,limit)},$split]})},function(module,exports,__webpack_require__){"use strict";var _stringify=__webpack_require__(30);var _stringify2=_interopRequireDefault(_stringify);var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(36);var _typeof3=_interopRequireDefault(_typeof2);var _deepExtend=__webpack_require__(178);var _deepExtend2=_interopRequireDefault(_deepExtend);var _system=__webpack_require__(374);var _system2=_interopRequireDefault(_system);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);var _apis=__webpack_require__(485);var _apis2=_interopRequireDefault(_apis);var _all=__webpack_require__(287);var AllPlugins=_interopRequireWildcard(_all);var _utils=__webpack_require__(8);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}if(false){_window2.default.Perf=require("react-dom/lib/ReactPerf")}var _buildInfo={PACKAGE_VERSION:"3.22.2",GIT_COMMIT:"g5628ff02",GIT_DIRTY:true,HOSTNAME:"jenins-swagger-oss",BUILD_TIME:"Wed, 22 May 2019 01:36:23 GMT"},GIT_DIRTY=_buildInfo.GIT_DIRTY,GIT_COMMIT=_buildInfo.GIT_COMMIT,PACKAGE_VERSION=_buildInfo.PACKAGE_VERSION,HOSTNAME=_buildInfo.HOSTNAME,BUILD_TIME=_buildInfo.BUILD_TIME;module.exports=function SwaggerUI(opts){_window2.default.versions=_window2.default.versions||{};_window2.default.versions.swaggerUi={version:PACKAGE_VERSION,gitRevision:GIT_COMMIT,gitDirty:GIT_DIRTY,buildTimestamp:BUILD_TIME,machine:HOSTNAME};var defaults={dom_id:null,domNode:null,spec:{},url:"",urls:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:null,filter:null,validatorUrl:"https://online.swagger.io/validator",oauth2RedirectUrl:window.location.protocol+"//"+window.location.host+"/oauth2-redirect.html",configs:{},custom:{},displayOperationId:false,displayRequestDuration:false,deepLinking:false,requestInterceptor:function requestInterceptor(a){return a},responseInterceptor:function responseInterceptor(a){return a},showMutatedRequest:true,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:false,showCommonExtensions:false,withCredentials:undefined,supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],presets:[_apis2.default],plugins:[],initialState:{},fn:{},components:{}};var queryConfig=(0,_utils.parseSearch)();var domNode=opts.domNode;delete opts.domNode;var constructorConfig=(0,_deepExtend2.default)({},defaults,opts,queryConfig);var storeConfigs={system:{configs:constructorConfig.configs},plugins:constructorConfig.presets,state:(0,_deepExtend2.default)({layout:{layout:constructorConfig.layout,filter:constructorConfig.filter},spec:{spec:"",url:constructorConfig.url}},constructorConfig.initialState)};if(constructorConfig.initialState){for(var key in constructorConfig.initialState){if(constructorConfig.initialState.hasOwnProperty(key)&&constructorConfig.initialState[key]===undefined){delete storeConfigs.state[key]}}}var inlinePlugin=function inlinePlugin(){return{fn:constructorConfig.fn,components:constructorConfig.components,state:constructorConfig.state}};var store=new _system2.default(storeConfigs);store.register([constructorConfig.plugins,inlinePlugin]);var system=store.getSystem();var downloadSpec=function downloadSpec(fetchedConfig){var localConfig=system.specSelectors.getLocalConfig?system.specSelectors.getLocalConfig():{};var mergedConfig=(0,_deepExtend2.default)({},localConfig,constructorConfig,fetchedConfig||{},queryConfig);if(domNode){mergedConfig.domNode=domNode}store.setConfigs(mergedConfig);system.configsActions.loaded();if(fetchedConfig!==null){if(!queryConfig.url&&(0,_typeof3.default)(mergedConfig.spec)==="object"&&(0,_keys2.default)(mergedConfig.spec).length){system.specActions.updateUrl("");system.specActions.updateLoadingStatus("success");system.specActions.updateSpec((0,_stringify2.default)(mergedConfig.spec))}else if(system.specActions.download&&mergedConfig.url&&!mergedConfig.urls){system.specActions.updateUrl(mergedConfig.url);system.specActions.download(mergedConfig.url)}}if(mergedConfig.domNode){system.render(mergedConfig.domNode,"App")}else if(mergedConfig.dom_id){var _domNode=document.querySelector(mergedConfig.dom_id);system.render(_domNode,"App")}else if(mergedConfig.dom_id===null||mergedConfig.domNode===null){}else{console.error("Skipped rendering: no `dom_id` or `domNode` was specified")}return system};var configUrl=queryConfig.config||constructorConfig.configUrl;if(!configUrl||!system.specActions||!system.specActions.getConfigByUrl||system.specActions.getConfigByUrl&&!system.specActions.getConfigByUrl({url:configUrl,loadRemoteConfig:true,requestInterceptor:constructorConfig.requestInterceptor,responseInterceptor:constructorConfig.responseInterceptor},downloadSpec)){return downloadSpec()}else{system.specActions.getConfigByUrl(configUrl,downloadSpec)}return system};module.exports.presets={apis:_apis2.default};module.exports.plugins=AllPlugins},function(module,exports,__webpack_require__){var core=__webpack_require__(10);var $JSON=core.JSON||(core.JSON={stringify:JSON.stringify});module.exports=function stringify(it){return $JSON.stringify.apply($JSON,arguments)}},function(module,exports,__webpack_require__){__webpack_require__(362);module.exports=__webpack_require__(10).Object.keys},function(module,exports,__webpack_require__){var toObject=__webpack_require__(60);var $keys=__webpack_require__(59);__webpack_require__(174)("keys",function(){return function keys(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(364),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(61);__webpack_require__(77);module.exports=__webpack_require__(120).f("iterator")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(366),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(367);__webpack_require__(177);__webpack_require__(372);__webpack_require__(373);module.exports=__webpack_require__(10).Symbol},function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(15);var has=__webpack_require__(39);var DESCRIPTORS=__webpack_require__(34);var $export=__webpack_require__(25);var redefine=__webpack_require__(155);var META=__webpack_require__(368).KEY;var $fails=__webpack_require__(49);var shared=__webpack_require__(108);var setToStringTag=__webpack_require__(81);var uid=__webpack_require__(80);var wks=__webpack_require__(14);var wksExt=__webpack_require__(120);var wksDefine=__webpack_require__(121);var enumKeys=__webpack_require__(369);var isArray=__webpack_require__(370);var anObject=__webpack_require__(27);var isObject=__webpack_require__(33);var toIObject=__webpack_require__(47);var toPrimitive=__webpack_require__(103);var createDesc=__webpack_require__(58);var _create=__webpack_require__(104);var gOPNExt=__webpack_require__(371);var $GOPD=__webpack_require__(176);var $DP=__webpack_require__(29);var $keys=__webpack_require__(59);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE="prototype";var HIDDEN=wks("_hidden");var TO_PRIMITIVE=wks("toPrimitive");var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared("symbol-registry");var AllSymbols=shared("symbols");var OPSymbols=shared("op-symbols");var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol=="function";var QObject=global.QObject;var setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},"a",{get:function(){return dP(this,"a",{value:7}).a}})).a!=7})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc)}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator=="symbol"?function(it){return typeof it=="symbol"}:function(it){return it instanceof $Symbol};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)})}return setSymbolDesc(it,key,D)}return dP(it,key,D)};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P)};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key)}return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key])}return result};if(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value))};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag)};redefine($Symbol[PROTOTYPE],"toString",function toString(){return this._k});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__webpack_require__(175).f=gOPNExt.f=$getOwnPropertyNames;__webpack_require__(89).f=$propertyIsEnumerable;__webpack_require__(122).f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__webpack_require__(78)){redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable,true)}wksExt.f=function(name){return wrap(wks(name))}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,"Symbol",{for:function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol!");for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key},useSetter:function(){setter=true},useSimple:function(){setter=false}});$export($export.S+$export.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();return _stringify([S])!="[null]"||_stringify({a:S})!="{}"||_stringify(Object(S))!="{}"})),"JSON",{stringify:function stringify(it){var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);$replacer=replacer=args[1];if(!isObject(replacer)&&it===undefined||isSymbol(it))return;if(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=="function")value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return _stringify.apply($JSON,args)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||__webpack_require__(38)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,"Symbol");setToStringTag(Math,"Math",true);setToStringTag(global.JSON,"JSON",true)},function(module,exports,__webpack_require__){var META=__webpack_require__(80)("meta");var isObject=__webpack_require__(33);var has=__webpack_require__(39);var setDesc=__webpack_require__(29).f;var id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!__webpack_require__(49)(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:"O"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it=="symbol"?it:(typeof it=="string"?"S":"P")+it;if(!has(it,META)){if(!isExtensible(it))return"F";if(!create)return"E";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},function(module,exports,__webpack_require__){var getKeys=__webpack_require__(59);var gOPS=__webpack_require__(122);var pIE=__webpack_require__(89);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key)}return result}},function(module,exports,__webpack_require__){var cof=__webpack_require__(57);module.exports=Array.isArray||function isArray(arg){return cof(arg)=="Array"}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(47);var gOPN=__webpack_require__(175).f;var toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):gOPN(toIObject(it))}},function(module,exports,__webpack_require__){__webpack_require__(121)("asyncIterator")},function(module,exports,__webpack_require__){__webpack_require__(121)("observable")},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _keys=__webpack_require__(31);var _keys2=_interopRequireDefault(_keys);var _defineProperty2=__webpack_require__(18);var _defineProperty3=_interopRequireDefault(_defineProperty2);var _assign=__webpack_require__(19);var _assign2=_interopRequireDefault(_assign);var _classCallCheck2=__webpack_require__(2);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(3);var _createClass3=_interopRequireDefault(_createClass2);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _redux=__webpack_require__(380);var _immutable=__webpack_require__(7);var _immutable2=_interopRequireDefault(_immutable);var _deepExtend=__webpack_require__(178);var _deepExtend2=_interopRequireDefault(_deepExtend);var _reduxImmutable=__webpack_require__(381);var _serializeError=__webpack_require__(123);var _serializeError2=_interopRequireDefault(_serializeError);var _objectAssignDeep=__webpack_require__(180);var _objectAssignDeep2=_interopRequireDefault(_objectAssignDeep);var _actions=__webpack_require__(90);var _window=__webpack_require__(22);var _window2=_interopRequireDefault(_window);var _utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var idFn=function idFn(a){return a};function createStoreWithMiddleware(rootReducer,initialState,getSystem){var middlwares=[(0,_utils.systemThunkMiddleware)(getSystem)];var composeEnhancers=_window2.default.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||_redux.compose;return(0,_redux.createStore)(rootReducer,initialState,composeEnhancers(_redux.applyMiddleware.apply(undefined,middlwares)))}var Store=function(){function Store(){var opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};(0,_classCallCheck3.default)(this,Store);(0,_deepExtend2.default)(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},opts);this.getSystem=this._getSystem.bind(this);this.store=configureStore(idFn,(0,_immutable.fromJS)(this.state),this.getSystem);this.buildSystem(false);this.register(this.plugins)}(0,_createClass3.default)(Store,[{key:"getStore",value:function getStore(){return this.store}},{key:"register",value:function register(plugins){var rebuild=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var pluginSystem=combinePlugins(plugins,this.getSystem());systemExtend(this.system,pluginSystem);if(rebuild){this.buildSystem()}var needAnotherRebuild=callAfterLoad.call(this.system,plugins,this.getSystem());if(needAnotherRebuild){this.buildSystem()}}},{key:"buildSystem",value:function buildSystem(){var buildReducer=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var dispatch=this.getStore().dispatch;var getState=this.getStore().getState;this.boundSystem=(0,_assign2.default)({},this.getRootInjects(),this.getWrappedAndBoundActions(dispatch),this.getWrappedAndBoundSelectors(getState,this.getSystem),this.getStateThunks(getState),this.getFn(),this.getConfigs());if(buildReducer)this.rebuildReducer()}},{key:"_getSystem",value:function _getSystem(){return this.boundSystem}},{key:"getRootInjects",value:function getRootInjects(){return(0,_assign2.default)({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:_immutable2.default,React:_react2.default},this.system.rootInjects||{})}},{key:"_getConfigs",value:function _getConfigs(){return this.system.configs}},{key:"getConfigs",value:function getConfigs(){return{configs:this.system.configs}}},{key:"setConfigs",value:function setConfigs(configs){this.system.configs=configs}},{key:"rebuildReducer",value:function rebuildReducer(){this.store.replaceReducer(buildReducer(this.system.statePlugins))}},{key:"getType",value:function getType(name){var upName=name[0].toUpperCase()+name.slice(1);return(0,_utils.objReduce)(this.system.statePlugins,function(val,namespace){var thing=val[name];if(thing)return(0,_defineProperty3.default)({},namespace+upName,thing)})}},{key:"getSelectors",value:function getSelectors(){return this.getType("selectors")}},{key:"getActions",value:function getActions(){var actionHolders=this.getType("actions");return(0,_utils.objMap)(actionHolders,function(actions){return(0,_utils.objReduce)(actions,function(action,actionName){if((0,_utils.isFn)(action))return(0,_defineProperty3.default)({},actionName,action)})})}},{key:"getWrappedAndBoundActions",value:function getWrappedAndBoundActions(dispatch){var _this=this;var actionGroups=this.getBoundActions(dispatch);return(0,_utils.objMap)(actionGroups,function(actions,actionGroupName){var wrappers=_this.system.statePlugins[actionGroupName.slice(0,-7)].wrapActions;if(wrappers){return(0,_utils.objMap)(actions,function(action,actionName){var wrap=wrappers[actionName];if(!wrap){return action}if(!Array.isArray(wrap)){wrap=[wrap]}return wrap.reduce(function(acc,fn){var newAction=function newAction(){return fn(acc,_this.getSystem()).apply(undefined,arguments)};if(!(0,_utils.isFn)(newAction)){throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)")}return wrapWithTryCatch(newAction)},action||Function.prototype)})}return actions})}},{key:"getWrappedAndBoundSelectors",value:function getWrappedAndBoundSelectors(getState,getSystem){var _this2=this;var selectorGroups=this.getBoundSelectors(getState,getSystem);return(0,_utils.objMap)(selectorGroups,function(selectors,selectorGroupName){var stateName=[selectorGroupName.slice(0,-9)];var wrappers=_this2.system.statePlugins[stateName].wrapSelectors;if(wrappers){return(0,_utils.objMap)(selectors,function(selector,selectorName){var wrap=wrappers[selectorName];if(!wrap){return selector}if(!Array.isArray(wrap)){wrap=[wrap]}return wrap.reduce(function(acc,fn){var wrappedSelector=function wrappedSelector(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return fn(acc,_this2.getSystem()).apply(undefined,[getState().getIn(stateName)].concat(args))};if(!(0,_utils.isFn)(wrappedSelector)){throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)")}return wrappedSelector},selector||Function.prototype)})}return selectors})}},{key:"getStates",value:function getStates(state){return(0,_keys2.default)(this.system.statePlugins).reduce(function(obj,key){obj[key]=state.get(key);return obj},{})}},{key:"getStateThunks",value:function getStateThunks(getState){return(0,_keys2.default)(this.system.statePlugins).reduce(function(obj,key){obj[key]=function(){return getState().get(key)};return obj},{})}},{key:"getFn",value:function getFn(){return{fn:this.system.fn}}},{key:"getComponents",value:function getComponents(component){var _this3=this;var res=this.system.components[component];if(Array.isArray(res)){return res.reduce(function(ori,wrapper){return wrapper(ori,_this3.getSystem())})}if(typeof component!=="undefined"){return this.system.components[component]}return this.system.components}},{key:"getBoundSelectors",value:function getBoundSelectors(getState,getSystem){return(0,_utils.objMap)(this.getSelectors(),function(obj,key){var stateName=[key.slice(0,-9)];var getNestedState=function getNestedState(){return getState().getIn(stateName)};return(0,_utils.objMap)(obj,function(fn){return function(){for(var _len2=arguments.length,args=Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2]}var res=wrapWithTryCatch(fn).apply(null,[getNestedState()].concat(args));if(typeof res==="function")res=wrapWithTryCatch(res)(getSystem());return res}})})}},{key:"getBoundActions",value:function getBoundActions(dispatch){dispatch=dispatch||this.getStore().dispatch;var actions=this.getActions();var process=function process(creator){if(typeof creator!=="function"){return(0,_utils.objMap)(creator,function(prop){return process(prop)})}return function(){var action=null;try{action=creator.apply(undefined,arguments)}catch(e){action={type:_actions.NEW_THROWN_ERR,error:true,payload:(0,_serializeError2.default)(e)}}finally{return action}}};return(0,_utils.objMap)(actions,function(actionCreator){return(0,_redux.bindActionCreators)(process(actionCreator),dispatch)})}},{key:"getMapStateToProps",value:function getMapStateToProps(){var _this4=this;return function(){return(0,_assign2.default)({},_this4.getSystem())}}},{key:"getMapDispatchToProps",value:function getMapDispatchToProps(extras){var _this5=this;return function(dispatch){return(0,_deepExtend2.default)({},_this5.getWrappedAndBoundActions(dispatch),_this5.getFn(),extras)}}}]);return Store}();exports.default=Store;function combinePlugins(plugins,toolbox){if((0,_utils.isObject)(plugins)&&!(0,_utils.isArray)(plugins)){return(0,_objectAssignDeep2.default)({},plugins)}if((0,_utils.isFunc)(plugins)){return combinePlugins(plugins(toolbox),toolbox)}if((0,_utils.isArray)(plugins)){return plugins.map(function(plugin){return combinePlugins(plugin,toolbox)}).reduce(systemExtend,{})}return{}}function callAfterLoad(plugins,system){var _this6=this;var _ref3=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},hasLoaded=_ref3.hasLoaded;var calledSomething=hasLoaded;if((0,_utils.isObject)(plugins)&&!(0,_utils.isArray)(plugins)){if(typeof plugins.afterLoad==="function"){calledSomething=true;wrapWithTryCatch(plugins.afterLoad).call(this,system)}}if((0,_utils.isFunc)(plugins))return callAfterLoad.call(this,plugins(system),system,{hasLoaded:calledSomething});if((0,_utils.isArray)(plugins)){return plugins.map(function(plugin){return callAfterLoad.call(_this6,plugin,system,{hasLoaded:calledSomething})})}return calledSomething}function systemExtend(){var dest=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var src=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!(0,_utils.isObject)(dest)){return{}}if(!(0,_utils.isObject)(src)){return dest}if(src.wrapComponents){(0,_utils.objMap)(src.wrapComponents,function(wrapperFn,key){var ori=dest.components&&dest.components[key];if(ori&&Array.isArray(ori)){dest.components[key]=ori.concat([wrapperFn]);delete src.wrapComponents[key]}else if(ori){dest.components[key]=[ori,wrapperFn];delete src.wrapComponents[key]}});if(!(0,_keys2.default)(src.wrapComponents).length){delete src.wrapComponents}}var statePlugins=dest.statePlugins;if((0,_utils.isObject)(statePlugins)){for(var namespace in statePlugins){var namespaceObj=statePlugins[namespace];if(!(0,_utils.isObject)(namespaceObj)||!(0,_utils.isObject)(namespaceObj.wrapActions)){continue}var wrapActions=namespaceObj.wrapActions;for(var actionName in wrapActions){var action=wrapActions[actionName];if(!Array.isArray(action)){action=[action];wrapActions[actionName]=action}if(src&&src.statePlugins&&src.statePlugins[namespace]&&src.statePlugins[namespace].wrapActions&&src.statePlugins[namespace].wrapActions[actionName]){src.statePlugins[namespace].wrapActions[actionName]=wrapActions[actionName].concat(src.statePlugins[namespace].wrapActions[actionName])}}}}return(0,_deepExtend2.default)(dest,src)}function buildReducer(states){var reducerObj=(0,_utils.objMap)(states,function(val){return val.reducers});return allReducers(reducerObj)}function allReducers(reducerSystem){var reducers=(0,_keys2.default)(reducerSystem).reduce(function(obj,key){obj[key]=makeReducer(reducerSystem[key]);return obj},{});if(!(0,_keys2.default)(reducers).length){return idFn}return(0,_reduxImmutable.combineReducers)(reducers)}function makeReducer(reducerObj){return function(){var state=arguments.length>0&&arguments[0]!==undefined?arguments[0]:new _immutable.Map;var action=arguments[1];if(!reducerObj)return state;var redFn=reducerObj[action.type];if(redFn){var res=wrapWithTryCatch(redFn)(state,action);return res===null?state:res}return state}}function wrapWithTryCatch(fn){var _ref4=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref4$logErrors=_ref4.logErrors,logErrors=_ref4$logErrors===undefined?true:_ref4$logErrors;if(typeof fn!=="function"){return fn}return function(){try{for(var _len3=arguments.length,args=Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3]}return fn.call.apply(fn,[this].concat(args))}catch(e){if(logErrors){console.error(e)}return null}}}function configureStore(rootReducer,initialState,getSystem){var store=createStoreWithMiddleware(rootReducer,initialState,getSystem);return store}},function(module,exports,__webpack_require__){__webpack_require__(376);var $Object=__webpack_require__(10).Object;module.exports=function defineProperty(it,key,desc){return $Object.defineProperty(it,key,desc)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(25);$export($export.S+$export.F*!__webpack_require__(34),"Object",{defineProperty:__webpack_require__(29).f})},function(module,exports,__webpack_require__){__webpack_require__(378);module.exports=__webpack_require__(10).Object.assign},function(module,exports,__webpack_require__){var $export=__webpack_require__(25);$export($export.S+$export.F,"Object",{assign:__webpack_require__(379)})},function(module,exports,__webpack_require__){"use strict";var getKeys=__webpack_require__(59);var gOPS=__webpack_require__(122);var pIE=__webpack_require__(89);var toObject=__webpack_require__(60);var IObject=__webpack_require__(152);var $assign=Object.assign;module.exports=!$assign||__webpack_require__(49)(function(){var A={};var B={};var S=Symbol();var K="abcdefghijklmnopqrst";A[S]=7;K.split("").forEach(function(k){B[k]=k});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join("")!=K})?function assign(target,source){var T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j)if(isEnum.call(S,key=keys[j++]))T[key]=S[key]}return T}:$assign},function(module,exports){module.exports=require("redux")},function(module,exports){module.exports=require("redux-immutable")},function(module,exports,__webpack_require__){"use strict";(function(global){

CVE-2019-17495

Recommended upgrade version:3.23.11

@MarcusSorealheis
Copy link
Contributor

This is a very serious CVE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants