diff --git a/dist/index.html b/dist/index.html index 396d96b9..32a172a9 100644 --- a/dist/index.html +++ b/dist/index.html @@ -17,7 +17,7 @@ https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown ./examples/specs/petstore_anyof.yaml --> - + /,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:v,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,s,a,u,c,f,p,h,d,m,v,y,w,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),_&&"paragraph"===_.type?_.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:g(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),c={type:"list_start",ordered:y=(s=i[2]).length>1,start:y?+s:"",loose:!1},this.tokens.push(c),f=[],r=!1,v=(i=i[0].match(this.rules.item)).length,d=0;d1?1===a.length:a.length>1||this.options.smartLists&&a!==s)&&(e=i.slice(d+1).join("\n")+e,d=v-1)),o=r||/\n\n(?!\s*$)/.test(u),d!==v-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(c.loose=!0),x=void 0,(w=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:w,checked:x,loose:o},f.push(p),this.tokens.push(p),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(v=f.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:v,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:v,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=p(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=p(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=p(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=p(o.reflink).replace("label",o._label).getRegex(),o.normal=y({},o),o.pedantic=y({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=y({},o.normal,{escape:p(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0];else if(s=this.rules.link.exec(e)){var c=w(s[2],"()");if(c>-1){var f=4+s[1].length+c;s[2]=s[2].substring(0,c),s[0]=s[0].substring(0,f).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,r=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=s[3]?s[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(s,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),u+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),u+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),u+=this.renderer.codespan(l(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),u+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),u+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),r="@"===s[2]?"mailto:"+(n=l(this.mangle(s[1]))):n=l(s[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0]):u+=this.renderer.text(l(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])r="mailto:"+(n=l(s[0]));else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);n=l(s[0]),r="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
'+(n?e:l(e,!0))+"
\n":"
"+(n?e:l(e,!0))+"
"},s.prototype.blockquote=function(e){return"
\n"+e+"
\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},s.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},s.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},s.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},s.prototype.checkbox=function(e){return" "},s.prototype.paragraph=function(e){return"

    "+e+"

    \n"},s.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},s.prototype.tablerow=function(e){return"\n"+e+"\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},s.prototype.strong=function(e){return""+e+""},s.prototype.em=function(e){return""+e+""},s.prototype.codespan=function(e){return""+e+""},s.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},s.prototype.del=function(e){return""+e+""},s.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},s.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,y({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}v.exec=v,_.options=_.setOptions=function(e){return y(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=u,_.parser=u.parse,_.Renderer=s,_.TextRenderer=a,_.Lexer=r,_.lexer=r.lex,_.InlineLexer=i,_.inlineLexer=i.output,_.Slugger=c,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=a(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n=0&&t._disposeHandlers.splice(n,1)},check:S,apply:E,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)},data:a[e]};return n=void 0,t}var f=[],p="idle";function h(e){p=e;for(var t=0;t0;){var o=r.pop(),i=o.id,a=o.chain;if((u=A[i])&&!u.hot._selfAccepted){if(u.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(u.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var s=0;s ")),S.type){case"self-declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of self decline: "+S.moduleId+j));break;case"declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+S.moduleId+" in "+S.parentId+j));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(S),t.ignoreUnaccepted||(O=new Error("Aborted because "+c+" is not accepted"+j));break;case"accepted":t.onAccepted&&t.onAccepted(S),k=!0;break;case"disposed":t.onDisposed&&t.onDisposed(S),E=!0;break;default:throw new Error("Unexception type "+S.type)}if(O)return h("abort"),Promise.reject(O);if(k)for(c in g[c]=v[c],f(m,S.outdatedModules),S.outdatedDependencies)Object.prototype.hasOwnProperty.call(S.outdatedDependencies,c)&&(d[c]||(d[c]=[]),f(d[c],S.outdatedDependencies[c]));E&&(f(m,[S.moduleId]),g[c]=b)}var C,P=[];for(r=0;r0;)if(c=N.pop(),u=A[c]){var M={},I=u.hot._disposeHandlers;for(i=0;i=0&&U.parents.splice(C,1))}}for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c]))for(L=d[c],i=0;i=0&&u.children.splice(C,1);for(c in h("apply"),o=y,g)Object.prototype.hasOwnProperty.call(g,c)&&(e[c]=g[c]);var D=null;for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c])){L=d[c];var q=[];for(r=0;r ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:y,table:y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=m({},n),n.gfm=m({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=m({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:y,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,s,u,c,f,p,h,d,v,y,m,w,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),_&&"paragraph"===_.type?_.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:g(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),c={type:"list_start",ordered:m=(a=i[2]).length>1,start:m?+a:"",loose:!1},this.tokens.push(c),f=[],r=!1,y=(i=i[0].match(this.rules.item)).length,d=0;d1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=i.slice(d+1).join("\n")+e,d=y-1)),o=r||/\n\n(?!\s*$)/.test(u),d!==y-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(c.loose=!0),x=void 0,(w=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:w,checked:x,loose:o},f.push(p),this.tokens.push(p),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(y=f.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:y,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=p(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=p(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=p(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=p(o.reflink).replace("label",o._label).getRegex(),o.normal=m({},o),o.pedantic=m({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=m({},o.normal,{escape:p(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=w(a[2],"()");if(c>-1){var f=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,f).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(l(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=l(this.mangle(a[1]))):n=l(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0]):u+=this.renderer.text(l(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=l(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=l(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
    '+(n?e:l(e,!0))+"
    \n":"
    "+(n?e:l(e,!0))+"
    "},a.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='
    "},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(){}function m(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}y.exec=y,_.options=_.setOptions=function(e){return m(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=u,_.parser=u.parse,_.Renderer=a,_.TextRenderer=s,_.Lexer=r,_.lexer=r.lex,_.InlineLexer=i,_.inlineLexer=i.output,_.Slugger=c,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(10))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(329)),l=r(n(11)),f=function(e){function t(e,n,r){var i;if((0,o.default)(this,t),!(r&&n instanceof l.default))throw new Error("Invalid arguments for new ".concat(e));return(i=(0,a.default)(this,(0,s.default)(t).call(this))).name=e,i.message=r,i.source=n,i}return(0,u.default)(t,e),(0,i.default)(t,[{key:"makePretty",value:function(){this.source&&(this.nodeType=this.source.type,this.range=this.source.range,this.linePos=this.source.rangeAsLinePos,delete this.source)}}]),t}((0,c.default)(Error));t.YAMLError=f;var p=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLReferenceError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLReferenceError=p;var h=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSemanticError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSemanticError=h;var d=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSyntaxError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSyntaxError=d;var v=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLWarning",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLWarning=v},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=n(7),u=r(n(333)),c=r(n(12)),l=function(){function e(t,n,r){(0,i.default)(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return(0,a.default)(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.Char.DIRECTIVES_END&&r!==s.Char.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==r||a!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1,!0)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,i=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,n+=1,a+="\n";break;case"\t":o<=r&&(i=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&o<=r&&(i=!0),{fold:a,offset:n,error:i}}}]),(0,a.default)(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.Char.COMMENT){var r=e.endOfLine(n,t+1),o=new c.default(t,r);return this.props.push(o),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(function(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,o)}},{key:"anchor",get:function(){for(var e=0;e0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;tn);)++o;this.origStart=n+o;for(var i=o;o=r);)++o;return this.origEnd=r+o,i}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(32)),l=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).value=e,n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:(0,c.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(r(n(33)).default);t.default=l},function(e,t,n){var r;try{r={clone:n(175),constant:n(113),each:n(233),filter:n(239),has:n(262),isArray:n(6),isEmpty:n(264),isFunction:n(44),isUndefined:n(265),keys:n(23),map:n(266),reduce:n(268),size:n(271),transform:n(277),union:n(278),values:n(297)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"addToJSMap",value:function(e,t){var n=(0,f.default)(this.key,"",e);if(t instanceof Map){var r=(0,f.default)(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==(0,c.default)(t)?String(t):e instanceof h.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[o]=(0,f.default)(this.value,o,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,o=this.value,i=r instanceof h.default&&r.comment,a=!r||i||r instanceof p.default,s=e,u=s.doc,f=s.indent;e=Object.assign({},e,{implicitKey:!a,indent:f+" "});var d=!1,v=u.schema.stringify(r,e,function(){return i=null},function(){return d=!0});if(v=(0,l.default)(v,e.indent,i),e.allNullValues)return this.comment?(v=(0,l.default)(v,e.indent,this.comment),t&&t()):d&&!i&&n&&n(),e.inFlow?v:"? ".concat(v);v=a?"? ".concat(v,"\n").concat(f,":"):"".concat(v,":"),this.comment&&(v=(0,l.default)(v,e.indent,this.comment),t&&t());var y="",m=null;if(o instanceof h.default){if(o.spaceBefore&&(y="\n"),o.commentBefore){var g=o.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));y+="\n".concat(g)}m=o.comment}else o&&"object"===(0,c.default)(o)&&(o=u.schema.createNode(o,!0));e.implicitKey=!1,d=!1;var b=u.schema.stringify(o,e,function(){return m=null},function(){return d=!0}),w=" ";if(y||this.comment)w="".concat(y,"\n").concat(e.indent);else if(!a&&o instanceof p.default){("["===b[0]||"{"===b[0])&&!b.includes("\n")||(w="\n".concat(e.indent))}return d&&!m&&n&&n(),(0,l.default)(v+w+b,e.indent,m)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new d.default(null)),this.key.commentBefore=e}}]),t}(h.default);t.default=v},function(e,t,n){var r=n(96),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(328);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(187),o=n(192);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(101),o=n(75),i=n(24);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(44),o=n(72);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var o=r(n(343)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(86)),l=r(n(5)),f=r(n(20)),p=r(n(25)),h=r(n(58)),d=r(n(33)),v=r(n(16)),y=r(n(13)),m=function(e){return null==e||"object"===(0,p.default)(e)&&e[Symbol.iterator]().next().done};t.isEmptyPath=m;var g=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,o=new Array(r),a=0;at.maxFlowStringSingleLineLength){y=w;var S=!0,O=!1,k=void 0;try{for(var E,A=_[Symbol.iterator]();!(S=(E=A.next()).done);S=!0){var T=E.value;y+=T?"\n ".concat(p).concat(T):"\n"}}catch(e){O=!0,k=e}finally{try{S||null==A.return||A.return()}finally{if(O)throw k}}y+="\n".concat(p).concat(x)}else y="".concat(w," ").concat(_.join(" ")," ").concat(x)}else{var j=b.map(a);y=j.shift();var C=!0,P=!1,R=void 0;try{for(var L,N=j[Symbol.iterator]();!(C=(L=N.next()).done);C=!0){var M=L.value;y+=M?"\n".concat(p).concat(M):"\n"}}catch(e){P=!0,R=e}finally{try{C||null==N.return||N.return()}finally{if(P)throw R}}}return this.comment?(y+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),r&&r()):m&&o&&o(),y}}]),t}(d.default);t.default=g,(0,f.default)(g,"maxFlowStringSingleLineLength",60)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=h,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(26)),f=r(n(16)),p=r(n(13));function h(e,t){var n=t instanceof p.default?t.value:t,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u instanceof f.default){if(u.key===t||u.key===n)return u;if(u.key&&u.key.value===n)return u}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){if(e?e instanceof f.default||(e=new f.default(e.key||e,e.value)):e=new f.default(e),h(this.items,e.key))throw new Error("Key ".concat(e.key," already set"));this.items.push(e)}},{key:"delete",value:function(e){var t=h(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=h(this.items,e),r=n&&n.value;return!t&&r instanceof p.default?r.value:r}},{key:"has",value:function(e){return!!h(this.items,e)}},{key:"set",value:function(e,t){var n=h(this.items,e);n?n.value=t:this.items.push(new f.default(e,t))}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,a=void 0;try{for(var s,u=this.items[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){s.value.addToJSMap(t,r)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);var o=!0,i=!1,a=void 0;try{for(var c,l=this.items[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var p=c.value;if(!(p instanceof f.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(p)," instead"))}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return(0,u.default)((0,s.default)(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}}]),t}(l.default);t.default=d},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(30),o=n(188),i=n(189),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r=n(219),o=n(69),i=n(220),a=n(110),s=n(221),u=n(29),c=n(97),l=c(r),f=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(function(t,n){return e(t,String(n),r)});if(t&&"function"==typeof t.toJSON){var o=r&&r.anchors&&r.anchors.find(function(e){return e.node===t});o&&(r.onCreate=function(e){o.res=e,delete r.onCreate});var i=t.toJSON(n,r);return o&&r.onCreate&&r.onCreate(i),i}return t}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1));t.default=function e(){(0,o.default)(this,e)}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(32)),f=r(n(26)),p=r(n(13));function h(e){var t=e instanceof p.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=h(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=h(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof p.default?r.value:r}}},{key:"has",value:function(e){var t=h(e);return"number"==typeof t&&t0;)i+="0"}return i},t.stringifyString=function(e,t,n,r){var f=s.strOptions.defaultType,p=t.implicitKey,h=t.inFlow,d=e,v=d.type,y=d.value;"string"!=typeof y&&(y=String(y),e=Object.assign({},e,{value:y}));var m=function(f){switch(f){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return l(e,t,n,r);case i.Type.QUOTE_DOUBLE:return u(y,t);case i.Type.QUOTE_SINGLE:return c(y,t);case i.Type.PLAIN:return function(e,t,n,r){var f=e.comment,p=e.type,h=e.value,d=t.actualString,v=t.implicitKey,y=t.indent,m=t.inFlow,g=t.tags;if(v&&/[\n[\]{},]/.test(h)||m&&/[[\]{},]/.test(h))return u(h,t);if(!h||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(h))return v||m||-1===h.indexOf("\n")?-1!==h.indexOf('"')&&-1===h.indexOf("'")?c(h,t):u(h,t):l(e,t,n,r);if(!v&&!m&&p!==i.Type.PLAIN&&-1!==h.indexOf("\n"))return l(e,t,n,r);var b=h.replace(/\n+/g,"$&\n".concat(y));if(d&&/^[\w.+-]+$/.test(b)&&"string"!=typeof g.resolveScalar(b).value)return u(h,t);var w=v?b:(0,a.default)(b,y,a.FOLD_FLOW,s.strOptions.fold);if(f&&!m&&(-1!==w.indexOf("\n")||-1!==f.indexOf("\n")))return n&&n(),(0,o.addCommentBefore)(w,y,f);return w}(e,t,n,r);default:return null}};v!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(y)?v=i.Type.QUOTE_DOUBLE:!p&&!h||v!==i.Type.BLOCK_FOLDED&&v!==i.Type.BLOCK_LITERAL||(v=i.Type.QUOTE_DOUBLE);var g=m(v);if(null===g&&null===(g=m(f)))throw new Error("Unsupported default string type ".concat(f));return g};var o=n(58),i=n(7),a=r(n(347)),s=n(40);function u(e,t){var n=t.implicitKey,r=t.indent,o=s.strOptions.doubleQuoted,i=o.jsonEncoding,u=o.minMultiLineLength,c=JSON.stringify(e);if(i)return c;for(var l="",f=0,p=0,h=c[p];h;h=c[++p])if(" "===h&&"\\"===c[p+1]&&"n"===c[p+2]&&(l+=c.slice(f,p)+"\\ ",f=p+=1,h="\\"),"\\"===h)switch(c[p+1]){case"u":l+=c.slice(f,p);var d=c.substr(p+2,4);switch(d){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===d.substr(0,2)?l+="\\x"+d.substr(2):l+=c.substr(p,6)}f=(p+=5)+1;break;case"n":if(n||'"'===c[p+2]||c.lengtht)return!0;if(n-(o=r+1)<=t)return!1}return!0}(l,s.strOptions.fold.lineWidth-f.length)),d=h?"|":">";if(!l)return d+"\n";var v="",y="";if(l=l.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?d+="-":l!==e&&t===e.length-1||(d+="+",r&&r()),y=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(d+=p);var t=e.match(/ +$/);return t?(v=e.slice(0,-t[0].length),t[0]):(v=e,"")}),y&&(y=y.replace(/\n+(?!\n|$)/g,"$&".concat(f))),v&&(v=v.replace(/\n+/g,"$&".concat(f))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!l)return"".concat(d).concat(p,"\n").concat(f).concat(y);if(h)return l=l.replace(/\n+/g,"$&".concat(f)),"".concat(d,"\n").concat(f).concat(v).concat(l).concat(y);l=l.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var m=(0,a.default)("".concat(v).concat(l).concat(y),f,a.FOLD_BLOCK,s.strOptions.fold);return"".concat(d,"\n").concat(f).concat(m)}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(298),o=n(299),i=n(109);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;ia&&(n=a-u),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(39),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(24);i.inherits=n(8);var s=n(116),a=n(120);i.inherits(f,s);for(var u=o(a.prototype),c=0;cu){var c=a;a=u,u=c}return a+s+u+s+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var s=o;o=i,i=s}var a={v:o,w:i};return r&&(a.name=r),a}function p(e,t){return l(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},a.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},a.prototype.setEdge=function(){var e,t,n,o,i=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var a=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=f(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[a]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][a]=c,this._out[e][a]=c,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(25),o=n(142),i=n(143),s=n(144),a=n(145),u=n(146);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9)(n(6),"Map");e.exports=r},function(e,t,n){var r=n(153),o=n(160),i=n(162),s=n(163),a=n(164);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(66),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(20)(e))},function(e,t,n){var r=n(33),o=n(170),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(75),o=n(76),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return i.call(e,t)}))}:o;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,o="/"===s.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(282),o=n(283);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(103);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i127?I+="x":I+=P[U];if(!I.match(h)){var L=T.slice(0,E),q=T.slice(E+1),D=P.match(d);D&&(L.push(D[1]),q.unshift(D[2])),q.length&&(b="/"+q.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+z,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[_])for(E=0,R=l.length;E0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=S.slice(-1)[0],A=(n.host||e.host||S.length>1)&&("."===O||".."===O)||""===O,E=0,j=S.length;j>=0;j--)"."===(O=S[j])?S.splice(j,1):".."===O?(S.splice(j,1),E++):E&&(S.splice(j,1),E--);if(!x&&!_)for(;E--;E)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var C,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);k&&(n.hostname=n.host=T?"":S.length?S.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(x=x||n.host&&S.length)&&!T&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";var r=n(17);e.exports=new r({explicit:[n(288),n(289),n(290)]})},function(e,t,n){"use strict";function r(e){return e=(e=e.split("~1").join("/")).split("~0").join("~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=0){let e=t.split("#");if(e[0])return!1;t=e[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let o=t.split("/");for(let t=0;t0?o[t-1]:"",-1!=s||e.hasOwnProperty(o[t]))if(s>=0)i&&(e[s]=n),e=e[s];else{if(-2===s)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,t,n){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"use strict";const r=n(104),o=n(61),i=(n(60),n(284)),s=n(105),a=n(106),u=n(63),c=u.jptr,l=n(110).isRef,f=n(64).clone,p=n(64).circularClone,h=n(111).recurse,d=n(308),m=n(312),v=n(112),y=n(313).statusCodes,g=n(326).version,b="3.0.0";let w;class x extends Error{constructor(e){super(e),this.name="S2OError"}}function _(e,t){let n=new x(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:_(e,n)}function k(e,t){m.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of v.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else _("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace)}(e,n,t)})}function O(e,t,n){let r=n.payload.options;if(l(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+v.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+v.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let n=f(u.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],s="schemas",a=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(s=i.indexOf("/headers/")>a?"headers":i.indexOf("/responses/")>a?"responses":i.indexOf("/example")>a?"examples":i.indexOf("/parameters/")>a?"parameters":"schemas")&&k(n,r),"responses"!==s){let i=s.substr(0,s.length-1);"parameter"===i&&n.name&&n.name===v.sanitise(n.name)&&(i=encodeURIComponent(n.name));let a=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(v.sanitise(o)),a="");u.jptr(r.openapi,"#/components/"+s+"/"+i+a);)a=""===a?2:++a;let c="#/components/"+s+"/"+i+a,l="";"examples"===s&&(n={value:n},l="/value"),u.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){let r=e[t];delete e[t],n.parent[n.pkey]={allOf:[{$ref:r},e]}}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function A(e){for(let t in e)for(let n in e[t]){let r=v.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function E(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:_("(Patchable) oauth2 securitySchemes should not have name property",t))}}function j(e){return e&&!e["x-s2o-delete"]}function C(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),void 0!==e.collectionFormat&&("array"!=e.type&&(t.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to header.type array",t)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&S("collectionFormat:ssv is no longer supported for headers",e,t),"pipes"===e.collectionFormat&&S("collectionFormat:pipes is no longer supported for headers",e,t),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),delete e.type;for(let t of v.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of v.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function T(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+v.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&S("Definition used as parameter",e,t)}function R(e,t,n,r,o,i){let s,a={},u=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!i.patch)return _("(Patchable) operation.consumes must be an array",i);t.consumes=[t.consumes]}Array.isArray(o.consumes)||delete o.consumes;let l=((t?t.consumes:null)||o.consumes||[]).filter(v.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){T(e,i);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=o.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=c(o,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,i):n&&(e=n)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"==e.in||e.type||(i.patch?e.type="string":_("(Patchable) parameter.type is mandatory for non-body parameters",i)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(o,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=c(o,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(i.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to param.type array",i)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,i)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,i)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,i),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,i);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,i),delete n[r])}));for(let t of v.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&k(e.schema,i),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,a.content={};let t="application/x-www-form-urlencoded";if(l.length&&l.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),a.content[t]={},e.schema)a.content[t].schema=e.schema,e.schema.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{a.content[t].schema={},a.content[t].schema.type="object",a.content[t].schema.properties={},a.content[t].schema.properties[e.name]={};let n=a.content[t].schema,r=a.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of v.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),P(e,r)}}else e&&"file"===e.type&&(e.required&&(a.required=e.required),a.content={},a.content["application/octet-stream"]={},a.content["application/octet-stream"].schema={},a.content["application/octet-stream"].schema.type="string",a.content["application/octet-stream"].schema.format="binary",P(e,a));if(e&&"body"===e.in){a.content={},e.name&&(a["x-s2o-name"]=(t&&t.operationId?v.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(a.description=e.description),e.required&&(a.required=e.required),t&&i.rbname&&e.name&&(t[i.rbname]=e.name),e.schema&&e.schema.$ref?a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),l.length||l.push("application/json");for(let t of l)a.content[t]={},a.content[t].schema=f(e.schema||{}),k(a.content[t].schema,i);P(e,a)}if(Object.keys(a).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||r)+" has multiple requestBodies",t,i)}else t.requestBody=Object.assign({},t.requestBody),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&a.content["multipart/form-data"]&&a.content["multipart/form-data"].schema&&a.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,a.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(a.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&a.content["application/x-www-form-urlencoded"]&&a.content["application/x-www-form-urlencoded"].schema&&a.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,a.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(a.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,a),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=v.sanitiseAll(t.operationId))));if(e){delete e.type;for(let t of v.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(i.patch?e.required=!0:_("(Patchable) path parameters must be required:true",i))}return a}function P(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function I(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+v.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(e.description=y[e]||""):_("(Patchable) response.description is mandatory",o)),e.schema){if(k(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+v.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return _("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(v.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=f(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?delete e.headers[t]:_('(Patchable) "Status Code" is not a valid header',o):C(e.headers[t],o)}}function U(e,t,n,r,i){for(let s in e){let a=e[s];a&&a["x-trace"]&&"object"==typeof a["x-trace"]&&(a.trace=a["x-trace"],delete a["x-trace"]),a&&a["x-summary"]&&"string"==typeof a["x-summary"]&&(a.summary=a["x-summary"],delete a["x-summary"]),a&&a["x-description"]&&"string"==typeof a["x-description"]&&(a.description=a["x-description"],delete a["x-description"]),a&&a["x-servers"]&&Array.isArray(a["x-servers"])&&(a.servers=a["x-servers"],delete a["x-servers"]);for(let e in a)if(v.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let l=a[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(a.parameters)for(let e of a.parameters){"string"==typeof e.$ref&&(T(e,n),e=c(i,e.$ref)),l.parameters.find(function(t,n,r){return t.name===e.name&&t.in===e.in})||"formData"!==e.in&&"body"!==e.in&&"file"!==e.type||R(e,l,0,s,i,n)}for(let t of l.parameters)R(t,l,0,e+":"+s,i,n);n.debug||(l.parameters=l.parameters.filter(j))}if(l&&l.security&&A(l.security),"object"==typeof l){if(!l.responses){let e={description:"Default response"};l.responses={default:e}}for(let e in l.responses){I(l.responses[e],0,l,i,n)}}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length)for(let e of l.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(l.servers||(l.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=f(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),l.servers.push(n)}if(n.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["x-ms-examples"][e],n=v.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(l.parameters||[]).concat(a.parameters||[]))t.$ref&&(t=u.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in l.responses[r].headers)if(t===e){l.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:f(t.responses[r].body)},l.responses[r]&&l.responses[r].content))for(let t in l.responses[r].content){let o=l.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let n=l.operationId?v.sanitiseAll(l.operationId):v.sanitiseAll(e+s).toCamelCase(),o=v.sanitise(l.requestBody["x-s2o-name"]||n||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),a=v.hash(i);if(!r[a]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],r[a]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(s))+"/"+e+"/requestBody";r[a].refs.push(c)}}}if(a&&a.parameters){for(let e in a.parameters){R(a.parameters[e],null,0,s,i,n)}!n.debug&&Array.isArray(a.parameters)&&(a.parameters=a.parameters.filter(j))}}}function N(e,t){let n={};w={schemas:{}},e.security&&A(e.security);for(let n in e.components.securitySchemes){let r=v.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&_("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),E(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=v.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}w.schemas[n]=r+o,k(e.components.schemas[r+o],t)}t.refmap={},h(e,{payload:{options:t}},O),function(e,t){for(let n in t.refmap)u.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=v.sanitise(n);n!=r&&(e.components.parameters[r]&&_("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),R(e.components.parameters[r],null,0,r,e,t)}for(let n in e.components.responses){let r=v.sanitise(n);n!=r&&(e.components.responses[r]&&_("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(I(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:_('(Patchable) "Status Code" is not a valid header',t):C(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=v.hash(o),s={};s.name=t,s.body=r,s.refs=[],n[i]=s}if(U(e.paths,"paths",t,n,e),e["x-ms-paths"]&&U(e["x-ms-paths"],"x-ms-paths",t,n,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let r=[];e.components.requestBodies={};let o=1;for(let t in n){let i=n[t];if(i.refs.length>1){let t="";for(i.name||(i.name="requestBody",t=o++);r.indexOf(i.name+t)>=0;)t=t?++t:2;i.name=i.name+t,r.push(i.name),e.components.requestBodies[i.name]=f(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,u.jptr(e,i.refs[t],n)}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function L(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function q(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new x("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new x("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new x("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new x("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new x("(Patchable) info should not have logo property"));e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return n(new x("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new x("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new x("(Patchable) paths object is mandatory"));e.paths={}}}function z(e,t,n){return i(n,new Promise(function(n,r){if(e||(e={}),t.original=e,t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=p(e),q(t.openapi,t,r),D(t.openapi,t,r),void d.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(new x("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=g,o["x-origin"].push(n)}if(delete(o=Object.assign(o,p(e))).swagger,h(o,{},function(e,t,n){null!==e[t]||t.startsWith("x-")||delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),L(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,L(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],n={};n.url=t.hostTemplate,n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=f(c(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),o.servers.push(n),delete o["x-ms-parameterized-host"]}q(o,t,r),D(o,t,r),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,d.optionalResolve(t).then(function(){N(o,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function M(e,t,n){return i(n,new Promise(function(n,r){let o=null;try{o=JSON.parse(e)}catch(n){try{o=a.safeLoad(e,{json:!0}),t.sourceYaml=!0}catch(e){}}o?z(o,t).then(e=>n(e)).catch(e=>r(e)):r(new x("Could not parse string"))}))}e.exports={S2OError:x,targetVersion:b,convert:z,convertObj:z,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.log("GET "+e),s(e,{agent:t.agent}).then(function(e){if(200!==e.status)throw new x(`Received status code ${e.status}`);return e.text()}).then(function(e){M(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:M,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,M(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){M(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(3))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(69),o=n(44),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(70);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(9),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(166),o=n(31),i=n(0),s=n(21),a=n(72),u=n(32),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&s(e),p=!n&&!l&&!f&&u(e),h=n||l||f||p,d=h?r(e.length,String):[],m=d.length;for(var v in e)!t&&!c.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,m))||d.push(v);return d}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&ep))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var m=-1,v=!0,y=n&a?new r:void 0;for(l.set(e,t),l.set(t,e);++m0&&(i=u.removeMin(),(s=a[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return a}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(5);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].prioritye._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new r(i.length),a=0;ae._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(4),n(18).Buffer,n(3))},function(e,t,n){(t=e.exports=n(116)).Stream=t,t.Readable=t,t.Writable=n(120),t.Duplex=n(19),t.Transform=n(122),t.PassThrough=n(322)},function(e,t,n){"use strict";(function(t,r){var o=n(39);e.exports=b;var i,s=n(109);b.ReadableState=g;n(117).EventEmitter;var a=function(e,t){return e.listeners(t).length},u=n(118),c=n(40).Buffer,l=t.Uint8Array||function(){};var f=n(24);f.inherits=n(8);var p=n(316),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,m=n(317),v=n(119);f.inherits(b,u);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(19));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(121).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(19),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,s)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?x(e,s,t,!1):A(e,s)):x(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(O,e):O(e))}function O(e){h("emit readable"),e.emit("readable"),T(e)}function A(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(E,e,t))}function E(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0===(e-=s)){s===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):k(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",m),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function m(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function v(t){h("onerror",t),b(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function f(){for(var e=[],t=0;t0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(117).EventEmitter},function(e,t,n){"use strict";var r=n(39);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(39);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var a,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=y;var c=n(24);c.inherits=n(8);var l={deprecate:n(321)},f=n(118),p=n(40).Buffer,h=o.Uint8Array||function(){};var d,m=n(119);function v(){}function y(e,t){a=a||n(19),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,o);else{var s=_(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(w,e,n,s,o):w(e,n,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function g(e){if(a=a||n(19),!(d.call(g,this)||this instanceof a))return new g(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,o,i,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof y)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,s=!1,a=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(r,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,o,i){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(4),n(319).setImmediate,n(3))},function(e,t,n){"use strict";var r=n(40).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=s;var r=n(19),o=n(24);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length-1?o=s:(n=r.isUndefined(e)?void 0:O(e),r.isUndefined(n)?o=s:((o=n).path=u(i.join(n.path,s.path)),o.query=function(e,t){var n={};function o(e){r.forOwn(e,function(e,t){n[t]=e})}return o(a.parse(e||"")),o(a.parse(t||"")),0===Object.keys(n).length?void 0:a.stringify(n)}(n.query,s.query))),o.fragment=void 0,(-1===h.indexOf(o.reference)&&0===o.path.indexOf("../")?"../":"")+c.serialize(o)}function v(e){return p.indexOf(w(e))>-1}function y(e){return r.isUndefined(e.error)&&"invalid"!==e.type}function g(e,t){var n=e;return t.forEach(function(e){if(!(e in n))throw Error("JSON Pointer points to missing location: "+I(t));n=n[e]}),n}function b(e){return Object.keys(e).filter(function(e){return"$ref"!==e})}function w(e){var t;switch(e.uriDetails.reference){case"absolute":case"uri":t="remote";break;case"same-document":t="local";break;default:t=e.uriDetails.reference}return t}function x(e,t){var n=f[e],o=Promise.resolve(),i=r.cloneDeep(t.loaderOptions||{});return r.isUndefined(n)?(r.isUndefined(i.processContent)&&(i.processContent=function(e,t){t(void 0,JSON.parse(e.text))}),o=(o=s.load(decodeURI(e),i)).then(function(t){return f[e]={value:t},t}).catch(function(t){throw f[e]={error:t},t})):o=o.then(function(){if(r.isError(n.error))throw n.error;return n.value}),o=o.then(function(e){return r.cloneDeep(e)})}function _(e,t){var n=!0;try{if(!r.isPlainObject(e))throw new Error("obj is not an Object");if(!r.isString(e.$ref))throw new Error("obj.$ref is not a String")}catch(e){if(t)throw e;n=!1}return n}function S(e){return-1!==e.indexOf("://")||i.isAbsolute(e)?e:i.resolve(t.cwd(),e)}function k(e,t){e.error=t.message,e.missing=!0}function O(e){return c.parse(e)}function A(e,t){var n,o;if(e=r.isUndefined(e)?{}:r.cloneDeep(e),!r.isObject(e))throw new TypeError("options must be an Object");if(!r.isUndefined(e.resolveCirculars)&&!r.isBoolean(e.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(r.isUndefined(e.filter)||r.isArray(e.filter)||r.isFunction(e.filter)||r.isString(e.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!r.isUndefined(e.includeInvalid)&&!r.isBoolean(e.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!r.isUndefined(e.location)&&!r.isString(e.location))throw new TypeError("options.location must be a String");if(!r.isUndefined(e.refPreProcessor)&&!r.isFunction(e.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!r.isUndefined(e.refPostProcessor)&&!r.isFunction(e.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!r.isUndefined(e.subDocPath)&&!r.isArray(e.subDocPath)&&!R(e.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(r.isUndefined(e.resolveCirculars)&&(e.resolveCirculars=!1),e.filter=function(e){var t,n;return r.isArray(e.filter)||r.isString(e.filter)?(n=r.isString(e.filter)?[e.filter]:e.filter,t=function(e){return n.indexOf(e.type)>-1||n.indexOf(w(e))>-1}):r.isFunction(e.filter)?t=e.filter:r.isUndefined(e.filter)&&(t=function(){return!0}),function(n,r){return("invalid"!==n.type||!0===e.includeInvalid)&&t(n,r)}}(e),r.isUndefined(e.location)&&(e.location=S("./root.json")),(n=e.location.split("#")).length>1&&(e.subDocPath="#"+n[1]),o=decodeURI(e.location)===e.location,e.location=m(e.location,void 0),o&&(e.location=decodeURI(e.location)),e.subDocPath=function(e){var t;return r.isArray(e.subDocPath)?t=e.subDocPath:r.isString(e.subDocPath)?t=P(e.subDocPath):r.isUndefined(e.subDocPath)&&(t=[]),t}(e),!r.isUndefined(t))try{g(t,e.subDocPath)}catch(e){throw e.message=e.message.replace("JSON Pointer","options.subDocPath"),e}return e}function E(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~1/g,"/").replace(/~0/g,"~")})}function j(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~/g,"~0").replace(/\//g,"~1")})}function C(e,t){var n={};if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");return function e(t,n,o,i){var s=!0;function a(n,r){o.push(r),e(t,n,o,i),o.pop()}r.isFunction(i)&&(s=i(t,n,o)),-1===t.indexOf(n)&&(t.push(n),!1!==s&&(r.isArray(n)?n.forEach(function(e,t){a(e,t.toString())}):r.isObject(n)&&r.forOwn(n,function(e,t){a(e,t)})),t.pop())}(function(e,t){var n,r=[];return t.length>0&&(n=e,t.slice(0,t.length-1).forEach(function(e){e in n&&(n=n[e],r.push(n))})),r}(e,(t=A(t,e)).subDocPath),g(e,t.subDocPath),r.cloneDeep(t.subDocPath),function(e,o,i){var s,a,u=!0;return _(o)&&(r.isUndefined(t.refPreProcessor)||(o=t.refPreProcessor(r.cloneDeep(o),i)),s=T(o),r.isUndefined(t.refPostProcessor)||(s=t.refPostProcessor(s,i)),t.filter(s,i)&&(a=I(i),n[a]=s),b(o).length>0&&(u=!1)),u}),n}function T(e){var t,n,o,i={def:e};try{if(_(e,!0)){if(t=e.$ref,o=d[t],r.isUndefined(o)&&(o=d[t]=O(t)),i.uri=t,i.uriDetails=o,r.isUndefined(o.error)){i.type=w(i);try{["#","/"].indexOf(t[0])>-1?R(t,!0):t.indexOf("#")>-1&&R(o.fragment,!0)}catch(e){i.error=e.message,i.type="invalid"}}else i.error=i.uriDetails.error,i.type="invalid";(n=b(e)).length>0&&(i.warning="Extra JSON Reference properties will be ignored: "+n.join(", "))}else i.type="invalid"}catch(e){i.error=e.message,i.type="invalid"}return i}function R(e,t){var n,o=!0;try{if(!r.isString(e))throw new Error("ptr is not a String");if(""!==e){if(n=e.charAt(0),-1===["#","/"].indexOf(n))throw new Error("ptr must start with a / or #/");if("#"===n&&"#"!==e&&"/"!==e.charAt(1))throw new Error("ptr must start with a / or #/");if(e.match(l))throw new Error("ptr has invalid token(s)")}}catch(e){if(!0===t)throw e;o=!1}return o}function P(e){try{R(e,!0)}catch(e){throw new Error("ptr must be a JSON Pointer: "+e.message)}var t=e.split("/");return t.shift(),E(t)}function I(e,t){if(!r.isArray(e))throw new Error("path must be an Array");return(!1!==t?"#":"")+(e.length>0?"/":"")+j(e).join("/")}function U(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");t=A(t,e),e=r.cloneDeep(e)}).then(function(){var n={deps:{},docs:{},refs:{}};return function e(t,n,o){var s,a,u=Promise.resolve(),c=I(n.subDocPath),l=S(n.location),f=i.dirname(n.location),p=l+c;return r.isUndefined(o.docs[l])&&(o.docs[l]=t),r.isUndefined(o.deps[p])&&(o.deps[p]={},s=C(t,n),r.forOwn(s,function(i,s){var l,h,d=S(n.location)+s,g=i.refdId=decodeURI(S(v(i)?m(f,i.uri):n.location)+"#"+(i.uri.indexOf("#")>-1?i.uri.split("#")[1]:""));(o.refs[d]=i,y(i))&&(i.fqURI=g,o.deps[p][s===c?"#":s.replace(c+"/","#/")]=g,0!==d.indexOf(g+"/")?((a=r.cloneDeep(n)).subDocPath=r.isUndefined(i.uriDetails.fragment)?[]:P(decodeURI(i.uriDetails.fragment)),v(i)?(delete a.filter,a.location=g.split("#")[0],u=u.then((l=o,h=a,function(){var e=S(h.location),t=l.docs[e];return r.isUndefined(t)?x(e,h).catch(function(t){return l.docs[e]=t,t}):Promise.resolve().then(function(){return t})}))):u=u.then(function(){return t}),u=u.then(function(t,n,o){return function(i){if(r.isError(i))k(o,i);else try{return e(i,n,t).catch(function(e){k(o,e)})}catch(e){k(o,e)}}}(o,a,i))):i.circular=!0)})),u}(e,t,n).then(function(){return n})}).then(function(e){var n={},s=[],a=[],u=new o.Graph,c=S(t.location),l=c+I(t.subDocPath),f=i.dirname(c);return Object.keys(e.deps).forEach(function(e){u.setNode(e)}),r.forOwn(e.deps,function(e,t){r.forOwn(e,function(e){u.setEdge(t,e)})}),(s=o.alg.findCycles(u)).forEach(function(e){e.forEach(function(e){-1===a.indexOf(e)&&a.push(e)})}),r.forOwn(e.deps,function(t,n){r.forOwn(t,function(t,r){var o,i=!1,u=n+r.slice(1),c=e.refs[n+r.slice(1)],l=v(c);a.indexOf(t)>-1&&s.forEach(function(e){i||(o=e.indexOf(t))>-1&&e.forEach(function(n){i||0===u.indexOf(n+"/")&&(l&&o!==e.length-1&&"#"===t[t.length-1]||(i=!0))})}),i&&(c.circular=!0)})}),r.forOwn(Object.keys(e.deps).reverse(),function(n){var o=e.deps[n],i=n.split("#"),s=e.docs[i[0]],a=P(i[1]);r.forOwn(o,function(n,o){var u=n.split("#"),c=e.docs[u[0]],l=a.concat(P(o)),f=e.refs[i[0]+I(l)];if(r.isUndefined(f.error)&&r.isUndefined(f.missing))if(!t.resolveCirculars&&f.circular)f.value=f.def;else{try{f.value=g(c,P(u[1]))}catch(e){return void k(f,e)}""===i[1]&&"#"===o?e.docs[i[0]]=f.value:function(e,t,n){g(e,t.slice(0,t.length-1))[t[t.length-1]]=n}(s,l,f.value)}})}),Object.keys(e.refs).forEach(function(o){var i,s,a=e.refs[o];"invalid"!==a.type&&("#"===a.fqURI[a.fqURI.length-1]&&"#"!==a.uri[a.uri.length-1]&&(a.fqURI=a.fqURI.substr(0,a.fqURI.length-1)),i=a.fqURI.split("/"),s=a.uri.split("/"),r.times(s.length-1,function(e){var t=s[s.length-e-1],n=i.length-e-1,r=i[n];"."!==t&&".."!==t||(t=r),i[n]=t}),a.fqURI=i.join("/"),0===a.fqURI.indexOf(c)?a.fqURI=a.fqURI.replace(c,""):0===a.fqURI.indexOf(f)&&(a.fqURI=a.fqURI.replace(f,"")),"/"===a.fqURI[0]&&(a.fqURI="."+a.fqURI)),0===o.indexOf(l)&&function r(o,i,s){var a,u=i.split("#"),c=e.refs[i];n[u[0]===t.location?"#"+u[1]:I(t.subDocPath.concat(s))]=c,!c.circular&&y(c)?(a=e.deps[c.refdId],0!==c.refdId.indexOf(o)&&Object.keys(a).forEach(function(e){r(c.refdId,c.refdId+e.substr(1),s.concat(P(e)))})):!c.circular&&c.error&&(c.error=c.error.replace("options.subDocPath","JSON Pointer"),c.error.indexOf("#")>-1&&(c.error=c.error.replace(c.uri.substr(c.uri.indexOf("#")),c.uri)),0!==c.error.indexOf("ENOENT:")&&0!==c.error.indexOf("Not Found")||(c.error="JSON Pointer points to missing location: "+c.uri))}(l,o,P(o.substr(l.length)))}),r.forOwn(e.refs,function(e){delete e.refdId,e.missing&&(e.error=e.error.split(": ")[0]+": "+e.def.$ref)}),{refs:n,resolved:e.docs[c]}})}"undefined"==typeof Promise&&n(102),e.exports.clearCache=function(){f={}},e.exports.decodePath=function(e){return E(e)},e.exports.encodePath=function(e){return j(e)},e.exports.findRefs=function(e,t){return C(e,t)},e.exports.findRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=A(t)).location,t)}).then(function(e){var n=r.cloneDeep(f[t.location]),o=r.cloneDeep(t),i=O(t.location);return r.isUndefined(n.refs)&&(delete o.filter,delete o.subDocPath,o.includeInvalid=!0,f[t.location].refs=C(e,o)),r.isUndefined(t.filter)||(o.filter=t.filter),r.isUndefined(i.fragment)?r.isUndefined(i.subDocPath)||(o.subDocPath=t.subDocPath):o.subDocPath=P(decodeURI(i.fragment)),{refs:C(e,o),value:e}})}(e,t)},e.exports.getRefDetails=function(e){return T(e)},e.exports.isPtr=function(e,t){return R(e,t)},e.exports.isRef=function(e,t){return function(e,t){return _(e,t)&&"invalid"!==T(e).type}(e,t)},e.exports.pathFromPtr=function(e){return P(e)},e.exports.pathToPtr=function(e,t){return I(e,t)},e.exports.resolveRefs=function(e,t){return U(e,t)},e.exports.resolveRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=A(t)).location,t)}).then(function(e){var n=r.cloneDeep(t),o=O(t.location);return r.isUndefined(o.fragment)||(n.subDocPath=P(decodeURI(o.fragment))),U(e,n).then(function(t){return{refs:t.refs,resolved:t.resolved,value:e}})})}(e,t)}}).call(this,n(4))},function(e,t,n){var r=n(41);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=n(131)(r,o);r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(41,function(){var t=n(41);"string"==typeof t&&(t=[[e.i,t,""]]),i(t)}),e.hot.dispose(function(){i()})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(u," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var s,a,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(10))},function(e,t,n){"use strict";var r=n(63),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(41);i.inherits=n(28);var a=n(156),s=n(160);i.inherits(f,a);for(var u=o(s.prototype),c=0;co&&(o=l)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return o}if(t instanceof v.default){var f=e(t.key,n),p=e(t.value,n);return Math.max(f,p)}return 1},m=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,a.default)(t).call(this))).source=e,n.type=l.Type.ALIAS,n}return(0,u.default)(t,e),(0,s.default)(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(o).find(function(e){return o[e]===r});if(!u&&s&&(u=i.anchors.getName(r)||i.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var c=i.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(c," [").concat(n,"]"))}}]),(0,s.default)(t,[{key:"toJSON",value:function(e,t){var n=this;if(!t)return(0,p.default)(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.find(function(e){return e.node===n.source});if(!i||!i.res){var a="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,a):new ReferenceError(a)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=y(this.source,r)),i.count*i.aliasCount>o)){var s="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,s):new ReferenceError(s)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(d.default);t.default=m,(0,c.default)(m,"default",!0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;var r=n(35),o=n(40),i=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=i;var a={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:i,stringify:function(e,t,n,o){return t=Object.assign({actualString:!0},t),(0,r.stringifyString)(e,t,n,o)},options:o.strOptions};t.default=a},function(e,t,n){"use strict";function r(e){return e=(e=e.split("~1").join("/")).split("~0").join("~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=0){let e=t.split("#");if(e[0])return!1;t=e[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let o=t.split("/");for(let t=0;t0?o[t-1]:"",-1!=a||e.hasOwnProperty(o[t]))if(a>=0)i&&(e[a]=n),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,t,n){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;au){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function p(e,t){return l(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=f(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(42),o=n(182),i=n(183),a=n(184),s=n(185),u=n(186);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(21)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(193),o=n(200),i=n(202),a=n(203),s=n(204);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(96),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(38)(e))},function(e,t,n){var r=n(50),o=n(210),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(105),o=n(106),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(15))},function(e,t,n){"use strict";var r=n(322),o=n(323);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(133);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?L+="x":L+=R[N];if(!L.match(h)){var I=C.slice(0,A),U=C.slice(A+1),D=R.match(d);D&&(I.push(D[1]),U.unshift(D[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[_])for(A=0,P=l.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],E=(n.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,A=0,T=S.length;T>=0;T--)"."===(k=S[T])?S.splice(T,1):".."===k?(S.splice(T,1),A++):A&&(S.splice(T,1),A--);if(!x&&!_)for(;A--;A)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var j,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(n.hostname=n.host=C?"":S.length?S.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&S.length)&&!C&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(7),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,c.Type.COMMENT))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new f.default(t,n),n}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(90)),i=r(n(91)),a=r(n(60)),s=[o.default,i.default,a.default];t.default=s},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(55)),a=r(n(27)),s=r(n(144));var u={createNode:function(e,t,n){var r=new a.default;if(t instanceof Map){var s=!0,u=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=(0,i.default)(l.value,2),h=p[0],d=p[1];r.items.push(e.createPair(h,d,n))}}catch(e){u=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw c}}}else if(t&&"object"===(0,o.default)(t))for(var v=0,y=Object.keys(t);v1){throw new o.YAMLSemanticError(t,"Each pair must have its own sequence indicator")}var c=u.items[0]||new a.default;u.commentBefore&&(c.commentBefore=c.commentBefore?"".concat(u.commentBefore,"\n").concat(c.commentBefore):u.commentBefore),u.comment&&(c.comment=c.comment?"".concat(u.comment,"\n").concat(c.comment):u.comment),u=c}n.items[r]=u instanceof a.default?u:new a.default(u)}}return n}function l(e,t,n){var r=new u.default;r.tag="tag:yaml.org,2002:pairs";var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=void 0,p=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));f=l[0],p=l[1]}else if(l&&l instanceof Object){var h=Object.keys(l);if(1!==h.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));p=l[f=h[0]]}else f=l;var d=e.createPair(f,p,n);r.items.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}var f={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:c,createNode:l};t.default=f},function(e,t,n){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},function(e,t,n){"use strict";const r=n(61).jpescape;e.exports={recurse:function e(t,n,o){if(n||(n={depth:0}),n.depth||(n=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},n)),"object"!=typeof t)return;let i=n.path;for(let a in t){if(n.key=a,n.path=n.path+"/"+encodeURIComponent(r(a)),n.identityPath=n.seen.get(t[a]),n.identity=void 0!==n.identityPath,o(t,a,n),"object"==typeof t[a]&&!n.identity){n.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&n.seen.set(t[a],n.path);let r={};r.parent=t,r.path=n.path,r.depth=n.depth?n.depth+1:1,r.pkey=a,r.payload=n.payload,r.seen=n.seen,r.identity=!1,r.identityDetection=n.identityDetection,e(t[a],r,o)}n.path=i}}}},function(e,t,n){"use strict";const r=n(134),o=n(85),i=(n(84),n(324)),a=n(135),s=n(136),u=n(61),c=u.jptr,l=n(93).isRef,f=n(62).clone,p=n(62).circularClone,h=n(94).recurse,d=n(354),v=n(357),y=n(152),m=n(358).statusCodes,g=n(371).version,b="3.0.0";let w;class x extends Error{constructor(e){super(e),this.name="S2OError"}}function _(e,t){let n=new x(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:_(e,n)}function O(e,t){v.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of y.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else _("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace)}(e,n,t)})}function k(e,t,n){let r=n.payload.options;if(l(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+y.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+y.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let n=f(u.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],a="schemas",s=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(a=i.indexOf("/headers/")>s?"headers":i.indexOf("/responses/")>s?"responses":i.indexOf("/example")>s?"examples":i.indexOf("/x-")>s?"extensions":i.indexOf("/parameters/")>s?"parameters":"schemas")&&O(n,r),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&n.name&&n.name===y.sanitise(n.name)&&(i=encodeURIComponent(n.name));let s=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(y.sanitise(o)),s="");u.jptr(r.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let c="#/components/"+a+"/"+i+s,l="";"examples"===a&&(n={value:n},l="/value"),u.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(i&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:o},e]}):n.parent[n.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=y.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function A(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:_("(Patchable) oauth2 securitySchemes should not have name property",t))}}function T(e){return e&&!e["x-s2o-delete"]}function j(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),void 0!==e.collectionFormat&&("array"!=e.type&&(t.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to header.type array",t)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&S("collectionFormat:ssv is no longer supported for headers",e,t),"pipes"===e.collectionFormat&&S("collectionFormat:pipes is no longer supported for headers",e,t),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),delete e.type;for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of y.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function C(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+y.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&S("Definition used as parameter",e,t)}function P(e,t,n,r,o,i,a){let s,u={},l=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return _("(Patchable) operation.consumes must be an array",a);t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let p=((t?t.consumes:null)||i.consumes||[]).filter(y.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){C(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=i.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=c(i,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,a):n&&(e=n)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"==e.in||e.type||(a.patch?e.type="string":_("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,a);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,a),delete n[r])}));for(let t of y.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){l=!1,u.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),u.content[t]={},e.schema)u.content[t].schema=e.schema,e.schema.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{u.content[t].schema={},u.content[t].schema.type="object",u.content[t].schema.properties={},u.content[t].schema.properties[e.name]={};let n=u.content[t].schema,r=u.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of y.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),R(e,r)}}else e&&"file"===e.type&&(e.required&&(u.required=e.required),u.content={},u.content["application/octet-stream"]={},u.content["application/octet-stream"].schema={},u.content["application/octet-stream"].schema.type="string",u.content["application/octet-stream"].schema.format="binary",R(e,u));if(e&&"body"===e.in){u.content={},e.name&&(u["x-s2o-name"]=(t&&t.operationId?y.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(u.description=e.description),e.required&&(u.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),p.length||p.push("application/json");for(let t of p)u.content[t]={},u.content[t].schema=f(e.schema||{}),O(u.content[t].schema,a);R(e,u)}if(Object.keys(u).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&l){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&u.content["multipart/form-data"]&&u.content["multipart/form-data"].schema&&u.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,u.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(u.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&u.content["application/x-www-form-urlencoded"]&&u.content["application/x-www-form-urlencoded"].schema&&u.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,u.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(u.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,u),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=y.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of y.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?e.required=!0:_("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function R(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function L(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(e.description=m[e]||""):_("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return _("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(y.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=f(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?delete e.headers[t]:_('(Patchable) "Status Code" is not a valid header',o):j(e.headers[t],o)}}function N(e,t,n,r,i){for(let a in e){let s=e[a];s&&s["x-trace"]&&"object"==typeof s["x-trace"]&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&"string"==typeof s["x-summary"]&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&"string"==typeof s["x-description"]&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let e in s)if(y.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let l=s[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(C(t,n),t=c(i,t.$ref)),l.parameters.find(function(e,n,r){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(l=P(t,l,s,e,a,i,n),n.rbname&&""===l[n.rbname]&&delete l[n.rbname])}for(let t of l.parameters)l=P(t,l,s,e,e+":"+a,i,n);n.rbname&&""===l[n.rbname]&&delete l[n.rbname],n.debug||(l.parameters=l.parameters.filter(T))}if(l&&l.security&&E(l.security),"object"==typeof l){if(!l.responses){let e={description:"Default response"};l.responses={default:e}}for(let e in l.responses){L(l.responses[e],0,l,i,n)}}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length)for(let e of l.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(l.servers||(l.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=f(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),l.servers.push(n)}if(n.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["x-ms-examples"][e],n=y.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(l.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=u.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in l.responses[r].headers)if(t===e){l.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:f(t.responses[r].body)},l.responses[r]&&l.responses[r].content))for(let t in l.responses[r].content){let o=l.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let n=l.operationId?y.sanitiseAll(l.operationId):y.sanitiseAll(e+a).toCamelCase(),o=y.sanitise(l.requestBody["x-s2o-name"]||n||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),s=y.hash(i);if(!r[s]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],r[s]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(a))+"/"+e+"/requestBody";r[s].refs.push(c)}}}if(s&&s.parameters){for(let e in s.parameters){P(s.parameters[e],null,s,null,a,i,n)}!n.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(T))}}}function M(e,t){let n={};w={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=y.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&_("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),A(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=y.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}w.schemas[n]=r+o,O(e.components.schemas[r+o],t)}t.refmap={},h(e,{payload:{options:t}},k),function(e,t){for(let n in t.refmap)u.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=y.sanitise(n);n!=r&&(e.components.parameters[r]&&_("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),P(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=y.sanitise(n);n!=r&&(e.components.responses[r]&&_("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(L(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:_('(Patchable) "Status Code" is not a valid header',t):j(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=y.hash(o),a={};a.name=t,a.body=r,a.refs=[],n[i]=a}if(N(e.paths,"paths",t,n,e),e["x-ms-paths"]&&N(e["x-ms-paths"],"x-ms-paths",t,n,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in n){let i=n[o];if(i.refs.length>1){let n="";for(i.name||(i.name="requestBody",n=t++);r.indexOf(i.name+n)>=0;)n=n?++n:2;i.name=i.name+n,r.push(i.name),e.components.requestBodies[i.name]=f(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,u.jptr(e,i.refs[t],n)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function I(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function U(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new x("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new x("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new x("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new x("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new x("(Patchable) info should not have logo property"));e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return n(new x("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new x("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new x("(Patchable) paths object is mandatory"));e.paths={}}}function q(e,t,n){return i(n,new Promise(function(n,r){if(e||(e={}),t.original=e,t.text||(t.text=s.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=p(e),U(t.openapi,t,r),D(t.openapi,t,r),void d.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(new x("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=g,o["x-origin"].push(n)}if(delete(o=Object.assign(o,p(e))).swagger,h(o,{},function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),I(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,I(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=f(c(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach(e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))}),delete o["x-ms-parameterized-host"]}U(o,t,r),D(o,t,r),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,d.optionalResolve(t).then(function(){M(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function B(e,t,n){return i(n,new Promise(function(n,r){let o=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){try{o=s.parse(e,{schema:"core"}),t.sourceYaml=!0,t.text=e}catch(e){}}o?q(o,t).then(e=>n(e)).catch(e=>r(e)):r(new x("Could not parse string"))}))}e.exports={S2OError:x,targetVersion:b,convert:q,convertObj:q,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),a(e,{agent:t.agent}).then(function(e){if(200!==e.status)throw new x(`Received status code ${e.status}`);return e.text()}).then(function(e){B(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:B,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,B(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){B(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(10))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(99),o=n(68),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(100);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(21),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(206),o=n(48),i=n(6),a=n(39),s=n(102),u=n(49),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),h=n||l||f||p,d=h?r(e.length,String):[],v=d.length;for(var y in e)!t&&!c.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||d.push(y);return d}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&ep))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,y=!0,m=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(14);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=0;--o){var i=t.items[o];if(i.type===l.Type.COMMENT){var a=i.context,s=a.indent,u=a.lineStart;if(s>0&&i.range.start>=u+s)break;r=o}else{if(i.type!==l.Type.BLANK_LINE)break;r=o}}if(-1===r)return null;for(var c=t.items.splice(r,n-r),f=c[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return c}var m=function(e){function t(e){var n;(0,o.default)(this,t),n=(0,i.default)(this,(0,a.default)(t).call(this,e.type===l.Type.SEQ_ITEM?l.Type.SEQ:l.Type.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start=o+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),(0,u.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.parseNode,o=e.src,i=d.default.startOfLine(o,n),a=this.items[0];a.context.parent=this,this.valueRange=v.default.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,u=n,c=o[u=d.default.normalizeOffset(o,u)],p=d.default.endOfWhiteSpace(o,i)===u,m=!1;c;){for(;"\n"===c||"#"===c;){if(p&&"\n"===c&&!m){var g=new f.default;if(u=g.parse({src:o},u),this.valueRange.end=u,u>=o.length){c=null;break}this.items.push(g),u-=1}else if("#"===c){if(u=o.length){c=null;break}}if(i=u+1,u=d.default.endOfIndent(o,i),d.default.atBlank(o,u)){var w=d.default.endOfWhiteSpace(o,u),x=o[w];x&&"\n"!==x&&"#"!==x||(u=w)}c=o[u],p=!0}if(!c)break;if(u!==i+s&&(p||":"!==c)){i>n&&(u=i);break}if(a.type===l.Type.SEQ_ITEM!=("-"===c)){var _=!0;if("-"===c){var S=o[u+1];_=!S||"\n"===S||"\t"===S||" "===S}if(_){i>n&&(u=i);break}}var O=r({atLineStart:p,inCollection:!0,indent:s,lineStart:i,parent:this},u);if(!O)return u;if(this.items.push(O),this.valueRange.end=O.valueRange.end,c=o[u=d.default.normalizeOffset(o,O.range.end)],p=!1,m=O.includesTrailingLines,c){for(var k=u-1,E=o[k];" "===E||"\t"===E;)E=o[--k];"\n"===E&&(i=k+1,p=!0)}var A=y(O);A&&Array.prototype.push.apply(this.items,A)}return u}},{key:"setOrigRanges",value:function(e,n){return n=(0,s.default)((0,a.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i0}}]),t}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(7),f=n(9),p=r(n(56)),h=r(n(11)),d=r(n(12)),v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).node=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==l.Type.SEQ_ITEM||(this.error=new f.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=h.default.endOfWhiteSpace(r,t+1),u=r[s];"\n"===u||"#"===u;){if("#"===u){var c=h.default.endOfLine(r,s+1);this.props.push(new d.default(s,c)),s=c}else{if(o=!0,i=s+1,"\n"===r[h.default.endOfWhiteSpace(r,i)]){var v=new p.default;i=v.parse({src:r},i),(e.parent.items||e.parent.contents).push(v)}s=h.default.endOfIndent(r,i)}u=r[s]}h.default.nextNodeIsIndented(u,s-(i+a),this.type!==l.Type.SEQ_ITEM)?(this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s),this.node&&(s=this.node.range.end)):u&&i>t+1&&(s=i-1);var y=this.node?this.node.valueRange.end:s;return this.valueRange=new d.default(t,y),s}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return h.default.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(h.default);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseBlockValue",value:function(e){for(var n=this.context,r=n.indent,o=n.inFlow,i=n.src,a=e,s=e,u=i[a];"\n"===u&&!c.default.atDocumentBoundary(i,a+1);u=i[a]){var l=c.default.endOfBlockIndent(i,r,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,n){this.context=e;var r=e.inFlow,o=e.src,i=n,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=t.endOfLine(o,n,r)),this.valueRange=new l.default(n,i),i=c.default.endOfWhiteSpace(o,i),i=this.parseComment(i),this.hasComment&&!this.valueRange.isEmpty()||(i=this.parseBlockValue(i)),i}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,o=r[n-1];tl?r.slice(l,a+1):s)}else i+=s}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var i=e[o+1];if(":"===r&&("\n"===i||"\t"===i||" "===i||n&&","===i))break;if((" "===r||"\t"===r)&&"#"===i)break;o+=1,r=i}return o}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(19)),l=r(n(5)),f=r(n(27)),p=r(n(16)),h=r(n(13)),d=r(n(34)),v="<<";t.MERGE_KEY=v;var y=function(e){function t(e){var n;if((0,i.default)(this,t),e instanceof p.default){var r=e.value;r instanceof d.default||((r=new d.default).items.push(e.value),r.range=e.value.range),(n=(0,s.default)(this,(0,u.default)(t).call(this,e.key,r))).range=e.range}else n=(0,s.default)(this,(0,u.default)(t).call(this,new h.default(v),new d.default));return n.type="MERGE_PAIR",(0,s.default)(n)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"addToJSMap",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=this.value.items[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value.source;if(!(u instanceof f.default))throw new Error("Merge sources must be maps");var c=u.toJSON(null,e,Map),l=!0,p=!1,h=void 0;try{for(var d,v=c[Symbol.iterator]();!(l=(d=v.next()).done);l=!0){var y=(0,o.default)(d.value,2),m=y[0],g=y[1];t instanceof Map?t.has(m)||t.set(m,g):t instanceof Set?t.add(m):t.hasOwnProperty(m)||(t[m]=g)}}catch(e){p=!0,h=e}finally{try{l||null==v.return||v.return()}finally{if(p)throw h}}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}]),t}(p.default);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=r(n(20)),u=n(346),c=n(7),l=n(9),f=n(35),p=n(348),h=n(60),d=r(n(59)),v=r(n(26)),y=r(n(33)),m=r(n(16)),g=r(n(13)),b=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.tags;if((0,i.default)(this,e),this.merge=!!r,this.name=o,this.tags=p.schemas[o.replace(/\W/g,"")],!this.tags){var s=Object.keys(p.schemas).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(o,'"; use one of ').concat(s))}if(!n&&a&&(n=a,(0,u.warnOptionDeprecation)("tags","customTags")),Array.isArray(n)){var c=!0,l=!1,f=void 0;try{for(var h,d=n[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;this.tags=this.tags.concat(v)}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var y=0;y0&&(t.resolved=this.resolveScalar(a,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var o=this.resolveNode(t,n,r);if(n.hasOwnProperty("resolved"))return o;var i,a=(i=n.type)===c.Type.FLOW_MAP||i===c.Type.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===c.Type.FLOW_SEQ||t===c.Type.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(a){t.warnings.push(new l.YAMLWarning(n,"The tag ".concat(r," is unavailable, falling back to ").concat(a)));var s=this.resolveNode(t,n,a);return s.tag=r,s}return t.errors.push(new l.YAMLReferenceError(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof d.default)return d.default;if(e.tag){var t=this.tags.filter(function(t){return t.tag===e.tag});if(t.length>0)return t.find(function(t){return t.format===e.format})||t[0]}var n,r;if(e instanceof g.default){r=e.value;var i=this.tags.filter(function(e){return e.identify&&e.identify(r)||e.class&&r instanceof e.class});n=i.find(function(t){return t.format===e.format})||i.find(function(e){return!e.format})}else r=e,n=this.tags.find(function(e){return e.nodeClass&&r instanceof e.nodeClass});if(!n){var a=r&&r.constructor?r.constructor.name:(0,o.default)(r);throw new Error("Tag not resolved for ".concat(a," value"))}return n}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push("&".concat(a))),e.tag?i.push(o.stringifyTag(e.tag)):t.default||i.push(o.stringifyTag(t.tag)),i.join(" ")}},{key:"stringify",value:function(e,t,n,r){var o;if(!(e instanceof y.default)){var i={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:[]};e=this.createNode(e,!0,null,i);var a=t.doc.anchors,s=!0,u=!1,c=void 0;try{for(var l,p=i.aliasNodes[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){var h=l.value;h.source=h.source.node;var d=a.getName(h.source);d||(d=a.newName(),a.map[d]=h.source)}}catch(e){u=!0,c=e}finally{try{s||null==p.return||p.return()}finally{if(u)throw c}}}if(t.tags=this,e instanceof m.default)return e.toString(t,n,r);o||(o=this.getTagObject(e));var g=this.stringifyProps(e,o,t),b="function"==typeof o.stringify?o.stringify(e,t,n,r):e instanceof v.default?e.toString(t,n,r):(0,f.stringifyString)(e,t,n,r);return g?e instanceof v.default&&"{"!==b[0]&&"["!==b[0]?"".concat(g,"\n").concat(t.indent).concat(b):"".concat(g," ").concat(b):b}}]),e}();t.default=b,(0,s.default)(b,"defaultPrefix","tag:yaml.org,2002:"),(0,s.default)(b,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new s.YAMLSyntaxError(t,n)),null}var r=t.type===i.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,a=null,u=!1,c="{",p=0;p0){(h=new a.default(i.Type.PLAIN,[])).context={parent:p,src:p.context.src};var v=p.range.start+1;if(h.range={start:v,end:v},h.valueRange={start:v,end:v},"number"==typeof p.range.origStart){var y=p.range.origStart+1;h.range.origStart=h.range.origEnd=y,h.valueRange.origStart=h.valueRange.origEnd=y}}var m=new l.default(o,e.resolveNode(h));d(p,m),r.push(m),(0,f.checkKeyLength)(e.errors,t,c,o,u),o=void 0,u=null;break;default:void 0!==o&&r.push(new l.default(o)),o=e.resolveNode(p),u=p.range.start,p.error&&e.errors.push(p.error);e:for(var g=c+1;;++g){var b=t.items[g];switch(b&&b.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be followed by map values"));break e}}if(p.valueRangeContainsNewline){e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be on a single line"))}}}void 0!==o&&r.push(new l.default(o));return{comments:n,items:r}}(e,t),o=r.comments,h=r.items,v=new u.default;v.items=h,(0,f.resolveComments)(v,o);for(var y=0;yr.valueRange.start)return!1;if(o[s]!==i.Char.COMMENT)return!1;for(var u=n;u=0;--u){var c=t.items[u];if(c&&c.range){s=c.range.end+2*(n-u);break}}if(s>i+1024){var l=String(o).substr(0,8)+"..."+String(o).substr(-8);e.push(new r.YAMLSemanticError(t,'The "'.concat(l,'" key is too long')))}},t.resolveComments=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.afterKey,c=s.before,l=s.comment,f=e.items[c];f?(u&&f.value&&(f=f.value),void 0===l?!u&&f.commentBefore||(f.spaceBefore=!0):f.commentBefore?f.commentBefore+="\n"+l:f.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}};var r=n(9)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==o.Type.SEQ&&t.type!==o.Type.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new i.YAMLSyntaxError(t,n)),null}var r=t.type===o.Type.FLOW_SEQ?function(e,t){for(var n=[],r=[],u=!1,c=void 0,l=null,f="[",p=0;p=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},a={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return o(t,n.replace(/_/g,""))},stringify:i};t.intTime=a;var s={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return o(t,n.replace(/_/g,""))},stringify:i};t.floatTime=s;var u={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,a,s,u,c){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(t,n-1,r,i||0,a||0,s||0,u||0);if(c&&"Z"!==c){var f=o(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=u},function(e,t,n){"use strict";(function(t){const r=n(356),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(e,t){return t.toUpperCase()})};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:o,uniqueOnly:function(e,t,n){return n.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let n of e){t.find(function(e,t,r){return i(e,n)})||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find(function(t,n,r){return e.indexOf(t)e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(15),n(36).Buffer,n(10))},function(e,t,n){(t=e.exports=n(156)).Stream=t,t.Readable=t,t.Writable=n(160),t.Duplex=n(37),t.Transform=n(162),t.PassThrough=n(367)},function(e,t,n){"use strict";(function(t,r){var o=n(63);e.exports=b;var i,a=n(148);b.ReadableState=g;n(157).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(158),c=n(64).Buffer,l=t.Uint8Array||function(){};var f=n(41);f.inherits=n(28);var p=n(361),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,v=n(362),y=n(159);f.inherits(b,u);var m=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(37));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(161).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(37),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),C(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):O(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",y),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function v(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==N(i.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function y(t){h("onerror",t),b(),e.removeListener("error",y),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",y),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=v(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(157).EventEmitter},function(e,t,n){"use strict";var r=n(63);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(63);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=m;var c=n(41);c.inherits=n(28);var l={deprecate:n(366)},f=n(158),p=n(64).Buffer,h=o.Uint8Array||function(){};var d,v=n(159);function y(){}function m(e,t){s=s||n(37),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(w,e,n,a,o):w(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(e){if(s=s||n(37),!(d.call(g,this)||this instanceof s))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var n=_(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(g,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof m)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=y),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15),n(364).setImmediate,n(10))},function(e,t,n){"use strict";var r=n(64).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(37),o=n(41);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length-1?o=a:(n=r.isUndefined(e)?void 0:k(e),r.isUndefined(n)?o=a:((o=n).path=u(i.join(n.path,a.path)),o.query=function(e,t){var n={};function o(e){r.forOwn(e,function(e,t){n[t]=e})}return o(s.parse(e||"")),o(s.parse(t||"")),0===Object.keys(n).length?void 0:s.stringify(n)}(n.query,a.query))),o.fragment=void 0,(-1===h.indexOf(o.reference)&&0===o.path.indexOf("../")?"../":"")+c.serialize(o)}function y(e){return p.indexOf(w(e))>-1}function m(e){return r.isUndefined(e.error)&&"invalid"!==e.type}function g(e,t){var n=e;return t.forEach(function(e){if(!(e in n))throw Error("JSON Pointer points to missing location: "+L(t));n=n[e]}),n}function b(e){return Object.keys(e).filter(function(e){return"$ref"!==e})}function w(e){var t;switch(e.uriDetails.reference){case"absolute":case"uri":t="remote";break;case"same-document":t="local";break;default:t=e.uriDetails.reference}return t}function x(e,t){var n=f[e],o=Promise.resolve(),i=r.cloneDeep(t.loaderOptions||{});return r.isUndefined(n)?(r.isUndefined(i.processContent)&&(i.processContent=function(e,t){t(void 0,JSON.parse(e.text))}),o=(o=a.load(decodeURI(e),i)).then(function(t){return f[e]={value:t},t}).catch(function(t){throw f[e]={error:t},t})):o=o.then(function(){if(r.isError(n.error))throw n.error;return n.value}),o=o.then(function(e){return r.cloneDeep(e)})}function _(e,t){var n=!0;try{if(!r.isPlainObject(e))throw new Error("obj is not an Object");if(!r.isString(e.$ref))throw new Error("obj.$ref is not a String")}catch(e){if(t)throw e;n=!1}return n}function S(e){return-1!==e.indexOf("://")||i.isAbsolute(e)?e:i.resolve(t.cwd(),e)}function O(e,t){e.error=t.message,e.missing=!0}function k(e){return c.parse(e)}function E(e,t){var n,o;if(e=r.isUndefined(e)?{}:r.cloneDeep(e),!r.isObject(e))throw new TypeError("options must be an Object");if(!r.isUndefined(e.resolveCirculars)&&!r.isBoolean(e.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(r.isUndefined(e.filter)||r.isArray(e.filter)||r.isFunction(e.filter)||r.isString(e.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!r.isUndefined(e.includeInvalid)&&!r.isBoolean(e.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!r.isUndefined(e.location)&&!r.isString(e.location))throw new TypeError("options.location must be a String");if(!r.isUndefined(e.refPreProcessor)&&!r.isFunction(e.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!r.isUndefined(e.refPostProcessor)&&!r.isFunction(e.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!r.isUndefined(e.subDocPath)&&!r.isArray(e.subDocPath)&&!P(e.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(r.isUndefined(e.resolveCirculars)&&(e.resolveCirculars=!1),e.filter=function(e){var t,n;return r.isArray(e.filter)||r.isString(e.filter)?(n=r.isString(e.filter)?[e.filter]:e.filter,t=function(e){return n.indexOf(e.type)>-1||n.indexOf(w(e))>-1}):r.isFunction(e.filter)?t=e.filter:r.isUndefined(e.filter)&&(t=function(){return!0}),function(n,r){return("invalid"!==n.type||!0===e.includeInvalid)&&t(n,r)}}(e),r.isUndefined(e.location)&&(e.location=S("./root.json")),(n=e.location.split("#")).length>1&&(e.subDocPath="#"+n[1]),o=decodeURI(e.location)===e.location,e.location=v(e.location,void 0),o&&(e.location=decodeURI(e.location)),e.subDocPath=function(e){var t;return r.isArray(e.subDocPath)?t=e.subDocPath:r.isString(e.subDocPath)?t=R(e.subDocPath):r.isUndefined(e.subDocPath)&&(t=[]),t}(e),!r.isUndefined(t))try{g(t,e.subDocPath)}catch(e){throw e.message=e.message.replace("JSON Pointer","options.subDocPath"),e}return e}function A(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~1/g,"/").replace(/~0/g,"~")})}function T(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~/g,"~0").replace(/\//g,"~1")})}function j(e,t){var n={};if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");return function e(t,n,o,i){var a=!0;function s(n,r){o.push(r),e(t,n,o,i),o.pop()}r.isFunction(i)&&(a=i(t,n,o)),-1===t.indexOf(n)&&(t.push(n),!1!==a&&(r.isArray(n)?n.forEach(function(e,t){s(e,t.toString())}):r.isObject(n)&&r.forOwn(n,function(e,t){s(e,t)})),t.pop())}(function(e,t){var n,r=[];return t.length>0&&(n=e,t.slice(0,t.length-1).forEach(function(e){e in n&&(n=n[e],r.push(n))})),r}(e,(t=E(t,e)).subDocPath),g(e,t.subDocPath),r.cloneDeep(t.subDocPath),function(e,o,i){var a,s,u=!0;return _(o)&&(r.isUndefined(t.refPreProcessor)||(o=t.refPreProcessor(r.cloneDeep(o),i)),a=C(o),r.isUndefined(t.refPostProcessor)||(a=t.refPostProcessor(a,i)),t.filter(a,i)&&(s=L(i),n[s]=a),b(o).length>0&&(u=!1)),u}),n}function C(e){var t,n,o,i={def:e};try{if(_(e,!0)){if(t=e.$ref,o=d[t],r.isUndefined(o)&&(o=d[t]=k(t)),i.uri=t,i.uriDetails=o,r.isUndefined(o.error)){i.type=w(i);try{["#","/"].indexOf(t[0])>-1?P(t,!0):t.indexOf("#")>-1&&P(o.fragment,!0)}catch(e){i.error=e.message,i.type="invalid"}}else i.error=i.uriDetails.error,i.type="invalid";(n=b(e)).length>0&&(i.warning="Extra JSON Reference properties will be ignored: "+n.join(", "))}else i.type="invalid"}catch(e){i.error=e.message,i.type="invalid"}return i}function P(e,t){var n,o=!0;try{if(!r.isString(e))throw new Error("ptr is not a String");if(""!==e){if(n=e.charAt(0),-1===["#","/"].indexOf(n))throw new Error("ptr must start with a / or #/");if("#"===n&&"#"!==e&&"/"!==e.charAt(1))throw new Error("ptr must start with a / or #/");if(e.match(l))throw new Error("ptr has invalid token(s)")}}catch(e){if(!0===t)throw e;o=!1}return o}function R(e){try{P(e,!0)}catch(e){throw new Error("ptr must be a JSON Pointer: "+e.message)}var t=e.split("/");return t.shift(),A(t)}function L(e,t){if(!r.isArray(e))throw new Error("path must be an Array");return(!1!==t?"#":"")+(e.length>0?"/":"")+T(e).join("/")}function N(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");t=E(t,e),e=r.cloneDeep(e)}).then(function(){var n={deps:{},docs:{},refs:{}};return function e(t,n,o){var a,s,u=Promise.resolve(),c=L(n.subDocPath),l=S(n.location),f=i.dirname(n.location),p=l+c;return r.isUndefined(o.docs[l])&&(o.docs[l]=t),r.isUndefined(o.deps[p])&&(o.deps[p]={},a=j(t,n),r.forOwn(a,function(i,a){var l,h,d=S(n.location)+a,g=i.refdId=decodeURI(S(y(i)?v(f,i.uri):n.location)+"#"+(i.uri.indexOf("#")>-1?i.uri.split("#")[1]:""));(o.refs[d]=i,m(i))&&(i.fqURI=g,o.deps[p][a===c?"#":a.replace(c+"/","#/")]=g,0!==d.indexOf(g+"/")?((s=r.cloneDeep(n)).subDocPath=r.isUndefined(i.uriDetails.fragment)?[]:R(decodeURI(i.uriDetails.fragment)),y(i)?(delete s.filter,s.location=g.split("#")[0],u=u.then((l=o,h=s,function(){var e=S(h.location),t=l.docs[e];return r.isUndefined(t)?x(e,h).catch(function(t){return l.docs[e]=t,t}):Promise.resolve().then(function(){return t})}))):u=u.then(function(){return t}),u=u.then(function(t,n,o){return function(i){if(r.isError(i))O(o,i);else try{return e(i,n,t).catch(function(e){O(o,e)})}catch(e){O(o,e)}}}(o,s,i))):i.circular=!0)})),u}(e,t,n).then(function(){return n})}).then(function(e){var n={},a=[],s=[],u=new o.Graph,c=S(t.location),l=c+L(t.subDocPath),f=i.dirname(c);return Object.keys(e.deps).forEach(function(e){u.setNode(e)}),r.forOwn(e.deps,function(e,t){r.forOwn(e,function(e){u.setEdge(t,e)})}),(a=o.alg.findCycles(u)).forEach(function(e){e.forEach(function(e){-1===s.indexOf(e)&&s.push(e)})}),r.forOwn(e.deps,function(t,n){r.forOwn(t,function(t,r){var o,i=!1,u=n+r.slice(1),c=e.refs[n+r.slice(1)],l=y(c);s.indexOf(t)>-1&&a.forEach(function(e){i||(o=e.indexOf(t))>-1&&e.forEach(function(n){i||0===u.indexOf(n+"/")&&(l&&o!==e.length-1&&"#"===t[t.length-1]||(i=!0))})}),i&&(c.circular=!0)})}),r.forOwn(Object.keys(e.deps).reverse(),function(n){var o=e.deps[n],i=n.split("#"),a=e.docs[i[0]],s=R(i[1]);r.forOwn(o,function(n,o){var u=n.split("#"),c=e.docs[u[0]],l=s.concat(R(o)),f=e.refs[i[0]+L(l)];if(r.isUndefined(f.error)&&r.isUndefined(f.missing))if(!t.resolveCirculars&&f.circular)f.value=f.def;else{try{f.value=g(c,R(u[1]))}catch(e){return void O(f,e)}""===i[1]&&"#"===o?e.docs[i[0]]=f.value:function(e,t,n){g(e,t.slice(0,t.length-1))[t[t.length-1]]=n}(a,l,f.value)}})}),Object.keys(e.refs).forEach(function(o){var i,a,s=e.refs[o];"invalid"!==s.type&&("#"===s.fqURI[s.fqURI.length-1]&&"#"!==s.uri[s.uri.length-1]&&(s.fqURI=s.fqURI.substr(0,s.fqURI.length-1)),i=s.fqURI.split("/"),a=s.uri.split("/"),r.times(a.length-1,function(e){var t=a[a.length-e-1],n=i.length-e-1,r=i[n];"."!==t&&".."!==t||(t=r),i[n]=t}),s.fqURI=i.join("/"),0===s.fqURI.indexOf(c)?s.fqURI=s.fqURI.replace(c,""):0===s.fqURI.indexOf(f)&&(s.fqURI=s.fqURI.replace(f,"")),"/"===s.fqURI[0]&&(s.fqURI="."+s.fqURI)),0===o.indexOf(l)&&function r(o,i,a){var s,u=i.split("#"),c=e.refs[i];n[u[0]===t.location?"#"+u[1]:L(t.subDocPath.concat(a))]=c,!c.circular&&m(c)?(s=e.deps[c.refdId],0!==c.refdId.indexOf(o)&&Object.keys(s).forEach(function(e){r(c.refdId,c.refdId+e.substr(1),a.concat(R(e)))})):!c.circular&&c.error&&(c.error=c.error.replace("options.subDocPath","JSON Pointer"),c.error.indexOf("#")>-1&&(c.error=c.error.replace(c.uri.substr(c.uri.indexOf("#")),c.uri)),0!==c.error.indexOf("ENOENT:")&&0!==c.error.indexOf("Not Found")||(c.error="JSON Pointer points to missing location: "+c.uri))}(l,o,R(o.substr(l.length)))}),r.forOwn(e.refs,function(e){delete e.refdId,e.missing&&(e.error=e.error.split(": ")[0]+": "+e.def.$ref)}),{refs:n,resolved:e.docs[c]}})}"undefined"==typeof Promise&&n(132),e.exports.clearCache=function(){f={}},e.exports.decodePath=function(e){return A(e)},e.exports.encodePath=function(e){return T(e)},e.exports.findRefs=function(e,t){return j(e,t)},e.exports.findRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(f[t.location]),o=r.cloneDeep(t),i=k(t.location);return r.isUndefined(n.refs)&&(delete o.filter,delete o.subDocPath,o.includeInvalid=!0,f[t.location].refs=j(e,o)),r.isUndefined(t.filter)||(o.filter=t.filter),r.isUndefined(i.fragment)?r.isUndefined(i.subDocPath)||(o.subDocPath=t.subDocPath):o.subDocPath=R(decodeURI(i.fragment)),{refs:j(e,o),value:e}})}(e,t)},e.exports.getRefDetails=function(e){return C(e)},e.exports.isPtr=function(e,t){return P(e,t)},e.exports.isRef=function(e,t){return function(e,t){return _(e,t)&&"invalid"!==C(e).type}(e,t)},e.exports.pathFromPtr=function(e){return R(e)},e.exports.pathToPtr=function(e,t){return L(e,t)},e.exports.resolveRefs=function(e,t){return N(e,t)},e.exports.resolveRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(t),o=k(t.location);return r.isUndefined(o.fragment)||(n.subDocPath=R(decodeURI(o.fragment))),N(e,n).then(function(t){return{refs:t.refs,resolved:t.resolved,value:e}})})}(e,t)}}).call(this,n(15))},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=n(171)(r,o);r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(65,function(){var t=n(65);"string"==typeof t&&(t=[[e.i,t,""]]),i(t)}),e.hot.dispose(function(){i()})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o @@ -13,9 +13,9 @@ var r=n(298),o=n(299),i=n(109);function s(){return u.TYPED_ARRAY_SUPPORT?2147483 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,h=2,d=4,m=1,v=2,y=1,g=2,b=4,w=8,x=16,_=32,S=64,k=128,O=256,A=512,E=30,j="...",C=800,T=16,R=1,P=2,I=1/0,U=9007199254740991,N=17976931348623157e292,L=NaN,q=4294967295,D=q-1,z=q>>>1,M=[["ary",k],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",A],["partial",_],["partialRight",S],["rearg",O]],F="[object Arguments]",B="[object Array]",$="[object AsyncFunction]",H="[object Boolean]",W="[object Date]",V="[object DOMException]",K="[object Error]",Y="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",G="[object Number]",X="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",se="[object WeakMap]",ae="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",me="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,ke=RegExp(_e.source),Oe=RegExp(Se.source),Ae=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,Ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Pe.source),Ue=/^\s+|\s+$/g,Ne=/^\s+/,Le=/\s+$/,qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Ge=/['\n\r\u2028\u2029\\]/g,Xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",nt="["+Xe+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+Qe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",at="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+st+")",ht="(?:"+ft+"|"+st+")",dt="(?:"+nt+"|"+at+")"+"?",mt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),vt="(?:"+[ot,ct,lt].join("|")+")"+mt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(at+"(?="+at+")|"+yt+mt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,vt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Xe+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ot=-1,At={};At[le]=At[fe]=At[pe]=At[he]=At[de]=At[me]=At[ve]=At[ye]=At[ge]=!0,At[F]=At[B]=At[ue]=At[H]=At[ce]=At[W]=At[K]=At[Y]=At[Z]=At[G]=At[Q]=At[te]=At[ne]=At[re]=At[se]=!1;var Et={};Et[F]=Et[B]=Et[ue]=Et[ce]=Et[H]=Et[W]=Et[le]=Et[fe]=Et[pe]=Et[he]=Et[de]=Et[Z]=Et[G]=Et[Q]=Et[te]=Et[ne]=Et[re]=Et[oe]=Et[me]=Et[ve]=Et[ye]=Et[ge]=!0,Et[K]=Et[Y]=Et[se]=!1;var jt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ct=parseFloat,Tt=parseInt,Rt="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,It=Rt||Pt||Function("return this")(),Ut=t&&!t.nodeType&&t,Nt=Ut&&"object"==typeof r&&r&&!r.nodeType&&r,Lt=Nt&&Nt.exports===Ut,qt=Lt&&Rt.process,Dt=function(){try{var e=Nt&&Nt.require&&Nt.require("util").types;return e||qt&&qt.binding&&qt.binding("util")}catch(e){}}(),zt=Dt&&Dt.isArrayBuffer,Mt=Dt&&Dt.isDate,Ft=Dt&&Dt.isMap,Bt=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Ht=Dt&&Dt.isTypedArray;function Wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Vt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Xt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Sn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function kn(e){return"\\"+jt[e]}function On(e){return _t.test(e)}function An(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function En(e,t){return function(n){return e(t(n))}}function jn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Un=function e(t){var n,r=(t=null==t?It:Un.defaults(It.Object(),t,Un.pick(It,kt))).Array,o=t.Date,Xe=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,st=Qe.prototype,at=tt.prototype,ut=t["__core-js_shared__"],ct=st.toString,lt=at.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=at.toString,dt=ct.call(tt),mt=It._,vt=nt("^"+ct.call(lt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Lt?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,jt=yt?yt.allocUnsafe:i,Rt=En(tt.getPrototypeOf,tt),Pt=tt.create,Ut=at.propertyIsEnumerable,Nt=it.splice,qt=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,hn=function(){try{var e=zi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=t.clearTimeout!==It.clearTimeout&&t.clearTimeout,Ln=o&&o.now!==It.Date.now&&o.now,qn=t.setTimeout!==It.setTimeout&&t.setTimeout,Dn=et.ceil,zn=et.floor,Mn=tt.getOwnPropertySymbols,Fn=yt?yt.isBuffer:i,Bn=t.isFinite,$n=it.join,Hn=En(tt.keys,tt),Wn=et.max,Vn=et.min,Kn=o.now,Yn=t.parseInt,Jn=et.random,Zn=it.reverse,Gn=zi(t,"DataView"),Xn=zi(t,"Map"),Qn=zi(t,"Promise"),er=zi(t,"Set"),tr=zi(t,"WeakMap"),nr=zi(tt,"create"),rr=tr&&new tr,or={},ir=fs(Gn),sr=fs(Xn),ar=fs(Qn),ur=fs(er),cr=fs(tr),lr=wt?wt.prototype:i,fr=lr?lr.valueOf:i,pr=lr?lr.toString:i;function hr(e){if(ja(e)&&!ya(e)&&!(e instanceof yr)){if(e instanceof vr)return e;if(lt.call(e,"__wrapped__"))return ps(e)}return new vr(e)}var dr=function(){function e(){}return function(t){if(!Ea(t))return{};if(Pt)return Pt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function mr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Nr(e,t,n,r,o,s){var a,u=t&p,c=t&h,l=t&d;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!Ea(e))return e;var f=ya(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ri(e,a)}else{var m=Bi(e),v=m==Y||m==J;if(xa(e))return Go(e,u);if(m==Q||m==F||v&&!o){if(a=c||v?{}:Hi(e),!u)return c?function(e,t){return oi(e,Fi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(a,e)):function(e,t){return oi(e,Mi(e),t)}(e,Rr(a,e))}else{if(!Et[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ue:return Xo(e);case H:case W:return new r(+e);case ce:return function(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case pe:case he:case de:case me:case ve:case ye:case ge:return Qo(e,n);case Z:return new r;case G:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,fr?tt(fr.call(o)):{}}var o}(e,m,u)}}s||(s=new _r);var y=s.get(e);if(y)return y;if(s.set(e,a),Ia(e))return e.forEach(function(r){a.add(Nr(r,t,n,r,e,s))}),a;if(Ca(e))return e.forEach(function(r,o){a.set(o,Nr(r,t,n,o,e,s))}),a;var g=f?i:(l?c?Pi:Ri:c?iu:ou)(e);return Kt(g||e,function(r,o){g&&(r=e[o=r]),jr(a,o,Nr(r,t,n,o,e,s))}),a}function Lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function qr(e,t,n){if("function"!=typeof e)throw new ot(u);return os(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Gt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Qt(t,yn(n))),r?(i=Xt,a=!1):t.length>=s&&(i=bn,a=!1,t=new xr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=Cr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Xn||br),string:new gr}},wr.prototype.delete=function(e){var t=qi(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return qi(this,e).get(e)},wr.prototype.has=function(e){return qi(this,e).has(e)},wr.prototype.set=function(e,t){var n=qi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,c),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new br,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Xn||r.length0&&n(a)?t>1?Hr(a,t-1,n,r,o):en(o,a):r||(o[o.length]=a)}return o}var Wr=ui(),Vr=ui(!0);function Kr(e,t){return e&&Wr(e,t,ou)}function Yr(e,t){return e&&Vr(e,t,ou)}function Jr(e,t){return Zt(t,function(t){return ka(e[t])})}function Zr(e,t){for(var n=0,r=(t=Ko(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&<.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Xt:Gt,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Qt(p,yn(t))),l=Vn(p.length,l),c[u]=!n&&(t||s>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var h=-1,d=c[0];e:for(;++h=a)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Nt.call(a,u,1),Nt.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Vi(o)?Nt.call(e,o,1):zo(e,o)}}return e}function _o(e,t){return e+zn(Jn()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>U)return n;do{t%2&&(n+=e),(t=zn(t/2))&&(e+=e)}while(t);return n}function ko(e,t){return is(es(e,t,Tu),e+"")}function Oo(e){return kr(hu(e))}function Ao(e,t){var n=hu(e);return us(n,Ur(t,0,n.length))}function Eo(e,t,n,r){if(!Ea(e))return e;for(var o=-1,s=(t=Ko(t,e)).length,a=s-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o>>1,s=e[i];null!==s&&!Na(s)&&(n?s<=t:s=s){var l=t?null:Si(e);if(l)return Cn(l);a=!1,o=bn,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Ro(e,t,n)}var Zo=Nn||function(e){return It.clearTimeout(e)};function Go(e,t){if(t)return e.slice();var n=e.length,r=jt?jt(n):new e.constructor(n);return e.copy(r),r}function Xo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Qo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=Na(e),a=t!==i,u=null===t,c=t==t,l=Na(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!l&&e1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&Ki(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=tt(t);++r-1?o[s?t[a]:a]:i}}function hi(e){return Ti(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ot(u);if(o&&!a&&"wrapper"==Ui(s))var a=new vr([],!0)}for(r=a?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var f=-1,p=!0,h=n&v?new xr:i;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(qe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Kt(M,function(n){var r="_."+n[0];t&n[1]&&!Gt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(ze):[]}(r),n)))}function as(e){var t=0,n=0;return function(){var r=Kn(),o=T-(r-n);if(n=r,o>0){if(++t>=C)return arguments[0]}else t=0;return e.apply(i,arguments)}}function us(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ps(e,n)});function zs(e){var t=hr(e);return t.__chain__=!0,t}function Ms(e,t){return t(e)}var Fs=Ti(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ms,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Bs=ii(function(e,t,n){lt.call(e,n)?++e[n]:Pr(e,n,1)});var $s=pi(vs),Hs=pi(ys);function Ws(e,t){return(ya(e)?Kt:zr)(e,Li(t,3))}function Vs(e,t){return(ya(e)?Yt:Mr)(e,Li(t,3))}var Ks=ii(function(e,t,n){lt.call(e,n)?e[n].push(t):Pr(e,n,[t])});var Ys=ko(function(e,t,n){var o=-1,i="function"==typeof t,s=ba(e)?r(e.length):[];return zr(e,function(e){s[++o]=i?Wt(t,e,n):ro(e,t,n)}),s}),Js=ii(function(e,t,n){Pr(e,n,t)});function Zs(e,t){return(ya(e)?Qt:po)(e,Li(t,3))}var Gs=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xs=ko(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ki(e,t[0],t[1])?t=[]:n>2&&Ki(t[0],t[1],t[2])&&(t=[t[0]]),go(e,Hr(t,1),[])}),Qs=Ln||function(){return It.Date.now()};function ea(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Oi(e,k,i,i,i,i,t)}function ta(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var na=ko(function(e,t,n){var r=y;if(n.length){var o=jn(n,Ni(na));r|=_}return Oi(e,r,t,n,o)}),ra=ko(function(e,t,n){var r=y|g;if(n.length){var o=jn(n,Ni(ra));r|=_}return Oi(t,r,e,n,o)});function oa(e,t,n){var r,o,s,a,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new ot(u);function m(t){var n=r,s=o;return r=o=i,f=t,a=e.apply(s,n)}function v(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=s}function y(){var e=Qs();if(v(e))return g(e);c=os(y,function(e){var n=t-(e-l);return h?Vn(n,s-(e-f)):n}(e))}function g(e){return c=i,d&&r?m(e):(r=o=i,a)}function b(){var e=Qs(),n=v(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return f=e,c=os(y,t),p?m(e):a}(l);if(h)return c=os(y,t),m(l)}return c===i&&(c=os(y,t)),a}return t=$a(t)||0,Ea(n)&&(p=!!n.leading,s=(h="maxWait"in n)?Wn($a(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==i&&Zo(c),f=0,r=l=o=c=i},b.flush=function(){return c===i?a:g(Qs())},b}var ia=ko(function(e,t){return qr(e,1,t)}),sa=ko(function(e,t,n){return qr(e,$a(t)||0,n)});function aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(aa.Cache||wr),n}function ua(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}aa.Cache=wr;var ca=Yo(function(e,t){var n=(t=1==t.length&&ya(t[0])?Qt(t[0],yn(Li())):Qt(Hr(t,1),yn(Li()))).length;return ko(function(r){for(var o=-1,i=Vn(r.length,n);++o=t}),va=oo(function(){return arguments}())?oo:function(e){return ja(e)&<.call(e,"callee")&&!Ut.call(e,"callee")},ya=r.isArray,ga=zt?yn(zt):function(e){return ja(e)&&Xr(e)==ue};function ba(e){return null!=e&&Aa(e.length)&&!ka(e)}function wa(e){return ja(e)&&ba(e)}var xa=Fn||$u,_a=Mt?yn(Mt):function(e){return ja(e)&&Xr(e)==W};function Sa(e){if(!ja(e))return!1;var t=Xr(e);return t==K||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!Ra(e)}function ka(e){if(!Ea(e))return!1;var t=Xr(e);return t==Y||t==J||t==$||t==ee}function Oa(e){return"number"==typeof e&&e==Fa(e)}function Aa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=U}function Ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ja(e){return null!=e&&"object"==typeof e}var Ca=Ft?yn(Ft):function(e){return ja(e)&&Bi(e)==Z};function Ta(e){return"number"==typeof e||ja(e)&&Xr(e)==G}function Ra(e){if(!ja(e)||Xr(e)!=Q)return!1;var t=Rt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Pa=Bt?yn(Bt):function(e){return ja(e)&&Xr(e)==te};var Ia=$t?yn($t):function(e){return ja(e)&&Bi(e)==ne};function Ua(e){return"string"==typeof e||!ya(e)&&ja(e)&&Xr(e)==re}function Na(e){return"symbol"==typeof e||ja(e)&&Xr(e)==oe}var La=Ht?yn(Ht):function(e){return ja(e)&&Aa(e.length)&&!!At[Xr(e)]};var qa=wi(fo),Da=wi(function(e,t){return e<=t});function za(e){if(!e)return[];if(ba(e))return Ua(e)?Pn(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=Bi(e);return(t==Z?An:t==ne?Cn:hu)(e)}function Ma(e){return e?(e=$a(e))===I||e===-I?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Fa(e){var t=Ma(e),n=t%1;return t==t?n?t-n:t:0}function Ba(e){return e?Ur(Fa(e),0,q):0}function $a(e){if("number"==typeof e)return e;if(Na(e))return L;if(Ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ue,"");var n=We.test(e);return n||Ke.test(e)?Tt(e.slice(2),n?2:8):He.test(e)?L:+e}function Ha(e){return oi(e,iu(e))}function Wa(e){return null==e?"":qo(e)}var Va=si(function(e,t){if(Gi(t)||ba(t))oi(t,ou(t),e);else for(var n in t)lt.call(t,n)&&jr(e,n,t[n])}),Ka=si(function(e,t){oi(t,iu(t),e)}),Ya=si(function(e,t,n,r){oi(t,iu(t),e,r)}),Ja=si(function(e,t,n,r){oi(t,ou(t),e,r)}),Za=Ti(Ir);var Ga=ko(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Ki(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Pi(e),n),r&&(n=Nr(n,p|h|d,ji));for(var o=t.length;o--;)zo(n,t[o]);return n});var cu=Ti(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Qt(Pi(e),function(e){return[e]});return t=Li(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=ki(ou),pu=ki(iu);function hu(e){return null==e?[]:gn(e,ou(e))}var du=li(function(e,t,n){return t=t.toLowerCase(),e+(n?mu(t):t)});function mu(e){return Su(Wa(e).toLowerCase())}function vu(e){return(e=Wa(e))&&e.replace(Je,_n).replace(bt,"")}var yu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ci("toLowerCase");var wu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=li(function(e,t,n){return e+(n?" ":"")+Su(t)});var _u=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Su=ci("toUpperCase");function ku(e,t,n){return e=Wa(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Me)||[]}(e):e.match(t)||[]}var Ou=ko(function(e,t){try{return Wt(e,i,t)}catch(e){return Sa(e)?e:new Xe(e)}}),Au=Ti(function(e,t){return Kt(t,function(t){t=ls(t),Pr(e,t,na(e[t],e))}),e});function Eu(e){return function(){return e}}var ju=hi(),Cu=hi(!0);function Tu(e){return e}function Ru(e){return uo("function"==typeof e?e:Nr(e,p))}var Pu=ko(function(e,t){return function(n){return ro(n,e,t)}}),Iu=ko(function(e,t){return function(n){return ro(e,n,t)}});function Uu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||Ea(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(Ea(n)&&"chain"in n&&!n.chain),s=ka(e);return Kt(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Nu(){}var Lu=yi(Qt),qu=yi(Jt),Du=yi(rn);function zu(e){return Yi(e)?pn(ls(e)):function(e){return function(t){return Zr(t,e)}}(e)}var Mu=bi(),Fu=bi(!0);function Bu(){return[]}function $u(){return!1}var Hu=vi(function(e,t){return e+t},0),Wu=_i("ceil"),Vu=vi(function(e,t){return e/t},1),Ku=_i("floor");var Yu,Ju=vi(function(e,t){return e*t},1),Zu=_i("round"),Gu=vi(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Fa(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=ea,hr.assign=Va,hr.assignIn=Ka,hr.assignInWith=Ya,hr.assignWith=Ja,hr.at=Za,hr.before=ta,hr.bind=na,hr.bindAll=Au,hr.bindKey=ra,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ya(e)?e:[e]},hr.chain=zs,hr.chunk=function(e,t,n){t=(n?Ki(e,t,n):t===i)?1:Wn(Fa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,u=r(Dn(o/t));so?0:o+n),(r=r===i||r>o?o:Fa(r))<0&&(r+=o),r=n>r?0:Ba(r);n>>0)?(e=Wa(e))&&("string"==typeof t||null!=t&&!Pa(t))&&!(t=qo(t))&&On(e)?Jo(Pn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Wn(Fa(t),0),ko(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Wt(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Ro(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Ro(e,0,(t=n||t===i?1:Fa(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ro(e,(t=r-(t=n||t===i?1:Fa(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?Fo(e,Li(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?Fo(e,Li(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return Ea(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),oa(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ms,hr.toArray=za,hr.toPairs=fu,hr.toPairsIn=pu,hr.toPath=function(e){return ya(e)?Qt(e,ls):Na(e)?[e]:ri(cs(Wa(e)))},hr.toPlainObject=Ha,hr.transform=function(e,t,n){var r=ya(e),o=r||xa(e)||La(e);if(t=Li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ea(e)&&ka(i)?dr(Rt(e)):{}}return(o?Kt:Kr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return ea(e,1)},hr.union=js,hr.unionBy=Cs,hr.unionWith=Ts,hr.uniq=function(e){return e&&e.length?Do(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Do(e,Li(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},hr.unset=function(e,t){return null==e||zo(e,t)},hr.unzip=Rs,hr.unzipWith=Ps,hr.update=function(e,t,n){return null==e?e:Mo(e,t,Vo(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Mo(e,t,Vo(n),r)},hr.values=hu,hr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},hr.without=Is,hr.words=ku,hr.wrap=function(e,t){return la(Vo(t),e)},hr.xor=Us,hr.xorBy=Ns,hr.xorWith=Ls,hr.zip=qs,hr.zipObject=function(e,t){return Ho(e||[],t||[],jr)},hr.zipObjectDeep=function(e,t){return Ho(e||[],t||[],Eo)},hr.zipWith=Ds,hr.entries=fu,hr.entriesIn=pu,hr.extend=Ka,hr.extendWith=Ya,Uu(hr,hr),hr.add=Hu,hr.attempt=Ou,hr.camelCase=du,hr.capitalize=mu,hr.ceil=Wu,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=$a(n))==n?n:0),t!==i&&(t=(t=$a(t))==t?t:0),Ur($a(e),t,n)},hr.clone=function(e){return Nr(e,d)},hr.cloneDeep=function(e){return Nr(e,p|d)},hr.cloneDeepWith=function(e,t){return Nr(e,p|d,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Nr(e,d,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Lr(e,t,ou(t))},hr.deburr=vu,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Vu,hr.endsWith=function(e,t,n){e=Wa(e),t=qo(t);var r=e.length,o=n=n===i?r:Ur(Fa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=ha,hr.escape=function(e){return(e=Wa(e))&&Oe.test(e)?e.replace(Se,Sn):e},hr.escapeRegExp=function(e){return(e=Wa(e))&&Ie.test(e)?e.replace(Pe,"\\$&"):e},hr.every=function(e,t,n){var r=ya(e)?Jt:Fr;return n&&Ki(e,t,n)&&(t=i),r(e,Li(t,3))},hr.find=$s,hr.findIndex=vs,hr.findKey=function(e,t){return sn(e,Li(t,3),Kr)},hr.findLast=Hs,hr.findLastIndex=ys,hr.findLastKey=function(e,t){return sn(e,Li(t,3),Yr)},hr.floor=Ku,hr.forEach=Ws,hr.forEachRight=Vs,hr.forIn=function(e,t){return null==e?e:Wr(e,Li(t,3),iu)},hr.forInRight=function(e,t){return null==e?e:Vr(e,Li(t,3),iu)},hr.forOwn=function(e,t){return e&&Kr(e,Li(t,3))},hr.forOwnRight=function(e,t){return e&&Yr(e,Li(t,3))},hr.get=Qa,hr.gt=da,hr.gte=ma,hr.has=function(e,t){return null!=e&&$i(e,t,eo)},hr.hasIn=eu,hr.head=bs,hr.identity=Tu,hr.includes=function(e,t,n,r){e=ba(e)?e:hu(e),n=n&&!r?Fa(n):0;var o=e.length;return n<0&&(n=Wn(o+n,0)),Ua(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Fa(n);return o<0&&(o=Wn(r+o,0)),un(e,t,o)},hr.inRange=function(e,t,n){return t=Ma(t),n===i?(n=t,t=0):n=Ma(n),function(e,t,n){return e>=Vn(t,n)&&e=-U&&e<=U},hr.isSet=Ia,hr.isString=Ua,hr.isSymbol=Na,hr.isTypedArray=La,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return ja(e)&&Bi(e)==se},hr.isWeakSet=function(e){return ja(e)&&Xr(e)==ae},hr.join=function(e,t){return null==e?"":$n.call(e,t)},hr.kebabCase=yu,hr.last=Ss,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Fa(n))<0?Wn(r+o,0):Vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):an(e,ln,o,!0)},hr.lowerCase=gu,hr.lowerFirst=bu,hr.lt=qa,hr.lte=Da,hr.max=function(e){return e&&e.length?Br(e,Tu,Qr):i},hr.maxBy=function(e,t){return e&&e.length?Br(e,Li(t,2),Qr):i},hr.mean=function(e){return fn(e,Tu)},hr.meanBy=function(e,t){return fn(e,Li(t,2))},hr.min=function(e){return e&&e.length?Br(e,Tu,fo):i},hr.minBy=function(e,t){return e&&e.length?Br(e,Li(t,2),fo):i},hr.stubArray=Bu,hr.stubFalse=$u,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Ju,hr.nth=function(e,t){return e&&e.length?yo(e,Fa(t)):i},hr.noConflict=function(){return It._===this&&(It._=mt),this},hr.noop=Nu,hr.now=Qs,hr.pad=function(e,t,n){e=Wa(e);var r=(t=Fa(t))?Rn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(zn(o),n)+e+gi(Dn(o),n)},hr.padEnd=function(e,t,n){e=Wa(e);var r=(t=Fa(t))?Rn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Vn(e+o*(t-e+Ct("1e-"+((o+"").length-1))),t)}return _o(e,t)},hr.reduce=function(e,t,n){var r=ya(e)?tn:dn,o=arguments.length<3;return r(e,Li(t,4),n,o,zr)},hr.reduceRight=function(e,t,n){var r=ya(e)?nn:dn,o=arguments.length<3;return r(e,Li(t,4),n,o,Mr)},hr.repeat=function(e,t,n){return t=(n?Ki(e,t,n):t===i)?1:Fa(t),So(Wa(e),t)},hr.replace=function(){var e=arguments,t=Wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Ko(t,e)).length;for(o||(o=1,e=i);++rU)return[];var n=q,r=Vn(e,q);t=Li(t),e-=q;for(var o=vn(r,t);++n=s)return e;var u=n-Rn(r);if(u<1)return r;var c=a?Jo(a,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(a&&(u+=c.length-u),Pa(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=nt(o.source,Wa($e.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(qo(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},hr.unescape=function(e){return(e=Wa(e))&&ke.test(e)?e.replace(_e,In):e},hr.uniqueId=function(e){var t=++ft;return Wa(e)+t},hr.upperCase=_u,hr.upperFirst=Su,hr.each=Ws,hr.eachRight=Vs,hr.first=bs,Uu(hr,(Yu={},Kr(hr,function(e,t){lt.call(hr.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),hr.VERSION="4.17.11",Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Kt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Wn(Fa(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Vn(n,r.__takeCount__):r.__views__.push({size:Vn(n,q),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Kt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==R||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Kt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Kt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Tu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=ko(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(ua(Li(e)))},yr.prototype.slice=function(e,t){e=Fa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Fa(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(q)},Kr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof yr,c=a[0],l=u||ya(t),f=function(e){var t=o.apply(hr,en([e],a));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=s&&!p,m=u&&!h;if(!s&&l){t=m?t:new yr(this);var v=e.apply(t,a);return v.__actions__.push({func:Ms,args:[f],thisArg:i}),new vr(v,p)}return d&&m?e.apply(this,a):(v=this.thru(f),d?r?v.value()[0]:v.value():v)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ya(o)?o:[],e)}return this[n](function(n){return t.apply(ya(n)?n:[],e)})}}),Kr(yr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[di(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ya(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof mr;){var r=ps(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ms,args:[Es],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Es)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Bo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Dt&&(hr.prototype[Dt]=function(){return this}),hr}();It._=Un,(o=function(){return Un}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(3),n(20)(e))},function(e,t,n){var r=n(134);e.exports={Graph:r.Graph,json:n(260),alg:n(261),version:r.version}},function(e,t,n){e.exports={Graph:n(42),version:n(259)}},function(e,t,n){var r=n(136),o=4;e.exports=function(e){return r(e,o)}},function(e,t,n){var r=n(43),o=n(47),i=n(68),s=n(165),a=n(171),u=n(174),c=n(175),l=n(176),f=n(177),p=n(78),h=n(178),d=n(15),m=n(182),v=n(183),y=n(188),g=n(0),b=n(21),w=n(189),x=n(10),_=n(191),S=n(11),k=1,O=2,A=4,E="[object Arguments]",j="[object Function]",C="[object GeneratorFunction]",T="[object Object]",R={};R[E]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[T]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[j]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,P,I,U,N){var L,q=n&k,D=n&O,z=n&A;if(P&&(L=U?P(t,I,U,N):P(t)),void 0!==L)return L;if(!x(t))return t;var M=g(t);if(M){if(L=m(t),!q)return c(t,L)}else{var F=d(t),B=F==j||F==C;if(b(t))return u(t,q);if(F==T||F==E||B&&!U){if(L=D||B?{}:y(t),!q)return D?f(t,a(L,t)):l(t,s(L,t))}else{if(!R[F])return U?t:{};L=v(t,F,q)}}N||(N=new r);var $=N.get(t);if($)return $;if(N.set(t,L),_(t))return t.forEach(function(r){L.add(e(r,n,P,r,t,N))}),L;if(w(t))return t.forEach(function(r,o){L.set(o,e(r,n,P,o,t,N))}),L;var H=z?D?h:p:D?keysIn:S,W=M?void 0:H(t);return o(W||t,function(r,o){W&&(r=t[o=r]),i(L,o,e(r,n,P,o,t,N))}),L}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(26),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(26);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(26);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(25);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(25),o=n(45),i=n(46),s=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length0&&i(l)?n>1?e(l,n-1,i,s,a):r(a,l):s||(a[a.length]=l)}return a}},function(e,t,n){var r=n(14),o=n(31),i=n(0),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(s&&e&&e[s])}},function(e,t,n){var r=n(35),o=n(242),i=n(244);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(243),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(87),o=n(248),i=n(253),s=n(88),a=n(254),u=n(56),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],m=d;if(n)h=!1,f=i;else if(p>=c){var v=t?null:a(e);if(v)return u(v);h=!1,f=s,m=new r}else m=t?[]:d;e:for(;++l-1}},function(e,t,n){var r=n(250),o=n(251),i=n(252);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(5);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],s=i[n],a=r.distance+o.distance;a0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return s}},function(e,t,n){"use strict";var r={file:n(271),http:n(100),https:n(100)},o="object"==typeof window||"function"==typeof importScripts?r.http:r.file;"undefined"==typeof Promise&&n(102),e.exports.load=function(e,t){var n=Promise.resolve();return void 0===t&&(t={}),n=(n=n.then(function(){if(void 0===e)throw new TypeError("location is required");if("string"!=typeof e)throw new TypeError("location must be a string");if(void 0!==t){if("object"!=typeof t)throw new TypeError("options must be an object");if(void 0!==t.processContent&&"function"!=typeof t.processContent)throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(n,i){(function(e){var t=function(e){return void 0!==e&&(e=-1===e.indexOf("://")?"":e.split("://")[0]),e}(e),n=r[t];if(void 0===n){if(""!==t)throw new Error("Unsupported scheme: "+t);n=o}return n})(e).load(e,t||{},function(e,t){e?i(e):n(t)})})}).then(function(n){return t.processContent?new Promise(function(r,o){"object"!=typeof n&&(n={text:n}),n.location=e,t.processContent(n,function(e,t){e?o(e):r(t)})}):"object"==typeof n?n.text:n})}},function(e,t,n){"use strict";var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw r;e(r)}},function(e,t,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(273),i=n(274),s=n(101),a=n(275),u=n(277);function c(){}var l=t=e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};t.Request=y,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function p(e){if(!s(e))return e;var t=[];for(var n in e)h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(s(n))for(var r in n)h(e,t+"["+r+"]",n[r]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));else null===n&&e.push(encodeURIComponent(t))}function d(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&m(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){"use strict";var r=n(276);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)this[o]=n[o];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=n},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=m.substr(0,v),p=m.substr(v+1)):(f=m,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(s,h)?o(s[h])?s[h].push(d):s[h]=[s[h],d]:s[h]=d}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(s(e),function(s){var a=encodeURIComponent(r(s))+n;return o(e[s])?i(e[s],function(e){return a+encodeURIComponent(r(e))}).join(t):a+encodeURIComponent(r(e[s]))}).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){ + */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,h=2,d=4,v=1,y=2,m=1,g=2,b=4,w=8,x=16,_=32,S=64,O=128,k=256,E=512,A=30,T="...",j=800,C=16,P=1,R=2,L=1/0,N=9007199254740991,M=17976931348623157e292,I=NaN,U=4294967295,D=U-1,q=U>>>1,B=[["ary",O],["bind",m],["bindKey",g],["curry",w],["curryRight",x],["flip",E],["partial",_],["partialRight",S],["rearg",k]],F="[object Arguments]",z="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",Y="[object Date]",H="[object DOMException]",V="[object Error]",K="[object Function]",J="[object GeneratorFunction]",Q="[object Map]",G="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",ve="[object Uint8Array]",ye="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Oe=RegExp(_e.source),ke=RegExp(Se.source),Ee=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Re.source),Ne=/^\s+|\s+$/g,Me=/^\s+/,Ie=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,Ge=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Xe+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Xe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",ht="(?:"+ft+"|"+at+")",dt="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),yt="(?:"+[ot,ct,lt].join("|")+")"+vt,mt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+mt+vt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,yt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Et={};Et[le]=Et[fe]=Et[pe]=Et[he]=Et[de]=Et[ve]=Et[ye]=Et[me]=Et[ge]=!0,Et[F]=Et[z]=Et[ue]=Et[W]=Et[ce]=Et[Y]=Et[V]=Et[K]=Et[Q]=Et[G]=Et[X]=Et[te]=Et[ne]=Et[re]=Et[ae]=!1;var At={};At[F]=At[z]=At[ue]=At[ce]=At[W]=At[Y]=At[le]=At[fe]=At[pe]=At[he]=At[de]=At[Q]=At[G]=At[X]=At[te]=At[ne]=At[re]=At[oe]=At[ve]=At[ye]=At[me]=At[ge]=!0,At[V]=At[K]=At[ae]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,Ct=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,Lt=Pt||Rt||Function("return this")(),Nt=t&&!t.nodeType&&t,Mt=Nt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Mt&&Mt.exports===Nt,Ut=It&&Pt.process,Dt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),qt=Dt&&Dt.isArrayBuffer,Bt=Dt&&Dt.isDate,Ft=Dt&&Dt.isMap,zt=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Wt=Dt&&Dt.isTypedArray;function Yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ht(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Sn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function On(e){return"\\"+Tt[e]}function kn(e){return _t.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Nn=function e(t){var n,r=(t=null==t?Lt:Nn.defaults(Lt.Object(),t,Nn.pick(Lt,Ot))).Array,o=t.Date,Ze=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Xe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=st.toString,dt=ct.call(tt),vt=Lt._,yt=nt("^"+ct.call(lt).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=It?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,Tt=mt?mt.allocUnsafe:i,Pt=An(tt.getPrototypeOf,tt),Rt=tt.create,Nt=st.propertyIsEnumerable,Mt=it.splice,Ut=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,hn=function(){try{var e=qi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=o&&o.now!==Lt.Date.now&&o.now,Un=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Dn=et.ceil,qn=et.floor,Bn=tt.getOwnPropertySymbols,Fn=mt?mt.isBuffer:i,zn=t.isFinite,$n=it.join,Wn=An(tt.keys,tt),Yn=et.max,Hn=et.min,Vn=o.now,Kn=t.parseInt,Jn=et.random,Qn=it.reverse,Gn=qi(t,"DataView"),Zn=qi(t,"Map"),Xn=qi(t,"Promise"),er=qi(t,"Set"),tr=qi(t,"WeakMap"),nr=qi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Gn),ar=fa(Zn),sr=fa(Xn),ur=fa(er),cr=fa(tr),lr=wt?wt.prototype:i,fr=lr?lr.valueOf:i,pr=lr?lr.toString:i;function hr(e){if(Ts(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof yr)return e;if(lt.call(e,"__wrapped__"))return pa(e)}return new yr(e)}var dr=function(){function e(){}return function(t){if(!As(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Mr(e,t,n,r,o,a){var s,u=t&p,c=t&h,l=t&d;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var f=ms(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ri(e,s)}else{var v=zi(e),y=v==K||v==J;if(xs(e))return Go(e,u);if(v==X||v==F||y&&!o){if(s=c||y?{}:Wi(e),!u)return c?function(e,t){return oi(e,Fi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,Bi(e),t)}(e,Pr(s,e))}else{if(!At[v])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case W:case Y:return new r(+e);case ce:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case pe:case he:case de:case ve:case ye:case me:case ge:return Xo(e,n);case Q:return new r;case G:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,fr?tt(fr.call(o)):{}}var o}(e,v,u)}}a||(a=new _r);var m=a.get(e);if(m)return m;if(a.set(e,s),Ls(e))return e.forEach(function(r){s.add(Mr(r,t,n,r,e,a))}),s;if(js(e))return e.forEach(function(r,o){s.set(o,Mr(r,t,n,o,e,a))}),s;var g=f?i:(l?c?Ri:Pi:c?iu:ou)(e);return Vt(g||e,function(r,o){g&&(r=e[o=r]),Tr(s,o,Mr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Ur(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Gt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Xt(t,mn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=bn,s=!1,t=new xr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Zn||br),string:new gr}},wr.prototype.delete=function(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ui(this,e).get(e)},wr.prototype.has=function(e){return Ui(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,c),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new br,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Wr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=ui(),Hr=ui(!0);function Vr(e,t){return e&&Yr(e,t,ou)}function Kr(e,t){return e&&Hr(e,t,ou)}function Jr(e,t){return Qt(t,function(t){return Os(e[t])})}function Qr(e,t){for(var n=0,r=(t=Vo(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&<.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Zt:Gt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Xt(p,mn(t))),l=Hn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var h=-1,d=c[0];e:for(;++h=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Hi(o)?Mt.call(e,o,1):qo(e,o)}}return e}function _o(e,t){return e+qn(Jn()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>N)return n;do{t%2&&(n+=e),(t=qn(t/2))&&(e+=e)}while(t);return n}function Oo(e,t){return ia(ea(e,t,Cu),e+"")}function ko(e){return Or(hu(e))}function Eo(e,t){var n=hu(e);return ua(n,Nr(t,0,n.length))}function Ao(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Vo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ms(a)&&(n?a<=t:a=a){var l=t?null:Si(e);if(l)return jn(l);s=!1,o=bn,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Qo=Mn||function(e){return Lt.clearTimeout(e)};function Go(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ms(e),s=t!==i,u=null===t,c=t==t,l=Ms(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Vi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r-1?o[a?t[s]:s]:i}}function hi(e){return Ci(function(t){var n=t.length,r=n,o=yr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ni(a))var s=new yr([],!0)}for(r=s?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,p=!0,h=n&y?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(B,function(n){var r="_."+n[0];t&n[1]&&!Gt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(qe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Vn(),o=C-(r-n);if(n=r,o>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ra(e,n)});function qa(e){var t=hr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var Fa=Ci(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&Hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[o],thisArg:i}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var za=ii(function(e,t,n){lt.call(e,n)?++e[n]:Rr(e,n,1)});var $a=pi(ya),Wa=pi(ma);function Ya(e,t){return(ms(e)?Vt:qr)(e,Ii(t,3))}function Ha(e,t){return(ms(e)?Kt:Br)(e,Ii(t,3))}var Va=ii(function(e,t,n){lt.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Ka=Oo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return qr(e,function(e){a[++o]=i?Yt(t,e,n):ro(e,t,n)}),a}),Ja=ii(function(e,t,n){Rr(e,n,t)});function Qa(e,t){return(ms(e)?Xt:po)(e,Ii(t,3))}var Ga=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=Oo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Vi(e,t[0],t[1])?t=[]:n>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),go(e,Wr(t,1),[])}),Xa=In||function(){return Lt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,ki(e,O,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Oo(function(e,t,n){var r=m;if(n.length){var o=Tn(n,Mi(ns));r|=_}return ki(e,r,t,n,o)}),rs=Oo(function(e,t,n){var r=m|g;if(n.length){var o=Tn(n,Mi(rs));r|=_}return ki(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new ot(u);function v(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function y(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=a}function m(){var e=Xa();if(y(e))return g(e);c=oa(m,function(e){var n=t-(e-l);return h?Hn(n,a-(e-f)):n}(e))}function g(e){return c=i,d&&r?v(e):(r=o=i,s)}function b(){var e=Xa(),n=y(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return f=e,c=oa(m,t),p?v(e):s}(l);if(h)return c=oa(m,t),v(l)}return c===i&&(c=oa(m,t)),s}return t=$s(t)||0,As(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Yn($s(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==i&&Qo(c),f=0,r=l=o=c=i},b.flush=function(){return c===i?s:g(Xa())},b}var is=Oo(function(e,t){return Ur(e,1,t)}),as=Oo(function(e,t,n){return Ur(e,$s(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||wr),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=Ko(function(e,t){var n=(t=1==t.length&&ms(t[0])?Xt(t[0],mn(Ii())):Xt(Wr(t,1),mn(Ii()))).length;return Oo(function(r){for(var o=-1,i=Hn(r.length,n);++o=t}),ys=oo(function(){return arguments}())?oo:function(e){return Ts(e)&<.call(e,"callee")&&!Nt.call(e,"callee")},ms=r.isArray,gs=qt?mn(qt):function(e){return Ts(e)&&Zr(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Os(e)}function ws(e){return Ts(e)&&bs(e)}var xs=Fn||$u,_s=Bt?mn(Bt):function(e){return Ts(e)&&Zr(e)==Y};function Ss(e){if(!Ts(e))return!1;var t=Zr(e);return t==V||t==H||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Os(e){if(!As(e))return!1;var t=Zr(e);return t==K||t==J||t==$||t==ee}function ks(e){return"number"==typeof e&&e==Fs(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var js=Ft?mn(Ft):function(e){return Ts(e)&&zi(e)==Q};function Cs(e){return"number"==typeof e||Ts(e)&&Zr(e)==G}function Ps(e){if(!Ts(e)||Zr(e)!=X)return!1;var t=Pt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Rs=zt?mn(zt):function(e){return Ts(e)&&Zr(e)==te};var Ls=$t?mn($t):function(e){return Ts(e)&&zi(e)==ne};function Ns(e){return"string"==typeof e||!ms(e)&&Ts(e)&&Zr(e)==re}function Ms(e){return"symbol"==typeof e||Ts(e)&&Zr(e)==oe}var Is=Wt?mn(Wt):function(e){return Ts(e)&&Es(e.length)&&!!Et[Zr(e)]};var Us=wi(fo),Ds=wi(function(e,t){return e<=t});function qs(e){if(!e)return[];if(bs(e))return Ns(e)?Rn(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=zi(e);return(t==Q?En:t==ne?jn:hu)(e)}function Bs(e){return e?(e=$s(e))===L||e===-L?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function Fs(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function zs(e){return e?Nr(Fs(e),0,U):0}function $s(e){if("number"==typeof e)return e;if(Ms(e))return I;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var n=Ye.test(e);return n||Ve.test(e)?Ct(e.slice(2),n?2:8):We.test(e)?I:+e}function Ws(e){return oi(e,iu(e))}function Ys(e){return null==e?"":Uo(e)}var Hs=ai(function(e,t){if(Gi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)lt.call(t,n)&&Tr(e,n,t[n])}),Vs=ai(function(e,t){oi(t,iu(t),e)}),Ks=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Js=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),Qs=Ci(Lr);var Gs=Oo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Vi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ri(e),n),r&&(n=Mr(n,p|h|d,Ti));for(var o=t.length;o--;)qo(n,t[o]);return n});var cu=Ci(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Xt(Ri(e),function(e){return[e]});return t=Ii(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Oi(ou),pu=Oi(iu);function hu(e){return null==e?[]:gn(e,ou(e))}var du=li(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Su(Ys(e).toLowerCase())}function yu(e){return(e=Ys(e))&&e.replace(Je,_n).replace(bt,"")}var mu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ci("toLowerCase");var wu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=li(function(e,t,n){return e+(n?" ":"")+Su(t)});var _u=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Su=ci("toUpperCase");function Ou(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var ku=Oo(function(e,t){try{return Yt(e,i,t)}catch(e){return Ss(e)?e:new Ze(e)}}),Eu=Ci(function(e,t){return Vt(t,function(t){t=la(t),Rr(e,t,ns(e[t],e))}),e});function Au(e){return function(){return e}}var Tu=hi(),ju=hi(!0);function Cu(e){return e}function Pu(e){return uo("function"==typeof e?e:Mr(e,p))}var Ru=Oo(function(e,t){return function(n){return ro(n,e,t)}}),Lu=Oo(function(e,t){return function(n){return ro(e,n,t)}});function Nu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(As(n)&&"chain"in n&&!n.chain),a=Os(e);return Vt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Mu(){}var Iu=mi(Xt),Uu=mi(Jt),Du=mi(rn);function qu(e){return Ki(e)?pn(la(e)):function(e){return function(t){return Qr(t,e)}}(e)}var Bu=bi(),Fu=bi(!0);function zu(){return[]}function $u(){return!1}var Wu=yi(function(e,t){return e+t},0),Yu=_i("ceil"),Hu=yi(function(e,t){return e/t},1),Vu=_i("floor");var Ku,Ju=yi(function(e,t){return e*t},1),Qu=_i("round"),Gu=yi(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Fs(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=es,hr.assign=Hs,hr.assignIn=Vs,hr.assignInWith=Ks,hr.assignWith=Js,hr.at=Qs,hr.before=ts,hr.bind=ns,hr.bindAll=Eu,hr.bindKey=rs,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},hr.chain=qa,hr.chunk=function(e,t,n){t=(n?Vi(e,t,n):t===i)?1:Yn(Fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Dn(o/t));ao?0:o+n),(r=r===i||r>o?o:Fs(r))<0&&(r+=o),r=n>r?0:zs(r);n>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Uo(t))&&kn(e)?Jo(Rn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Yn(Fs(t),0),Oo(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Yt(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:Fs(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:Fs(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?Fo(e,Ii(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?Fo(e,Ii(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ba,hr.toArray=qs,hr.toPairs=fu,hr.toPairsIn=pu,hr.toPath=function(e){return ms(e)?Xt(e,la):Ms(e)?[e]:ri(ca(Ys(e)))},hr.toPlainObject=Ws,hr.transform=function(e,t,n){var r=ms(e),o=r||xs(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Os(i)?dr(Pt(e)):{}}return(o?Vt:Vr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return es(e,1)},hr.union=Ta,hr.unionBy=ja,hr.unionWith=Ca,hr.uniq=function(e){return e&&e.length?Do(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},hr.unset=function(e,t){return null==e||qo(e,t)},hr.unzip=Pa,hr.unzipWith=Ra,hr.update=function(e,t,n){return null==e?e:Bo(e,t,Ho(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bo(e,t,Ho(n),r)},hr.values=hu,hr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},hr.without=La,hr.words=Ou,hr.wrap=function(e,t){return ls(Ho(t),e)},hr.xor=Na,hr.xorBy=Ma,hr.xorWith=Ia,hr.zip=Ua,hr.zipObject=function(e,t){return Wo(e||[],t||[],Tr)},hr.zipObjectDeep=function(e,t){return Wo(e||[],t||[],Ao)},hr.zipWith=Da,hr.entries=fu,hr.entriesIn=pu,hr.extend=Vs,hr.extendWith=Ks,Nu(hr,hr),hr.add=Wu,hr.attempt=ku,hr.camelCase=du,hr.capitalize=vu,hr.ceil=Yu,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=$s(n))==n?n:0),t!==i&&(t=(t=$s(t))==t?t:0),Nr($s(e),t,n)},hr.clone=function(e){return Mr(e,d)},hr.cloneDeep=function(e){return Mr(e,p|d)},hr.cloneDeepWith=function(e,t){return Mr(e,p|d,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Mr(e,d,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Ir(e,t,ou(t))},hr.deburr=yu,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Hu,hr.endsWith=function(e,t,n){e=Ys(e),t=Uo(t);var r=e.length,o=n=n===i?r:Nr(Fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=hs,hr.escape=function(e){return(e=Ys(e))&&ke.test(e)?e.replace(Se,Sn):e},hr.escapeRegExp=function(e){return(e=Ys(e))&&Le.test(e)?e.replace(Re,"\\$&"):e},hr.every=function(e,t,n){var r=ms(e)?Jt:Fr;return n&&Vi(e,t,n)&&(t=i),r(e,Ii(t,3))},hr.find=$a,hr.findIndex=ya,hr.findKey=function(e,t){return an(e,Ii(t,3),Vr)},hr.findLast=Wa,hr.findLastIndex=ma,hr.findLastKey=function(e,t){return an(e,Ii(t,3),Kr)},hr.floor=Vu,hr.forEach=Ya,hr.forEachRight=Ha,hr.forIn=function(e,t){return null==e?e:Yr(e,Ii(t,3),iu)},hr.forInRight=function(e,t){return null==e?e:Hr(e,Ii(t,3),iu)},hr.forOwn=function(e,t){return e&&Vr(e,Ii(t,3))},hr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},hr.get=Xs,hr.gt=ds,hr.gte=vs,hr.has=function(e,t){return null!=e&&$i(e,t,eo)},hr.hasIn=eu,hr.head=ba,hr.identity=Cu,hr.includes=function(e,t,n,r){e=bs(e)?e:hu(e),n=n&&!r?Fs(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),Ns(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Fs(n);return o<0&&(o=Yn(r+o,0)),un(e,t,o)},hr.inRange=function(e,t,n){return t=Bs(t),n===i?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Hn(t,n)&&e=-N&&e<=N},hr.isSet=Ls,hr.isString=Ns,hr.isSymbol=Ms,hr.isTypedArray=Is,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return Ts(e)&&zi(e)==ae},hr.isWeakSet=function(e){return Ts(e)&&Zr(e)==se},hr.join=function(e,t){return null==e?"":$n.call(e,t)},hr.kebabCase=mu,hr.last=Sa,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Fs(n))<0?Yn(r+o,0):Hn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,ln,o,!0)},hr.lowerCase=gu,hr.lowerFirst=bu,hr.lt=Us,hr.lte=Ds,hr.max=function(e){return e&&e.length?zr(e,Cu,Xr):i},hr.maxBy=function(e,t){return e&&e.length?zr(e,Ii(t,2),Xr):i},hr.mean=function(e){return fn(e,Cu)},hr.meanBy=function(e,t){return fn(e,Ii(t,2))},hr.min=function(e){return e&&e.length?zr(e,Cu,fo):i},hr.minBy=function(e,t){return e&&e.length?zr(e,Ii(t,2),fo):i},hr.stubArray=zu,hr.stubFalse=$u,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Ju,hr.nth=function(e,t){return e&&e.length?mo(e,Fs(t)):i},hr.noConflict=function(){return Lt._===this&&(Lt._=vt),this},hr.noop=Mu,hr.now=Xa,hr.pad=function(e,t,n){e=Ys(e);var r=(t=Fs(t))?Pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(qn(o),n)+e+gi(Dn(o),n)},hr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Fs(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Hn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return _o(e,t)},hr.reduce=function(e,t,n){var r=ms(e)?tn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,qr)},hr.reduceRight=function(e,t,n){var r=ms(e)?nn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Br)},hr.repeat=function(e,t,n){return t=(n?Vi(e,t,n):t===i)?1:Fs(t),So(Ys(e),t)},hr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Vo(t,e)).length;for(o||(o=1,e=i);++rN)return[];var n=U,r=Hn(e,U);t=Ii(t),e-=U;for(var o=yn(r,t);++n=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),Rs(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=nt(o.source,Ys($e.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(Uo(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},hr.unescape=function(e){return(e=Ys(e))&&Oe.test(e)?e.replace(_e,Ln):e},hr.uniqueId=function(e){var t=++ft;return Ys(e)+t},hr.upperCase=_u,hr.upperFirst=Su,hr.each=Ya,hr.eachRight=Ha,hr.first=ba,Nu(hr,(Ku={},Vr(hr,function(e,t){lt.call(hr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Vt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Yn(Fs(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,U),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Cu)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=Oo(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return ro(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(us(Ii(e)))},mr.prototype.slice=function(e,t){e=Fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(U)},Vr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof mr,c=s[0],l=u||ms(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,v=u&&!h;if(!a&&l){t=v?t:new mr(this);var y=e.apply(t,s);return y.__actions__.push({func:Ba,args:[f],thisArg:i}),new yr(y,p)}return d&&v?e.apply(this,s):(y=this.thru(f),d?r?y.value()[0]:y.value():y)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),Vr(mr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[di(i,g).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Aa],thisArg:i}),new yr(t,this.__chain__)}return this.thru(Aa)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return zo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Dt&&(hr.prototype[Dt]=function(){return this}),hr}();Lt._=Nn,(o=function(){return Nn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(10),n(38)(e))},function(e,t,n){var r=n(174);e.exports={Graph:r.Graph,json:n(300),alg:n(301),version:r.version}},function(e,t,n){e.exports={Graph:n(66),version:n(299)}},function(e,t,n){var r=n(176),o=4;e.exports=function(e){return r(e,o)}},function(e,t,n){var r=n(67),o=n(71),i=n(98),a=n(205),s=n(211),u=n(214),c=n(215),l=n(216),f=n(217),p=n(108),h=n(218),d=n(31),v=n(222),y=n(223),m=n(228),g=n(6),b=n(39),w=n(229),x=n(22),_=n(231),S=n(23),O=1,k=2,E=4,A="[object Arguments]",T="[object Function]",j="[object GeneratorFunction]",C="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[C]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,N,M){var I,U=n&O,D=n&k,q=n&E;if(R&&(I=N?R(t,L,N,M):R(t)),void 0!==I)return I;if(!x(t))return t;var B=g(t);if(B){if(I=v(t),!U)return c(t,I)}else{var F=d(t),z=F==T||F==j;if(b(t))return u(t,U);if(F==C||F==A||z&&!N){if(I=D||z?{}:m(t),!U)return D?f(t,s(I,t)):l(t,a(I,t))}else{if(!P[F])return N?t:{};I=y(t,F,U)}}M||(M=new r);var $=M.get(t);if($)return $;if(M.set(t,I),_(t))return t.forEach(function(r){I.add(e(r,n,R,r,t,M))}),I;if(w(t))return t.forEach(function(r,o){I.set(o,e(r,n,R,o,t,M))}),I;var W=q?D?h:p:D?keysIn:S,Y=B?void 0:W(t);return o(Y||t,function(r,o){Y&&(r=t[o=r]),i(I,o,e(r,n,R,o,t,M))}),I}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(43),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(43);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(42),o=n(69),i=n(70),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(30),o=n(48),i=n(6),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(52),o=n(282),i=n(284);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(283),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(117),o=n(288),i=n(293),a=n(118),s=n(294),u=n(80),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],v=d;if(n)h=!1,f=i;else if(p>=c){var y=t?null:s(e);if(y)return u(y);h=!1,f=a,v=new r}else v=t?[]:d;e:for(;++l-1}},function(e,t,n){var r=n(290),o=n(291),i=n(292);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return a}},function(e,t,n){"use strict";var r={file:n(311),http:n(130),https:n(130)},o="object"==typeof window||"function"==typeof importScripts?r.http:r.file;"undefined"==typeof Promise&&n(132),e.exports.load=function(e,t){var n=Promise.resolve();return void 0===t&&(t={}),n=(n=n.then(function(){if(void 0===e)throw new TypeError("location is required");if("string"!=typeof e)throw new TypeError("location must be a string");if(void 0!==t){if("object"!=typeof t)throw new TypeError("options must be an object");if(void 0!==t.processContent&&"function"!=typeof t.processContent)throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(n,i){(function(e){var t=function(e){return void 0!==e&&(e=-1===e.indexOf("://")?"":e.split("://")[0]),e}(e),n=r[t];if(void 0===n){if(""!==t)throw new Error("Unsupported scheme: "+t);n=o}return n})(e).load(e,t||{},function(e,t){e?i(e):n(t)})})}).then(function(n){return t.processContent?new Promise(function(r,o){"object"!=typeof n&&(n={text:n}),n.location=e,t.processContent(n,function(e,t){e?o(e):r(t)})}):"object"==typeof n?n.text:n})}},function(e,t,n){"use strict";var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw r;e(r)}},function(e,t,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(313),i=n(314),a=n(131),s=n(315),u=n(317);function c(){}var l=t=e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};t.Request=m,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function p(e){if(!a(e))return e;var t=[];for(var n in e)h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(a(n))for(var r in n)h(e,t+"["+r+"]",n[r]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));else null===n&&e.push(encodeURIComponent(t))}function d(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){"use strict";var r=n(316);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)this[o]=n[o];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=n},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=v.substr(0,y),p=v.substr(y+1)):(f=v,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){ /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ -!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,m=String.fromCharCode;function v(e){throw new RangeError(h[e])}function y(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".");return r+o}function g(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,o=0,i=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var u=0;u=128&&v("not-basic"),n.push(e.charCodeAt(u));for(var l=a>0?a+1:0;l=r&&v("invalid-input");var m=(t=e.charCodeAt(l++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(m>=36||m>d((c-o)/p))&&v("overflow"),o+=m*p;var y=h<=s?1:h>=s+26?26:h-s;if(md(c/g)&&v("overflow"),p*=g}var b=n.length+1;s=w(o-f,b,0==f),d(o/b)>c-i&&v("overflow"),i+=d(o/b),o%=b,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=g(e)).length,r=128,o=0,i=72,s=!0,a=!1,u=void 0;try{for(var l,f=e[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value;p<128&&t.push(m(p))}}catch(e){a=!0,u=e}finally{try{!s&&f.return&&f.return()}finally{if(a)throw u}}var h=t.length,y=h;for(h&&t.push("-");y=r&&Ed((c-o)/j)&&v("overflow"),o+=(x-r)*j,r=x;var C=!0,T=!1,R=void 0;try{for(var P,I=e[Symbol.iterator]();!(C=(P=I.next()).done);C=!0){var U=P.value;if(Uc&&v("overflow"),U==r){for(var N=o,L=36;;L+=36){var q=L<=i?1:L>=i+26?26:L-i;if(N>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function A(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var s=parseInt(e.substr(n+4,2),16),a=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&a)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function E(e,t){function n(e){var n=A(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,o)),e}function j(e){return e.replace(/^0*(.*)/,"$1")||"0"}function C(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(j).join("."):e}function T(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),o=r[1],i=r[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),a=u(s,2),c=a[0],l=a[1],f=l?l.split(":").map(j):[],p=c.split(":").map(j),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,m=p.length-d,v=Array(d),y=0;y1){var w=v.slice(0,g.index),x=v.slice(g.index+g.length);b=w.join(":")+"::"+x.join(":")}else b=v.join(":");return i&&(b+="%"+i),b}return e}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,P=void 0==="".match(/(){0}/)[1];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(R);if(o){P?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=T(C(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=k[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)E(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=S.toASCII(n.host.replace(r.PCT_ENCODED,A).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}E(n,s)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var U=/^\.\.?\//,N=/^\/\.(\/|$)/,L=/^\/\.\.(\/|$)/,q=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var t=[];e.length;)if(e.match(U))e=e.replace(U,"");else if(e.match(N))e=e.replace(N,"/");else if(e.match(L))e=e.replace(L,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(q);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?a:s,r=[],o=k[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?S.toUnicode(e.host):S.toASCII(e.host.replace(n.PCT_ENCODED,A).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}E(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?a:s,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(T(C(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||o&&o.absolutePath||(u=D(u)),void 0===i&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=I(z(e,n),n),t=I(z(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=D(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=D(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function F(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,A)}var B={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize},H={},W="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",V="[0-9A-Fa-f]",K=n(n("%[EFef][0-9A-Fa-f]%"+V+V+"%"+V+V)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+V+V)+"|"+n("%"+V+V)),Y=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(W,"g"),Z=new RegExp(K,"g"),G=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Y),"g"),X=new RegExp(t("[^]",W,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Q=X;function ee(e){var t=A(e);return t.match(J)?t:e}var te={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},s=n.query.split("&"),a=0,u=s.length;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-l,_=Math.floor,S=String.fromCharCode;function k(e){throw new RangeError(w[e])}function O(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function A(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+O((e=e.replace(b,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>x*f>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+p))}function R(e){var t,n,r,o,i,s,a,p,h,y,g,b=[],w=e.length,x=0,S=m,O=d;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r=128&&k("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=w&&k("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>_((u-x)/s))&&k("overflow"),x+=p*s,!(p<(h=a<=O?l:a>=O+f?f:a-O));a+=c)s>_(u/(y=c-h))&&k("overflow"),s*=y;O=T(x-i,t=b.length+1,0==i),_(x/t)>u-S&&k("overflow"),S+=_(x/t),x%=t,b.splice(x++,0,S)}return j(b)}function P(e){var t,n,r,o,i,s,a,p,h,y,g,b,w,x,O,A=[];for(b=(e=E(e)).length,t=m,n=0,i=d,s=0;s=t&&g_((u-n)/(w=r+1))&&k("overflow"),n+=(a-t)*w,t=a,s=0;su&&k("overflow"),g==t){for(p=n,h=c;!(p<(y=h<=i?l:h>=i+f?f:h-i));h+=c)O=p-y,x=c-y,A.push(S(C(y+O%x,0))),p=_(O/x);A.push(S(C(p,0))),i=T(n,w,r==o),n=0,++r}++n,++t}return A.join("")}a={version:"1.4.1",ucs2:{decode:E,encode:j},decode:R,encode:P,toASCII:function(e){return A(e,function(e){return g.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return A(e,function(e){return y.test(e)?R(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(20)(e),n(3))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(3),n(4))},function(e,t,n){"use strict";var r=n(286),o=n(307);function i(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(1),e.exports.Schema=n(17),e.exports.FAILSAFE_SCHEMA=n(62),e.exports.JSON_SCHEMA=n(108),e.exports.CORE_SCHEMA=n(107),e.exports.DEFAULT_SAFE_SCHEMA=n(23),e.exports.DEFAULT_FULL_SCHEMA=n(38),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=o.dump,e.exports.safeDump=o.safeDump,e.exports.YAMLException=n(22),e.exports.MINIMAL_SCHEMA=n(62),e.exports.SAFE_SCHEMA=n(23),e.exports.DEFAULT_SCHEMA=n(38),e.exports.scan=i("scan"),e.exports.parse=i("parse"),e.exports.compose=i("compose"),e.exports.addConstructor=i("addConstructor")},function(e,t,n){"use strict";var r=n(16),o=n(22),i=n(287),s=n(23),a=n(38),u=Object.prototype.hasOwnProperty,c=1,l=2,f=3,p=4,h=1,d=2,m=3,v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/[\x85\u2028\u2029]/,g=/[,\[\]\{\}]/,b=/^(?:!|!!|![a-z\-]+!)$/i,w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return 10===e||13===e}function _(e){return 9===e||32===e}function S(e){return 9===e||32===e||10===e||13===e}function k(e){return 44===e||91===e||93===e||123===e||125===e}function O(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e?"\t":9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function E(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var j=new Array(256),C=new Array(256),T=0;T<256;T++)j[T]=A(T)?1:0,C[T]=A(T);function R(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function P(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function I(e,t){throw P(e,t)}function U(e,t){e.onWarning&&e.onWarning.call(null,P(e,t))}var N={YAML:function(e,t,n){var r,o,i;null!==e.version&&I(e,"duplication of %YAML directive"),1!==n.length&&I(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&I(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&I(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&U(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&I(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],b.test(r)||I(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,r)&&I(e,'there is a previously declared suffix for "'+r+'" tag handle'),w.test(o)||I(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=o}};function L(e,t,n,r){var o,i,s,a;if(t1&&(e.result+=r.repeat("\n",t-1))}function $(e,t){var n,r,o=e.tag,i=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&45===r&&S(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)s.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,V(e,t,f,!1,!0),s.push(e.result),M(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)I(e,"bad indentation of a sequence entry");else if(e.lineIndentt?T=1:e.lineIndent===t?T=0:e.lineIndentt?T=1:e.lineIndent===t?T=0:e.lineIndentt)&&(V(e,t,p,!0,o)&&(y?m=e.result:v=e.result),y||(D(e,f,h,d,m,v,i,s),d=m=v=null),M(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)I(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===i?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?I(e,"repeat of an indentation width identifier"):(f=t+i-1,l=!0)}if(_(s)){do{s=e.input.charCodeAt(++e.position)}while(_(s));if(35===s)do{s=e.input.charCodeAt(++e.position)}while(!x(s)&&0!==s)}for(;0!==s;){for(z(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndentf&&(f=e.lineIndent),x(s))p++;else{if(e.lineIndent0){for(o=s,i=0;o>0;o--)(s=O(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+s:I(e,"expected hexadecimal character");e.result+=E(i),e.position++}else I(e,"unknown escape sequence");n=r=e.position}else x(a)?(L(e,n,r,!0),B(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&F(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}I(e,"unexpected end of the stream within a double quoted scalar")}(e,w)?P=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!S(r)&&!k(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&I(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||I(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],M(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,s,a,u,c,l,f=e.kind,p=e.result;if(S(l=e.input.charCodeAt(e.position))||k(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(S(r=e.input.charCodeAt(e.position+1))||n&&k(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,s=!1;0!==l;){if(58===l){if(S(r=e.input.charCodeAt(e.position+1))||n&&k(r))break}else if(35===l){if(S(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&k(l))break;if(x(l)){if(a=e.line,u=e.lineStart,c=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){s=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=u,e.lineIndent=c;break}}s&&(L(e,o,i,!1),B(e,e.line-a),o=i=e.position,s=!1),_(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return L(e,o,i,!1),!!e.result||(e.kind=f,e.result=p,!1)}(e,w,c===n)&&(P=!0,null===e.tag&&(e.tag="?")):(P=!0,null===e.tag&&null===e.anchor||I(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===T&&(P=v&&$(e,A))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(y=0,g=e.implicitTypes.length;y tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result)?(e.result=b.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):I(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||P}function K(e){var t,n,r,o,i=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(M(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(s=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!S(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&I(e,"directive name must not be less than one character in length");0!==o;){for(;_(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!x(o));break}if(x(o))break;for(t=e.position;0!==o&&!S(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&z(e),u.call(N,n)?N[n](e,n,r):U(e,'unknown document directive "'+n+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):s&&I(e,"directives end mark is expected"),V(e,e.lineIndent-1,p,!1,!0),M(e,!0,-1),e.checkLineBreaks&&y.test(e.input.slice(i,e.position))&&U(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;st/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),r.repeat(" ",e)+n+a+i+"\n"+r.repeat(" ",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=o},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(16),o=n(1);function i(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}e.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,a=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var r=n(16),o=n(1),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var s=/^[-+]?[0-9]+e/;e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,o;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){o.unshift(parseFloat(e,10))}),t=0,r=1,o.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),s.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(1),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==o.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,r,s,a,u,c,l,f=0,p=null;if(null===(t=o.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,r,s));if(a=+t[4],u=+t[5],c=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),l=new Date(Date.UTC(n,r,s,a,u,c,f)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var r=n(1);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var r;try{r=n(18).Buffer}catch(e){}var o=n(1),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,s=i;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),s=o.length,a=i,u=0,c=[];for(t=0;t>16&255),c.push(u>>8&255),c.push(255&u)),u=u<<6|a.indexOf(o.charAt(t));return 0===(n=s%4*6)?(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)):18===n?(c.push(u>>10&255),c.push(u>>2&255)):12===n&&c.push(u>>4&255),r?r.from?r.from(c):new r(c):c},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",o=0,s=e.length,a=i;for(t=0;t>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]),o=(o<<8)+e[t];return 0===(n=s%3)?(r+=a[o>>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]):2===n?(r+=a[o>>10&63],r+=a[o>>4&63],r+=a[o<<2&63],r+=a[64]):1===n&&(r+=a[o>>2&63],r+=a[o<<4&63],r+=a[64],r+=a[64]),r}})},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=c(e),r=n[0],s=n[1],a=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,s)),u=0,l=s>0?r-4:r,f=0;f>16&255,a[u++]=t>>8&255,a[u++]=255&t;2===s&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,a[u++]=255&t);1===s&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t);return a},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;sa?a:s+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=d,a/=256,o-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}},function(e,t,n){"use strict";var r=n(1),o=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,s,a,u=[],c=e;for(t=0,n=c.length;t3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var r;try{r=n(306)}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var o=n(1);e.exports=new o("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",o=r.parse(n,{range:!0}),i=[];if("Program"!==o.type||1!==o.body.length||"ExpressionStatement"!==o.body[0].type||"ArrowFunctionExpression"!==o.body[0].expression.type&&"FunctionExpression"!==o.body[0].expression.type)throw new Error("Failed to resolve function");return o.body[0].expression.params.forEach(function(e){i.push(e.name)}),t=o.body[0].expression.body.range,"BlockStatement"===o.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t){if("undefined"==typeof esprima){var n=new Error("Cannot find module 'esprima'");throw n.code="MODULE_NOT_FOUND",n}e.exports=esprima},function(e,t,n){"use strict";var r=n(16),o=n(22),i=n(38),s=n(23),a=Object.prototype.toString,u=Object.prototype.hasOwnProperty,c=9,l=10,f=32,p=33,h=34,d=35,m=37,v=38,y=39,g=42,b=44,w=45,x=58,_=62,S=63,k=64,O=91,A=93,E=96,j=123,C=124,T=125,R={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},P=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function I(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else{if(!(e<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+r.repeat("0",i-t.length)+t}function U(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,s,a,c;if(null===t)return{};for(n={},o=0,i=(r=Object.keys(t)).length;or&&" "!==e[R+1],R=i);else if(!D(s))return W;P=P&&z(s)}c=c||f&&i-R-1>r&&" "!==e[R+1]}return u||c?n>9&&M(e)?W:c?H:$:P&&!o(e)?F:B}function K(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==P.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=r||e.flowLevel>-1&&n>=e.flowLevel;switch(V(t,a,e.indent,s,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+Y(t,e.indent)+J(N(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,o.lastIndex=a,Z(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;r=o.exec(e);){var u=r[1],c=r[2];n=" "===c[0],i+=u+(s||n||""===c?"":"\n")+Z(c,t),s=n}return i}(t,s),i));case W:return'"'+function(e){for(var t,n,r,o="",i=0;i=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o+=I(1024*(t-55296)+n-56320+65536),i++):(r=R[t],o+=!r&&D(t)?e[i]:r||I(t));return o}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Y(e,t){var n=M(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function J(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Z(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,s=0,a=0,u="";n=o.exec(e);)(a=n.index)-i>t&&(r=s>i?s:a,u+="\n"+e.slice(i,r),i=r+1),s=a;return u+="\n",e.length-i>t&&s>i?u+=e.slice(i,s)+"\n"+e.slice(s+1):u+=e.slice(i),u.slice(1)}function G(e,t,n){var r,i,s,c,l,f;for(s=0,c=(i=n?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+f+'" style');r=l.represent[f](t,f)}e.dump=r}return!0}return!1}function X(e,t,n,r,i,s){e.tag=null,e.dump=n,G(e,n,!1)||G(e,n,!0);var u=a.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var c,f,p="[object Object]"===u||"[object Array]"===u;if(p&&(f=-1!==(c=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(i=!1),f&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(p&&f&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,s,a,u,c,f,p="",h=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(i=0,s=d.length;i1024)&&(e.dump&&l===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,c&&(f+=L(e,t)),X(e,t+1,u,!0,c)&&(e.dump&&l===e.dump.charCodeAt(0)?f+=":":f+=": ",p+=f+=e.dump));e.tag=h,e.dump=p||"{}"}(e,t,e.dump,i),f&&(e.dump="&ref_"+c+e.dump)):(!function(e,t,n){var r,o,i,s,a,u="",c=e.tag,l=Object.keys(n);for(r=0,o=l.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),X(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=c,e.dump="{"+u+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===u){var h=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(!function(e,t,n,r){var o,i,s="",a=e.tag;for(o=0,i=n.length;o "+e.dump)}return!0}function Q(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,s;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,s=t.length;i1&&console.log("Replacing with",t),m++}}else{let o=l(u(t,e[n]));if(s.verbose>1&&console.log((!1===o?p.colour.red:p.colour.green)+"Internal resolution",e[n],p.colour.normal),!1===o){if(r.parent[r.pkey]={},s.fatal){let t=new Error("Internal $ref resolution failed "+e[n]);if(!s.promise)throw t;s.promise.reject(t)}}else m++,r.parent[r.pkey]=o,d[e[n]]=r.path.replace("/%24ref","")}else if(h.protocol){let t=i.resolve(o,e[n]).toString();s.verbose>1&&console.log(p.colour.yellow+"Rewriting external url ref",e[n],"as",t,p.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();s.verbose>1&&console.log(p.colour.yellow+"Rewriting external ref",e[n],"as",t,p.colour.normal),e["x-miro"]=e[n],e[n]=t}});return c(e,{},function(e,t,n){f(e,t)&&(void 0!==e.$fixed&&delete e.$fixed,s.preserveMiro||delete e["x-miro"])}),s.verbose>1&&console.log("Finished internal resolution"),e}function d(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function m(e,t,n,c){var f=i.parse(n.source),p=n.source.split("\\").join("/").split("/");p.pop()||p.pop();let m="",v=t.split("#");v.length>1&&(m="#"+v[1],t=v[0]),p=p.join("/");let y,g=i.parse(t),b=g.protocol?g.protocol:f.protocol?f.protocol:"file:";if(y="file:"===b?o.resolve(p?p+"/":"",t):i.resolve(p?p+"/":"",t),n.cache[y]){n.verbose&&console.log("CACHED",y,m);let e=l(n.cache[y]),r=e;if(m&&!1===(r=u(r,m))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+y+m);if(!n.promise)throw e;n.promise.reject(e)}return r=d(r=h(r,e,t,m,y,n),n),c(l(r),y,n),Promise.resolve(r)}return n.verbose&&console.log("GET",y,m),n.handlers&&n.handlers[b]?n.handlers[b](p,t,m,n).then(function(e){return e=d(e,n),n.cache[y]=e,c(e,y,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):b&&b.startsWith("http")?s(y,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}`);return e.text()}).then(function(e){try{let r=a.safeLoad(e,{json:!0});if(e=r,n.cache[y]=l(e),m&&!1===(e=u(e,m))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+y+m);if(!n.promise)throw e;n.promise.reject(e)}e=d(e=h(e,r,t,m,y,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,y,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[y]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(w=y,x=n.encoding||"utf8",new Promise(function(e,t){r.readFile(w,x,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=a.safeLoad(e,{json:!0});if(e=r,n.cache[y]=l(e),m&&!1===(e=u(e,m))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+y+m);if(!n.promise)throw e;n.promise.reject(e)}e=d(e=h(e,r,t,m,y,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,y,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var w,x}function v(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&f(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let s="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),s=(s="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.log("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+s}else t[n]=l(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=s}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return m(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=l(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let s=(a=t[n].paths,[...new Set(a)]);var a;s=s.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of s)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.log("Creating pointer to data at",r),u(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.log("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.log("Creating initial clone of data at",r));let i=l(e);u(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return v(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const y=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function g(e,t,n){e.resolver.actions.push([]),v(e).then(function(r){y(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){g(r.options,t,n)},0):(e.verbose>1&&console.log(p.colour.yellow+"Finished resolution!",p.colour.normal),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function b(e){if(e.cache||(e.cache={}),e.source){i.parse(e.source).protocol||(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs=[]),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return b(e),new Promise(function(t,n){e.resolve?g(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,b(n),new Promise(function(e,t){g(n,e,t)})}}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=l(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),_(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(S(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var c,w="",k=!1,O=["{","}"];(h(n)&&(k=!0,O=["[","]"]),S(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),x(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+f(n)),0!==s.length||k&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=k?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,O)):O[0]+w+O[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),j(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=m(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),g(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function g(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===k(e)}function _(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function S(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(g(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else s[n]=function(){};return s[n]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=b,t.isObject=w,t.isDate=x,t.isError=_,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(310);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",E(),t.format.apply(t,arguments))},t.inherits=n(8),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=i,o=a,t.copy(n,o),a+=s.data.length,s=s.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(320),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(3))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","js-yaml":"^3.12.0","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.6","oas-resolver":"^1.1.1","oas-schema-walker":"^1.1.2","oas-validator":"^2.0.2","reftools":"^1.0.4","yargs":"^12.0.2"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"90c589f40cb9869c94ebc06a275a4a9a0f6c6c69"}')},function(e,t,n){"use strict";n.r(t);n(124); +!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,v=String.fromCharCode;function y(e){throw new RangeError(h[e])}function m(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".");return r+o}function g(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,o=0,i=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var u=0;u=128&&y("not-basic"),n.push(e.charCodeAt(u));for(var l=s>0?s+1:0;l=r&&y("invalid-input");var v=(t=e.charCodeAt(l++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(v>=36||v>d((c-o)/p))&&y("overflow"),o+=v*p;var m=h<=a?1:h>=a+26?26:h-a;if(vd(c/g)&&y("overflow"),p*=g}var b=n.length+1;a=w(o-f,b,0==f),d(o/b)>c-i&&y("overflow"),i+=d(o/b),o%=b,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=g(e)).length,r=128,o=0,i=72,a=!0,s=!1,u=void 0;try{for(var l,f=e[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var p=l.value;p<128&&t.push(v(p))}}catch(e){s=!0,u=e}finally{try{!a&&f.return&&f.return()}finally{if(s)throw u}}var h=t.length,m=h;for(h&&t.push("-");m=r&&Ad((c-o)/T)&&y("overflow"),o+=(x-r)*T,r=x;var j=!0,C=!1,P=void 0;try{for(var R,L=e[Symbol.iterator]();!(j=(R=L.next()).done);j=!0){var N=R.value;if(Nc&&y("overflow"),N==r){for(var M=o,I=36;;I+=36){var U=I<=i?1:I>=i+26?26:I-i;if(M>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function A(e,t){function n(e){var n=E(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,k).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,k).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,k).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,k).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,k).replace(t.PCT_ENCODED,o)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function j(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(T).join("."):e}function C(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],f=l?l.split(":").map(T):[],p=c.split(":").map(T),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,v=p.length-d,y=Array(d),m=0;m1){var w=y.slice(0,g.index),x=y.slice(g.index+g.length);b=w.join(":")+"::"+x.join(":")}else b=y.join(":");return i&&(b+="%"+i),b}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(P);if(o){R?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=C(j(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=O[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)A(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=S.toASCII(n.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(n,a)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(U);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],o=O[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?S.toUnicode(e.host):S.toASCII(e.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}A(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(C(j(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||o&&o.absolutePath||(u=D(u)),void 0===i&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=L(q(e,n),n),t=L(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=D(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=D(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function F(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,E)}var z={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize},W={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",V=n(n("%[EFef][0-9A-Fa-f]%"+H+H+"%"+H+H)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+H+H)+"|"+n("%"+H+H)),K=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(Y,"g"),Q=new RegExp(V,"g"),G=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),Z=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=Z;function ee(e){var t=E(e);return t.match(J)?t:e}var te={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,u=a.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-l,_=Math.floor,S=String.fromCharCode;function O(e){throw new RangeError(w[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(b,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>x*f>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+p))}function P(e){var t,n,r,o,i,a,s,p,h,m,g,b=[],w=e.length,x=0,S=v,k=d;for((n=e.lastIndexOf(y))<0&&(n=0),r=0;r=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=w&&O("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>_((u-x)/a))&&O("overflow"),x+=p*a,!(p<(h=s<=k?l:s>=k+f?f:s-k));s+=c)a>_(u/(m=c-h))&&O("overflow"),a*=m;k=C(x-i,t=b.length+1,0==i),_(x/t)>u-S&&O("overflow"),S+=_(x/t),x%=t,b.splice(x++,0,S)}return T(b)}function R(e){var t,n,r,o,i,a,s,p,h,m,g,b,w,x,k,E=[];for(b=(e=A(e)).length,t=v,n=0,i=d,a=0;a=t&&g_((u-n)/(w=r+1))&&O("overflow"),n+=(s-t)*w,t=s,a=0;au&&O("overflow"),g==t){for(p=n,h=c;!(p<(m=h<=i?l:h>=i+f?f:h-i));h+=c)k=p-m,x=c-m,E.push(S(j(m+k%x,0))),p=_(k/x);E.push(S(j(p,0))),i=C(n,w,r==o),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:T},decode:P,encode:R,toASCII:function(e){return E(e,function(e){return g.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return E(e,function(e){return m.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(38)(e),n(10))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(10),n(15))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(4)),a=r(n(3)),s=r(n(5)),u=r(n(326)),c=r(n(341)),l=n(9),f=r(n(143)),p={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,version:"1.2"};var h=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,a.default)(t).call(this,Object.assign({},p,e)))}return(0,s.default)(t,e),t}(c.default);function d(e,t){var n=(0,u.default)(e),r=new h(t).parse(n[0]);if(n.length>1){r.errors.unshift(new l.YAMLSemanticError(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}var v={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},c.default.defaults[p.version],p);return new f.default(r).createNode(e,t,n)},defaultOptions:p,Document:h,parse:function(e,t){var n=d(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r=[],o=!0,i=!1,a=void 0;try{for(var s,c=(0,u.default)(e)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=new h(t);f.parse(l,n),r.push(f),n=f}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r},parseCST:u.default,parseDocument:d,stringify:function(e,t){var n=new h(t);return n.contents=e,String(n)}};t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var a=new o.default,s=new i.default({src:e});r=a.parse(s,r),n.push(a)}while(r0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new m.default(i,i+3),i+3):(o?this.error=new f.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var n=this.context,r=n.parseNode,o=n.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=y.default.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new m.default(a);!y.default.atDocumentBoundary(o,a,l.Char.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var u=new p.default;(a=u.parse({src:o},a))0&&((t.length>0||e[0].type===l.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(y.default);t.default=g},function(e,t,n){var r=n(3);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(3),o=n(87),i=n(330),a=n(331);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(87);function o(t,n,i){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";function r(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("number"==typeof e&&e>=0){var n,o;if("string"==typeof t?(n=r(t),o=t.length):(Array.isArray(t)&&(t=t[0]),t&&(t.lineStarts||(t.lineStarts=r(t.context.src)),n=t.lineStarts,o=t.context.src.length)),n&&e<=o){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.atLineStart,b=r.inCollection,w=r.inFlow,x=r.indent,_=r.lineStart,S=r.parent;(0,o.default)(this,e),(0,a.default)(this,"parseNode",function(n,r){if(d.default.atDocumentBoundary(t.src,r))return null;var o,i=new e(t,n),a=i.parseProps(r),b=a.props,w=a.type,x=a.valueStart;switch(w){case s.Type.ALIAS:o=new c.default(w,b);break;case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:o=new l.default(w,b);break;case s.Type.FLOW_MAP:case s.Type.FLOW_SEQ:o=new h.default(w,b);break;case s.Type.MAP_KEY:case s.Type.MAP_VALUE:case s.Type.SEQ_ITEM:o=new p.default(w,b);break;case s.Type.COMMENT:case s.Type.PLAIN:o=new v.default(w,b);break;case s.Type.QUOTE_DOUBLE:o=new y.default(w,b);break;case s.Type.QUOTE_SINGLE:o=new m.default(w,b);break;default:return o.error=new u.YAMLSyntaxError(o,"Unknown node type: ".concat(JSON.stringify(w))),o.range=new g.default(r,r+1),o}var _=o.parse(i,x);if(o.range=new g.default(r,_),_<=r&&(o.error=new Error("Node#parse consumed no characters"),o.error.parseEnd=_,o.error.source=o,o.range.end=r+1),i.nodeStartsCollection(o)){o.error||i.atLineStart||i.parent.type!==s.Type.DOCUMENT||(o.error=new u.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var S=new f.default(o);return _=S.parse(new e(i),_),S.range=new g.default(r,_),S}return o}),this.atLineStart=null!=i?i:n.atLineStart||!1,this.inCollection=null!=b?b:n.inCollection||!1,this.inFlow=null!=w?w:n.inFlow||!1,this.indent=null!=x?x:n.indent,this.lineStart=null!=_?_:n.lineStart,this.parent=null!=S?S:n.parent||{},this.root=n.root,this.src=n.src}return(0,i.default)(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return s.Type.ALIAS;case">":return s.Type.BLOCK_FOLDED;case"|":return s.Type.BLOCK_LITERAL;case"{":return s.Type.FLOW_MAP;case"[":return s.Type.FLOW_SEQ;case"?":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_KEY:s.Type.PLAIN;case":":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_VALUE:s.Type.PLAIN;case"-":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.SEQ_ITEM:s.Type.PLAIN;case'"':return s.Type.QUOTE_DOUBLE;case"'":return s.Type.QUOTE_SINGLE;default:return s.Type.PLAIN}}}]),(0,i.default)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof p.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=d.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,i=[],a=!1,u=o[t=d.default.endOfWhiteSpace(o,t)];u===s.Char.ANCHOR||u===s.Char.COMMENT||u===s.Char.TAG||"\n"===u;){if("\n"===u){var c=t+1,l=d.default.endOfIndent(o,c),f=l-(c+this.indent),p=r.type===s.Type.SEQ_ITEM&&r.context.atLineStart;if(!d.default.nextNodeIsIndented(o[l],f,!p))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=l}else if(u===s.Char.COMMENT){var h=d.default.endOfLine(o,t+1);i.push(new g.default(t,h)),t=h}else{var v=d.default.endOfIdentifier(o,t+1);u===s.Char.TAG&&","===o[v]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,v+13))&&(v=d.default.endOfIdentifier(o,v+5)),i.push(new g.default(t,v)),a=!0,t=d.default.endOfWhiteSpace(o,v)}u=o[t]}return a&&":"===u&&d.default.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=c.default.endOfIdentifier(n,t+1);return this.valueRange=new l.default(t+1,r),r=c.default.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(7),f=r(n(11)),p=r(n(12)),h={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=h;var d=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).blockIndent=null,r.chomping=h.CLIP,r.header=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=h.STRIP;break;case"+":this.chomping=h.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new p.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,o=e,i=e,a=this.blockIndent?n+this.blockIndent-1:n,s=1,u=r[o];"\n"===u&&(o+=1,!f.default.atDocumentBoundary(r,o));u=r[o]){var c=f.default.endOfBlockIndent(r,a,o);if(null===c)break;if(!this.blockIndent){var l=c-(o+n);if("\n"!==r[c]){if(ls&&(s=l)}o="\n"===r[c]?c:i=f.default.endOfLine(r,c)}return this.chomping!==h.KEEP&&(o=r[i]?i+1:i),this.valueRange=new p.default(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=f.default.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===h.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,o=r.indent,i=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===h.KEEP)break;return""}"\n"===s&&(a=n),s=i[n-1]}var u=n+1;a&&(this.chomping===h.KEEP?(u=a,n=this.valueRange.end):n=a);for(var c=o+this.blockIndent,p=this.type===l.Type.BLOCK_FOLDED,d=!0,v="",y="",m=!1,g=t;g0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===l.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.indent,i=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=d.default.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[d.default.endOfWhiteSpace(r,i)]){var u=new p.default;i=u.parse({src:r},i),this.items.push(u)}if((s=d.default.endOfIndent(r,i))<=i+o&&(a=r[s],st.offset);)++r;t.origOffset=t.offset+r,n=r}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter(function(e){return e instanceof d.default}),i="",a=n.start;return o.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),d.default.addStringTerminator(e,n.end,i)}}]),t}(d.default);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new c.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(55)),a=o(n(1)),s=o(n(2)),u=o(n(20)),c=o(n(58)),l=o(n(342)),f=n(7),p=n(9),h=o(n(345)),d=o(n(143)),v=o(n(59)),y=r(n(26)),m=o(n(33)),g=o(n(13)),b=o(n(32)),w=function(){function e(t){(0,a.default)(this,e),this.anchors=new l.default(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return(0,s.default)(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof y.default)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return(0,y.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof y.default?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return(0,y.isEmptyPath)(e)?!t&&this.contents instanceof g.default?this.contents.value:this.contents:this.contents instanceof y.default?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof y.default&&this.contents.has(e)}},{key:"hasIn",value:function(e){return(0,y.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof y.default&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){(0,y.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(){this.schema||(this.schema=new d.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,o=e.contents,i=void 0===o?[]:o,a=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),a&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(i),this.anchors.resolveNodes(),this.options.prettyErrors){var c=!0,l=!1,f=void 0;try{for(var h,d=this.errors[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;v instanceof p.YAMLError&&v.makePretty()}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}var y=!0,m=!1,g=void 0;try{for(var b,w=this.warnings[Symbol.iterator]();!(y=(b=w.next()).done);y=!0){var x=b.value;x instanceof p.YAMLError&&x.makePretty()}}catch(e){m=!0,g=e}finally{try{y||null==w.return||w.return()}finally{if(m)throw g}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],o=!1;if(e.forEach(function(e){var t=e.comment,i=e.name;switch(i){case"TAG":n.resolveTagDirective(e),o=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),o=!0;break;default:if(i){var a="YAML only supports %TAG and %YAML directives, and not %".concat(i);n.warnings.push(new p.YAMLWarning(e,a))}}t&&r.push(t)}),t&&!o&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],o=!1;switch(e.forEach(function(e){if(e.valueRange){if(1===r.length){t.errors.push(new p.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}var i=t.resolveNode(e);o&&(i.spaceBefore=!0,o=!1),r.push(i)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===f.Type.BLANK_LINE&&(o=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))}),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var i=n.before.join("\n")||null;if(i){var a=this.contents instanceof y.default&&this.contents.items[0]?this.contents.items[0]:this.contents;a.commentBefore=a.commentBefore?"".concat(i,"\n").concat(a.commentBefore):i}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=(0,i.default)(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new p.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new p.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=(0,i.default)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new p.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new p.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new p.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,a=t.verbatim;if(a){if("!"!==a&&"!!"!==a)return a;var s="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new p.YAMLSemanticError(e,s))}else if("!"!==o||i){var u=this.tagPrefixes.find(function(e){return e.handle===o});if(!u){var c=this.getDefaults().tagPrefixes;c&&(u=c.find(function(e){return e.handle===o}))}if(u){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:\/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return u.prefix+decodeURIComponent(i)}this.errors.push(new p.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var h="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new p.YAMLSemanticError(e,h))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return d.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return d.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return d.default.defaultTags.SEQ;case f.Type.PLAIN:return r?d.default.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,i=!1,a=!1,s={before:[],after:[]},u=function(e){return e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,c=!0,l=!1,h=void 0;try{for(var d,y=u[Symbol.iterator]();!(c=(d=y.next()).done);c=!0){var m=d.value,g=m.start,b=m.end;switch(e.context.src[g]){case f.Char.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new p.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var w=e.context.src.slice(g+1,b),x=e.header,_=e.valueRange;_&&(g>_.start||x&&g>x.start)?s.after.push(w):s.before.push(w);break;case f.Char.ANCHOR:if(i){r.push(new p.YAMLSemanticError(e,"A node can have at most one anchor"))}i=!0;break;case f.Char.TAG:if(a){r.push(new p.YAMLSemanticError(e,"A node can have at most one tag"))}a=!0}}}catch(e){l=!0,h=e}finally{try{c||null==y.return||y.return()}finally{if(l)throw h}}if(i){var S=e.anchor,O=n.getNode(S);O&&(n.map[n.newName(S)]=O),n.map[S]=e}if(e.type===f.Type.ALIAS){if(i||a){r.push(new p.YAMLSemanticError(e,"An alias node must not specify any properties"))}var k=e.rawValue,E=n.getNode(k);if(!E){var A="Aliased anchor not found: ".concat(k);return r.push(new p.YAMLReferenceError(e,A)),null}t=new v.default(E),n._cstAliases.push(t)}else{var T=this.resolveTagName(e);if(T)t=o.resolveNodeWithFallback(this,e,T);else{if(e.type!==f.Type.PLAIN){var j="Failed to resolve ".concat(e.type," node here");return r.push(new p.YAMLSyntaxError(e,j)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var C=s.before.join("\n");C&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(C):C);var P=s.after.join("\n");P&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(P):P)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,h.default)(this.contents).filter(function(e){return 0!==e.indexOf(d.default.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var i=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+i}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,o=n.mapAsMap,i=n.maxAliasCount,a=r&&("string"!=typeof e||!(this.contents instanceof g.default)),s={doc:this,keep:a,mapAsMap:a&&!!o,maxAliasCount:i},u=Object.keys(this.anchors.map);return u.length>0&&(s.anchors=u.map(function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}})),(0,b.default)(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}var r=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var o=n.handle,i=n.prefix;r.some(function(e){return 0===e.indexOf(i)})&&(e.push("%TAG ".concat(o," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,a=null;if(this.contents){this.contents instanceof m.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);var s=a?null:function(){return i=!0},u=this.schema.stringify(this.contents,o,function(){return a=null},s);e.push((0,c.default)(u,"",a))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!a||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();t.default=w,(0,u.default)(w,"defaults",{"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:d.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]}})},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(20)),s=r(n(59)),u=r(n(27)),c=r(n(142)),l=r(n(13)),f=r(n(34)),p=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"map",{}),this.prefix=t}return(0,i.default)(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof l.default||e instanceof f.default||e instanceof u.default}}]),(0,i.default)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new s.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new c.default,n=arguments.length,r=new Array(n),o=0;o=g)if(b)y.push(b),g=b+d,b=void 0;else if(n===o){for(;" "===w||"\t"===w;)w=v,v=e[_+=1],x=!0;y.push(_-2),m[_-2]=!0,g=_-2+d,b=void 0}else x=!0}w=v}x&&h&&h();if(0===y.length)return e;p&&p();for(var O=e.slice(0,y[0]),k=0;k0?r-4:r,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,c-=8);e[n+h-d]|=128*v}},function(e,t,n){"use strict";const r=n(134),o=n(84),i=n(85),a=n(135),s=n(136),u=n(61).jptr,c=n(94).recurse,l=n(62).clone,f=n(355).dereference,p=n(93).isRef,h=n(152);function d(e,t,n,r,o,a){let s=a.externalRefs[n+r].paths[0],f=i.parse(o),d={},v=1;for(;v;)v=0,c(e,{identityDetection:!0},function(e,n,r){if(p(e,n))if(e[n].startsWith("#"))if(d[e[n]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+d[e[n]]).split("/#/").join("/");r.parent[r.pkey]={$ref:t,"x-miro":e[n],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),v++}}else{let o=l(u(t,e[n]));if(a.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[n],h.colour.normal),!1===o){if(r.parent[r.pkey]={},a.fatal){let t=new Error("Fragment $ref resolution failed "+e[n]);if(!a.promise)throw t;a.promise.reject(t)}}else v++,r.parent[r.pkey]=o,d[e[n]]=r.path.replace("/%24ref","")}else if(f.protocol){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}});return c(e,{},function(e,t,n){p(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function v(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function y(e,t,n,c){var f=i.parse(n.source),p=n.source.split("\\").join("/").split("/");p.pop()||p.pop();let h="",y=t.split("#");y.length>1&&(h="#"+y[1],t=y[0]),p=p.join("/");let m=i.parse(t),g=(b=m.protocol,w=f.protocol,b&&b.length>2?b:w&&w.length>2?w:"file:");var b,w;let x;if(x="file:"===g?o.resolve(p?p+"/":"",t):i.resolve(p?p+"/":"",t),n.cache[x]){n.verbose&&console.warn("CACHED",x,h);let e=l(n.cache[x]),r=n.externalRef=e;if(h&&!1===(r=u(r,h))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}return r=v(r=d(r,e,t,h,x,n),n),c(l(r),x,n),Promise.resolve(r)}return n.verbose&&console.warn("GET",x,h),n.handlers&&n.handlers[g]?n.handlers[g](p,t,h,n).then(function(e){return n.externalRef=e,e=v(e,n),n.cache[x]=e,c(e,x,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):g&&g.startsWith("http")?a(x,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}`);return e.text()}).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[x]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(_=x,S=n.encoding||"utf8",new Promise(function(e,t){r.readFile(_,S,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var _,S}function m(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&p(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),a=(a="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+a}else t[n]=l(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return y(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=l(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let a=(s=t[n].paths,[...new Set(s)]);var s;a=a.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of a)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",r),u(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.warn("Creating initial clone of data at",r));let i=l(e);u(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return m(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const g=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function b(e,t,n){e.resolver.actions.push([]),m(e).then(function(r){g(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(r.options,t,n)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=f(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,n,r){p(t,n)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function w(e){if(e.cache||(e.cache={}),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs=[]),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return w(e),new Promise(function(t,n){e.resolve?b(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,w(n),new Promise(function(e,t){b(n,e,t)})}}},function(e,t,n){"use strict";const r=n(94).recurse,o=n(62).shallowClone,i=n(61).jptr,a=n(93).isRef;var s=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}};e.exports={dereference:function e(t,n,u){u||(u={}),u.cache||(u.cache={}),u.state||(u.state={}),u.state.identityDetection=!0,u.depth=u.depth?u.depth+1:1;let c=u.depth>1?t:o(t),l={data:c},f=u.depth>1?n:o(n);u.master||(u.master=c);let p=s(u),h=1;for(;h>0;)h=0,r(l,u.state,function(t,n,r){if(a(t,n)){let o=t[n];if(h++,u.cache[o]){let e=u.cache[o];if(e.resolved)p.warn("Patching %s for %s",o,e.path),r.parent[r.pkey]=e.data,u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);p.warn("Unresolved ref"),r.parent[r.pkey]=i(e.source,e.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(e.source,e.key)),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[u.$ref]=o)}}else{let t={};t.path=r.path.split("/$ref")[0],t.key=o,p.warn("Dereffing %s at %s",o,t.path),t.source=f,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(u.master,t.key),t.source=u.master),!1===t.data&&p.warn("Missing $ref target",t.key),u.cache[o]=t,t.data=r.parent[r.pkey]=e(i(t.source,t.key),t.source,u),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o),t.resolved=!0}}});return l.data}}},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(o){if(null===o||"object"!=typeof o)return o;if(-1!==t.indexOf(o))return"[Circular]";if(t.push(o),"function"==typeof o.toJSON)try{var i=e(o.toJSON());return t.pop(),i}catch(e){return r(e)}if(Array.isArray(o)){var a=o.map(e);return t.pop(),a}var s=Object.keys(o).reduce(function(t,i){return t[i]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(o,i)),t},{});return t.pop(),s}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(t,n,o,i){if(void 0===o.depth&&(o=r()),null==t)return t;if(void 0!==t.$ref){let e={$ref:t.$ref};return o.allowRefSiblings&&t.description&&(e.description=t.description),i(e,n,o),e}if(o.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t=Object.assign({},t.allOf[0],t)).allOf,t.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t=Object.assign({},t.anyOf[0],t)).anyOf,t.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t=Object.assign({},t.oneOf[0],t)).oneOf),i(t,n,o),o.seen.has(t))return t;if("object"==typeof t&&null!==t&&o.seen.set(t,!0),o.top=!1,o.depth++,void 0!==t.items&&(o.property="items",e(t.items,t,o,i)),t.additionalItems&&"object"==typeof t.additionalItems&&(o.property="additionalItems",e(t.additionalItems,t,o,i)),t.additionalProperties&&"object"==typeof t.additionalProperties&&(o.property="additionalProperties",e(t.additionalProperties,t,o,i)),t.properties)for(let n in t.properties){let r=t.properties[n];o.property="properties/"+n,e(r,t,o,i)}if(t.patternProperties)for(let n in t.patternProperties){let r=t.patternProperties[n];o.property="patternProperties/"+n,e(r,t,o,i)}if(t.allOf)for(let n in t.allOf){let r=t.allOf[n];o.property="allOf/"+n,e(r,t,o,i)}if(t.anyOf)for(let n in t.anyOf){let r=t.anyOf[n];o.property="anyOf/"+n,e(r,t,o,i)}if(t.oneOf)for(let n in t.oneOf){let r=t.oneOf[n];o.property="oneOf/"+n,e(r,t,o,i)}return t.not&&(o.property="not",e(t.not,t,o,i)),o.depth--,t}}},function(e,t,n){"use strict";const r=n(359);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},r.STATUS_CODES)}},function(e,t,n){(function(e){var r=n(360),o=n(154),i=n(369),a=n(370),s=n(85),u=t;u.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(10))},function(e,t,n){(function(t,r,o){var i=n(153),a=n(28),s=n(154),u=n(155),c=n(368),l=s.IncomingMessage,f=s.readyStates;var p=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(p,u.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){u.push([t,e])}):u.push([t,n])}),"fetch"===e._mode){var l=null;if(i.abortController){var p=new AbortController;l=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var h=e._xhr=new r.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach(function(e){h.setRequestHeader(e[0],e[1])}),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(s)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(36).Buffer,n(10),n(15))},function(e,t){},function(e,t,n){"use strict";var r=n(64).Buffer,o=n(363);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(365),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.5","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.1","reftools":"^1.0.8","yaml":"^1.3.1","yargs":"^12.0.5"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"bb9737783f5c8e192bdf2cc33edcaec1f7fa5720"}')},function(e,t,n){"use strict";n.r(t);n(164); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -28,7 +28,7 @@ var r=n(298),o=n(299),i=n(109);function s(){return u.TYPED_ARRAY_SUPPORT?2147483 * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt - */const r=new WeakMap,o=e=>"function"==typeof e&&r.has(e),i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,s=(e,t,n=null)=>{let r=t;for(;r!==n;){const t=r.nextSibling;e.removeChild(r),r=t}},a={},u={},c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,f=new RegExp(`${c}|${l}`),p="$lit$";class h{constructor(e,t){this.parts=[],this.element=t;let n=-1,r=0;const o=[],i=t=>{const s=t.content,a=document.createTreeWalker(s,133,null,!1);let u=0;for(;a.nextNode();){n++;const t=a.currentNode;if(1===t.nodeType){if(t.hasAttributes()){const o=t.attributes;let i=0;for(let e=0;e=0&&i++;for(;i-- >0;){const o=e.strings[r],i=v.exec(o)[2],s=i.toLowerCase()+p,a=t.getAttribute(s).split(f);this.parts.push({type:"attribute",index:n,name:i,strings:a}),t.removeAttribute(s),r+=a.length-1}}"TEMPLATE"===t.tagName&&i(t)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(c)>=0){const i=t.parentNode,s=e.split(f),a=s.length-1;for(let e=0;e-1!==e.index,m=()=>document.createComment(""),v=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; + */const r=new WeakMap,o=e=>"function"==typeof e&&r.has(e),i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,a=(e,t,n=null)=>{let r=t;for(;r!==n;){const t=r.nextSibling;e.removeChild(r),r=t}},s={},u={},c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,f=new RegExp(`${c}|${l}`),p="$lit$";class h{constructor(e,t){this.parts=[],this.element=t;let n=-1,r=0;const o=[],i=t=>{const a=t.content,s=document.createTreeWalker(a,133,null,!1);let u=0;for(;s.nextNode();){n++;const t=s.currentNode;if(1===t.nodeType){if(t.hasAttributes()){const o=t.attributes;let i=0;for(let e=0;e=0&&i++;for(;i-- >0;){const o=e.strings[r],i=y.exec(o)[2],a=i.toLowerCase()+p,s=t.getAttribute(a).split(f);this.parts.push({type:"attribute",index:n,name:i,strings:s}),t.removeAttribute(a),r+=s.length-1}}"TEMPLATE"===t.tagName&&i(t)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(c)>=0){const i=t.parentNode,a=e.split(f),s=a.length-1;for(let e=0;e-1!==e.index,v=()=>document.createComment(""),y=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -42,7 +42,7 @@ var r=n(298),o=n(299),i=n(109);function s(){return u.TYPED_ARRAY_SUPPORT?2147483 * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -class y{constructor(e,t,n){this._parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this._parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this._parts)void 0!==e&&e.commit()}_clone(){const e=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=this.template.parts;let n=0,r=0;const o=e=>{const i=document.createTreeWalker(e,133,null,!1);let s=i.nextNode();for(;n{const i=document.createTreeWalker(e,133,null,!1);let a=i.nextNode();for(;nnull===e||!("object"==typeof e||"function"==typeof e);class w{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;ethis.handleEvent(e)}setValue(e){this._pendingValue=e}commit(){for(;o(this._pendingValue);){const e=this._pendingValue;this._pendingValue=a,e(this)}if(this._pendingValue===a)return;const e=this._pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),r&&(this._options=j(e),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=e,this._pendingValue=a}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const j=e=>e&&(A?{capture:e.capture,passive:e.passive,once:e.once}:e.capture); +const b=e=>null===e||!("object"==typeof e||"function"==typeof e);class w{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;ethis.handleEvent(e)}setValue(e){this._pendingValue=e}commit(){for(;o(this._pendingValue);){const e=this._pendingValue;this._pendingValue=s,e(this)}if(this._pendingValue===s)return;const e=this._pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),r&&(this._options=T(e),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=e,this._pendingValue=s}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const T=e=>e&&(E?{capture:e.capture,passive:e.passive,once:e.once}:e.capture); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -82,7 +82,7 @@ const b=e=>null===e||!("object"==typeof e||"function"==typeof e);class w{constru * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt - */const C=new class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new k(e,t.slice(1),n).parts}return"@"===o?[new E(e,t.slice(1),r.eventContext)]:"?"===o?[new S(e,t.slice(1),n)]:new w(e,t,n).parts}handleTextExpression(e){return new _(e)}}; + */const j=new class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new O(e,t.slice(1),n).parts}return"@"===o?[new A(e,t.slice(1),r.eventContext)]:"?"===o?[new S(e,t.slice(1),n)]:new w(e,t,n).parts}handleTextExpression(e){return new _(e)}}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -95,7 +95,7 @@ const b=e=>null===e||!("object"==typeof e||"function"==typeof e);class w{constru * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt - */function T(e){let t=R.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},R.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(c);return void 0===(n=t.keyString.get(r))&&(n=new h(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const R=new Map,P=new WeakMap; + */function C(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(c);return void 0===(n=t.keyString.get(r))&&(n=new h(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const P=new Map,R=new WeakMap; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -122,7 +122,7 @@ const b=e=>null===e||!("object"==typeof e||"function"==typeof e);class w{constru * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");const I=(e,...t)=>new g(e,t,"html",C),U=133;function N(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,U,null,!1);let i=q(r),s=r[i],a=-1,u=0;const c=[];let l=null;for(;o.nextNode();){a++;const e=o.currentNode;for(e.previousSibling===l&&(l=null),t.has(e)&&(c.push(e),null===l&&(l=e)),null!==l&&u++;void 0!==s&&s.index===a;)s.index=null!==l?-1:s.index-u,s=r[i=q(r,i)]}c.forEach(e=>e.parentNode.removeChild(e))}const L=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,U,null,!1);for(;n.nextNode();)t++;return t},q=(e,t=-1)=>{for(let n=t+1;nnew g(e,t,"html",j),N=133;function M(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,N,null,!1);let i=U(r),a=r[i],s=-1,u=0;const c=[];let l=null;for(;o.nextNode();){s++;const e=o.currentNode;for(e.previousSibling===l&&(l=null),t.has(e)&&(c.push(e),null===l&&(l=e)),null!==l&&u++;void 0!==a&&a.index===s;)a.index=null!==l?-1:a.index-u,a=r[i=U(r,i)]}c.forEach(e=>e.parentNode.removeChild(e))}const I=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,N,null,!1);for(;n.nextNode();)t++;return t},U=(e,t=-1)=>{for(let n=t+1;nnull===e||!("object"==typeof e||"function"==typeof e);class w{constru * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -const D=(e,t)=>`${e}--${t}`;let z=!0;void 0===window.ShadyCSS?z=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),z=!1);const M=e=>t=>{const n=D(t.type,e);let r=R.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},R.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();z&&window.ShadyCSS.prepareTemplateDom(n,e),o=new h(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},F=["html","svg"],B=new Set,$=(e,t,n)=>{B.add(n);const r=e.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(t.element,n);const o=document.createElement("style");for(let e=0;e{F.forEach(t=>{const n=R.get(D(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),N(e,n)})})})(n),function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,U,null,!1);let s=q(o),a=0,u=-1;for(;i.nextNode();){for(u++,i.currentNode===n&&(a=L(t),n.parentNode.insertBefore(t,n));-1!==s&&o[s].index===u;){if(a>0){for(;-1!==s;)o[s].index+=a,s=q(o,s);return}s=q(o,s)}}}(t,o,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){const n=t.element.content.querySelector("style");e.insertBefore(n.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(o,t.element.content.firstChild);const e=new Set;e.add(o),N(t,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const H={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},W=(e,t)=>t!==e&&(t==t||e==e),V={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:W},K=Promise.resolve(!0),Y=1,J=4,Z=8,G=16,X=32,Q="finalized";class ee extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=K,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=V){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(Q)||e.finalize(),this[Q]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=W){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||H,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||H.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|X,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=V){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|Z,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~Z}}_attributeToProperty(e,t){if(this._updateState&Z)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||V;this._updateState=this._updateState|G,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~G}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||V;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&G||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=this._updateState|J;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&X}get _hasRequestedUpdate(){return this._updateState&J}get hasUpdated(){return this._updateState&Y}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(this._updateState&Y||(this._updateState=this._updateState|Y,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~J}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}ee[Q]=!0;const te="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol();class re{constructor(e,t){if(t!==ne)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(te?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const oe=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof re)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new re(n,ne)}; +const D=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),q=!1);const B=e=>t=>{const n=D(t.type,e);let r=P.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},P.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),o=new h(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},F=["html","svg"],z=new Set,$=(e,t,n)=>{z.add(n);const r=e.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(t.element,n);const o=document.createElement("style");for(let e=0;e{F.forEach(t=>{const n=P.get(D(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),M(e,n)})})})(n),function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,N,null,!1);let a=U(o),s=0,u=-1;for(;i.nextNode();){for(u++,i.currentNode===n&&(s=I(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===u;){if(s>0){for(;-1!==a;)o[a].index+=s,a=U(o,a);return}a=U(o,a)}}}(t,o,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){const n=t.element.content.querySelector("style");e.insertBefore(n.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(o,t.element.content.firstChild);const e=new Set;e.add(o),M(t,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const W={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},Y=(e,t)=>t!==e&&(t==t||e==e),H={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:Y},V=Promise.resolve(!0),K=1,J=4,Q=8,G=16,Z=32,X="finalized";class ee extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=V,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=H){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(X)||e.finalize(),this[X]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=Y){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||W,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||W.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Z,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=H){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|Q,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~Q}}_attributeToProperty(e,t){if(this._updateState&Q)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||H;this._updateState=this._updateState|G,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~G}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||H;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&G||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=this._updateState|J;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Z}get _hasRequestedUpdate(){return this._updateState&J}get hasUpdated(){return this._updateState&K}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(this._updateState&K||(this._updateState=this._updateState|K,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~J}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}ee[X]=!0;const te="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol();class re{constructor(e,t){if(t!==ne)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(te?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const oe=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof re)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new re(n,ne)}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -150,7 +150,7 @@ const D=(e,t)=>`${e}--${t}`;let z=!0;void 0===window.ShadyCSS?z=!1:void 0===wind * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ie=e=>e.flat?e.flat(1/0):function e(t,n=[]){for(let r=0,o=t.length;r(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?te?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof g&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}se.finalized=!0,se.render=(e,t,n)=>{const r=n.scopeName,o=P.has(t),i=t instanceof ShadowRoot&&z&&e instanceof g,a=i&&!B.has(r),u=a?document.createDocumentFragment():t;if(((e,t,n)=>{let r=P.get(t);void 0===r&&(s(t,t.firstChild),P.set(t,r=new _(Object.assign({templateFactory:T},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,u,Object.assign({templateFactory:M(r)},n)),a){const e=P.get(u);P.delete(u),e.value instanceof y&&$(u,e.value.template,r),s(t,t.firstChild),t.appendChild(u),P.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)}; +(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ie=e=>e.flat?e.flat(1/0):function e(t,n=[]){for(let r=0,o=t.length;r(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?te?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof g&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}ae.finalized=!0,ae.render=(e,t,n)=>{const r=n.scopeName,o=R.has(t),i=t instanceof ShadowRoot&&q&&e instanceof g,s=i&&!z.has(r),u=s?document.createDocumentFragment():t;if(((e,t,n)=>{let r=R.get(t);void 0===r&&(a(t,t.firstChild),R.set(t,r=new _(Object.assign({templateFactory:C},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,u,Object.assign({templateFactory:B(r)},n)),s){const e=R.get(u);R.delete(u),e.value instanceof m&&$(u,e.value.template,r),a(t,t.firstChild),t.appendChild(u),R.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -164,5 +164,5 @@ const D=(e,t)=>`${e}--${t}`;let z=!0;void 0===window.ShadyCSS?z=!1:void 0===wind * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -const ae=new WeakMap,ue=(e=>(...t)=>{const n=e(...t);return r.set(n,!0),n})(e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const n=ae.get(t);if(void 0!==n&&b(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),ae.set(t,{value:e,fragment:o})});function ce(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return ce=function(){return e},e}customElements.define("m-logo",class extends se{render(){return I(ce())}});var le={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb:function(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert:function(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>186?"#333":"#fff"},opacity:function(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.r,", ").concat(n.r,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r=n.r+t,n.g=n.g+t,n.b=n.b+t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}},fe=n(2),pe=n.n(fe);function he(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return he=function(){return e},e}var de=I(he());function me(){var e=Se(['',""]);return me=function(){return e},e}function ve(){var e=Se(['"','"']);return ve=function(){return e},e}function ye(){var e=Se(["",":"]);return ye=function(){return e},e}function ge(){var e=Se(['
    ',"","
    "]);return ge=function(){return e},e}function be(){var e=Se(['
    ','
    ','
    ',"
    "]);return be=function(){return e},e}function we(){var e=Se(["",""]);return we=function(){return e},e}function xe(){var e=Se(['
    null
    ']);return xe=function(){return e},e}function _e(){var e=Se(["",'
    ',"
    "]);return _e=function(){return e},e}function Se(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ke(){var e=He(["",""]);return ke=function(){return e},e}function Oe(){var e=He(["",""]);return Oe=function(){return e},e}function Ae(){var e=He(['
    ',"
    "]);return Ae=function(){return e},e}function Ee(){var e=He(["",""]);return Ee=function(){return e},e}function je(){var e=He(["",""]);return je=function(){return e},e}function Ce(){var e=He(['',""]);return Ce=function(){return e},e}function Te(){var e=He(["",":"]);return Te=function(){return e},e}function Re(){var e=He(['',""]);return Re=function(){return e},e}function Pe(){var e=He(['',""]);return Pe=function(){return e},e}function Ie(){var e=He(['
    '," ","
    "]);return Ie=function(){return e},e}function Ue(){var e=He(["",""]);return Ue=function(){return e},e}function Ne(){var e=He(['',""]);return Ne=function(){return e},e}function Le(){var e=He([""," ",'
    ',"
    ",""]);return Le=function(){return e},e}function qe(){var e=He(['
    ',"
    "]);return qe=function(){return e},e}function De(){var e=He(['
    ',"
    "]);return De=function(){return e},e}function ze(){var e=He(["[ ]"]);return ze=function(){return e},e}function Me(){var e=He(['{ } ',""]);return Me=function(){return e},e}function Fe(){var e=He(["",""]);return Fe=function(){return e},e}function Be(){var e=He(['
    null
    ']);return Be=function(){return e},e}function $e(){var e=He(["",'
    ',"
    "]);return $e=function(){return e},e}function He(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("json-tree",class extends se{render(){return I(_e(),de,this.generateTree(this.data))}static get properties(){return{data:{type:Object}}}generateTree(e){if(null===e)return I(xe());if("object"==typeof e){var t=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?I(we(),Array.isArray(e)?"[ ]":"{ }"):I(be(),"array"===t?"array":"object",this.toggleExpand,"array"===t?"[":"{",Object.keys(e).map(n=>I(ge(),"pure_object"===t?I(ye(),n):"",this.generateTree(e[n]))),"array"===t?"]":"}")}return I("string"==typeof e?ve():me(),typeof e,e)}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.nextElementSibling.style.display="none",e.target.nextElementSibling.nextElementSibling.style.display="none"):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.nextElementSibling.style.display="block",e.target.nextElementSibling.nextElementSibling.style.display="block")}});function We(){var e=Ke([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--input-border-color);\n cursor:text;\n overflow:hidden;\n }\n .tag, .editor{\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg2);\n color:var(--fg2);\n border-radius:var(--border-radius);\n word-break: break-all;\n cursor: none;\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n background:var(--input-bg);\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n font-size:inherit;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return We=function(){return e},e}function Ve(){var e=Ke(['
    ']);return Ve=function(){return e},e}function Ke(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends se{render(){return I($e(),de,this.generateTree(this.data))}static get properties(){return{data:{type:Object}}}generateTree(e){if(null===e)return I(Be());if("object"==typeof e){var t,n,r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?I(Fe(),Array.isArray(e)?"[ ]":"{ }"):1===Object.keys(e).length&&":description"===Object.keys(e)[0]?I(Me(),e[":description"]):"array"===r&&"~|~"===e[0]?I(ze()):(Object.keys(e)[0].startsWith("OPTION")||"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?(t="",n=""):(t=I(De(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{"),n=I(qe(),"array"===r?"]":"}")),I(Le(),t,e[":description"]?I(Ne(),e[":description"]):"",Object.keys(e)[0].startsWith("OPTION")?"":"inside-bracket",Object.keys(e).map(t=>I(Ue(),":description"!==t?I(Ie(),"pure_object"===r?"ANY_OF"===t||"ONE_OF"===t?I(Pe(),t.replace("_"," ")):t.startsWith("OPTION")?I(Re(),t.replace("OPTION_"," ")):I(Te(),t):"",this.generateTree(e[t])):"")),n))}return I(Ce(),e?I(je(),e.split("~|~").map((e,t)=>I(Ee(),e?I(Ae(),0==t?"item-type "+e.substring(0,4):"m-markdown-small item-descr",0==t?I(Oe(),e):I(ke(),ue(pe()(e)))):""))):"")}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>e.style.display="none")):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>e.style.display=e.classList.contains("obj-descr")?"inline":"block"))}});function Ye(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ye=function(){return e},e}customElements.define("tag-input",class extends se{render(){return I(Ve(),this.afterPaste,this.afterKeyDown,this.placeholder)}static get styles(){return[oe(We())]}static get properties(){return{placeholder:{type:String}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=document.createElement("span");""!==e.target.value.trim()&&(t.innerText=e.target.value,e.target.value="",t.classList.add("tag"),t.setAttribute("contenteditable","false"),this.shadowRoot.querySelector(".tags").insertBefore(t,e.target))}else 8===e.keyCode&&0===e.target.selectionStart&&e.target.previousSibling&&e.target.previousSibling.remove()}getValues(){var e=[],t=this.shadowRoot.querySelectorAll(".tag");for(var n of t)e.push(n.innerText);return e}});var Je=I(Ye());function Ze(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ze=function(){return e},e}var Ge=I(Ze());function Xe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return Xe=function(){return e},e}var Qe=I(Xe(),le.color.inputReverseBg,le.color.inputReverseFg);function et(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return et=function(){return e},e}var tt=I(et());function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var n={hasCircularRefs:"circular"===e.type,format:e.format?e.format:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOnly:e.readOnly?"🆁 ":"",writeOnly:e.writeOnly?"🆆 ":"",depricated:e.deprecated?"❌ ":"",default:0==e.default?"0 ":e.default?e.default:"",type:"",arrayType:"",allowedValues:"",constrain:"",html:""};if(n.hasCircularRefs)return n;if(e.enum){var r="";e.enum.map(function(e){r+="".concat(e,", ")}),n.type="enum",n.allowedValues=r.slice(0,-2)}else e.type&&(n.type=e.type);if("array"===e.type&&e.items){var o=e.items;if(n.arrayType="".concat(e.type," of ").concat(o.type),n.default=0==o.default?"0 ":o.default?o.default:"",o.enum){var i="";o.enum.map(function(e){i+="".concat(e,", ")}),n.allowedValues=i.slice(0,-2)}}else"integer"===e.type||"number"===e.type?(void 0!==e.minimum&&void 0!==e.maximum?n.constrain="".concat(e.exclusiveMinimum?">":"").concat(e.minimum," ⋯ ").concat(e.exclusiveMaximum?"<":""," ").concat(e.maximum):void 0!==e.minimum&&void 0===e.maximum?n.constrain="".concat(e.exclusiveMinimum?">":"≥").concat(e.minimum):void 0===e.minimum&&void 0!==e.maximum&&(n.constrain="".concat(e.exclusiveMaximum?"<":"≤").concat(e.maximum)),void 0!==e.multipleOf&&(n.constrain="(multiple of ".concat(e.multipleOf,")"))):"string"===e.type&&(void 0!==e.minLength&&void 0!==e.maxLength?n.constrain="(".concat(e.minLength," to ").concat(e.maxLength," chars)"):void 0!==e.minLength&&void 0===e.maxLength?n.constrain="(min:".concat(e.minLength," chars)"):void 0===e.minLength&&void 0!==e.maxLength&&(n.constrain="(max:".concat(e.maxLength," chars)")));t&&(t.readOnly&&(n.readOnly="🆁 "),t.writeOnly&&(n.writeOnly="🆆 "),t.deprecated&&(n.deprecated="❌ "));var s="".concat(n.type);return n.allowedValues&&(s+=":(".concat(n.allowedValues,")")),n.readOnly&&(s+=" 🆁"),n.writeOnly&&(s+=" 🆆"),n.deprecated&&(s+=" ❌"),n.constrain&&(s+=" ".concat(n.constrain)),n.format&&(s+=" ".concat(n.format)),n.pattern&&(s+=" ".concat(n.pattern)),n.html=s,n}}function rt(e,t){if(null!=e){if("object"===e.type||e.properties)for(var n in e.description&&(t[":description"]=e.description),e.properties)e.required&&e.required.includes(n)?t[n+"*"]=rt(e.properties[n],{}):t[n]=rt(e.properties[n],{});else if("array"===e.type||e.items)t=[rt(e.items,{})];else if(e.allOf){if(1===e.allOf.length&&e.allOf[0].type)return"".concat(e.allOf[0].type,"~|~").concat(e.description?e.description:"");var r={};e.allOf.map(function(e){var t=rt(e,{});Object.assign(r,t)}),t=r}else{if(!e.anyOf&&!e.oneOf)return nt(e).html?"".concat(nt(e).html,"~|~").concat(e.description?e.description:""):"";var o=1,i={};e[e.anyOf?"anyOf":"oneOf"].map(function(e){if(e&&e.properties){var t=rt(e,{});i["OPTION_"+o]=t,o++}}),t[e.anyOf?"ANY_OF":"ONE_OF"]=i}return t}}function ot(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,s=[];if(e)for(var a in e){var u="";u=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(e[a].value,void 0,2):e[a].value,s.push({exampleType:r,exampleValue:u})}else if(t){var c="";c=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(t,void 0,2):t,s.push({exampleType:r,exampleValue:c})}if(0==s.length)if(n)if(r.toLowerCase().includes("json")||r.toLowerCase().includes("*/*")){var l=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return;if("object"===t.type||t.properties)for(var o in t.properties)t.properties[o].deprecated||t.properties[o].readOnly&&!r.includeReadOnly||t.properties[o].writeOnly&&!r.includeWriteOnly||(n[o]=e(t.properties[o],{},r));else if("array"===t.type||t.items)n=[e(t.items,{},r)];else{if(!t.allOf)return it(t);if(1===t.allOf.length)return t.allOf[0]?it(t.allOf[0]):"string";var i={};t.allOf.map(function(t){if(t&&t.type){var n=e(t,{},r);Object.assign(i,n)}}),n=i}return n}(n,{},{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});s.push({exampleType:r,exampleValue:"text"===i?JSON.stringify(l,void 0,2):l})}else s.push({exampleType:r,exampleValue:""});else s.push({exampleType:r,exampleValue:""});return s}function it(e){if(e.example)return e.example;if(0===Object.keys(e).length)return null;var t=e.format||e.type||(e.enum?"enum":null);switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":return.5;case"string":return e.enum?e.enum[0]:e.pattern?e.pattern:"string";case"byte":return btoa("string");case"binary":return"binary";case"boolean":return!1;case"date":return new Date(0).toISOString().split("T")[0];case"date-time":case"dateTime":return new Date(0).toISOString();case"password":return"password";case"enum":return e.enum[0];case"uri":return"http://example.com";case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"email":return"user@example.com";case"hostname":return"example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"circular":return"CIRCULAR REF";default:return e.nullable?null:e.$ref?"data of type ".concat(e.$ref):(console.warn("Unknown schema value",e),"?")}}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new WeakSet;return(n,r)=>{if("object"==typeof r&&null!==r){if(t.has(r)){if(e>0)return{};var o=JSON.parse(JSON.stringify(r,st(e+1)));return t.add(o),o}t.add(r)}return r}}function at(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function ut(){var e=Mt(['"]);return ut=function(){return e},e}function ct(){var e=Mt(['
    ']);return ct=function(){return e},e}function lt(){var e=Mt(['
    Response Status: ','
    ','
    "]);return lt=function(){return e},e}function ft(){var e=Mt(['
    No Authentication Token provided
    ']);return ft=function(){return e},e}function pt(){var e=Mt(['
    Authentication:  
    send
    \'',"'
    in
    '","'
    with value
    '","'
    "]);return pt=function(){return e},e}function ht(){var e=Mt(['
    Not Set
    ']);return ht=function(){return e},e}function dt(){var e=Mt(["",""]);return dt=function(){return e},e}function mt(){var e=Mt(['
    API_Server:
    ','
    ','
    ',""]);return mt=function(){return e},e}function vt(){var e=Mt(['']);return vt=function(){return e},e}function yt(){var e=Mt(['']);return yt=function(){return e},e}function gt(){var e=Mt(['']);return gt=function(){return e},e}function bt(){var e=Mt([""," ",""]);return bt=function(){return e},e}function wt(){var e=Mt(["",""]);return wt=function(){return e},e}function xt(){var e=Mt(['
    ','
    ','
    "]);return xt=function(){return e},e}function _t(){var e=Mt(["",""]);return _t=function(){return e},e}function St(){var e=Mt(['
    '," DATA ","
    "," ",""]);return St=function(){return e},e}function kt(){var e=Mt(['
    ',"
    "]);return kt=function(){return e},e}function Ot(){var e=Mt(['',""]);return Ot=function(){return e},e}function At(){var e=Mt(['']);return At=function(){return e},e}function Et(){var e=Mt([''],['']);return Et=function(){return e},e}function jt(){var e=Mt(['
    ','
    ','
    ','
    ',""]);return jt=function(){return e},e}function Ct(){var e=Mt(['
    ',"
    "]);return Ct=function(){return e},e}function Tt(){var e=Mt(['
    ','
    ',"
    "]);return Tt=function(){return e},e}function Rt(){var e=Mt(['',""]);return Rt=function(){return e},e}function Pt(){var e=Mt(["",""]);return Pt=function(){return e},e}function It(){var e=Mt(["","
    "]);return It=function(){return e},e}function Ut(){var e=Mt(['']);return Ut=function(){return e},e}function Nt(){var e=Mt([''],['']);return Nt=function(){return e},e}function Lt(){var e=Mt(['*']);return Lt=function(){return e},e}function qt(){var e=Mt(['
    ',"",'
    ','
    ','
    '," ","
    ",""]);return qt=function(){return e},e}function Dt(){var e=Mt(["",""]);return Dt=function(){return e},e}function zt(){var e=Mt([""," "," "," "," ",'
    REQUEST
    '," "," "," "," "," ","
    "]);return zt=function(){return e},e}function Mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ft(){var e=Xt(['
    ','
    ']);return Ft=function(){return e},e}function Bt(){var e=Xt(['
    Content-Type: '," (Binary Data)
    "]);return Bt=function(){return e},e}function $t(){var e=Xt(['
    EXAMPLE: ',""]);return $t=function(){return e},e}function Ht(){var e=Xt(['',''," ",""]);return Ht=function(){return e},e}function Wt(){var e=Xt(['
    Response Headers:
    ',"
    "]);return Wt=function(){return e},e}function Vt(){var e=Xt(['
    ',': '," ","
    ",""]);return Vt=function(){return e},e}function Kt(){var e=Xt(["",""]);return Kt=function(){return e},e}function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t.title{\n font-family:var(--font-regular);\n font-size:var(--title-font-size);\n font-weight:bold;\n margin-bottom:8px;\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-head.divider{\n border-top: 1px solid var(--border-color);\n margin-top:10px;\n }\n .resp-status{ \n font-weight:bold;\n font-size:calc(var(--small-font-size) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--small-font-size) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .tab-buttons{\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n }\n .tab-btn{\n color:var(--fg);\n border:none;\n background-color:transparent;\n cursor:pointer;\n padding:1px;\n outline:none;\n font-size:var(--small-font-size);\n margin-right:16px;\n padding:1px;\n }\n .tab-btn.active{\n border-bottom: 3px solid var(--primary-color);\n font-weight:bold;\n color:var(--primary-color);\n }\n\n .tab-btn:hover{\n color:var(--primary-color);\n }\n .tab-content{\n margin:-1px 0 0 0;\n }\n .descr-text{\n color:var(--light-fg);\n font-family:var(--font-regular);\n }\n .tree{\n padding:16px 2px;\n }\n @media only screen and (min-width: 768px){\n .tree {\n padding:16px;\n }\n }
    RESPONSE
    ',"
    "]);return Gt=function(){return e},e}function Xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends se{render(){return I(zt(),Je,Qe,de,Ge,tt,this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":I(Dt(),this.apiCallTemplate()))}constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},parser:{type:Object},accept:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},allowTry:{type:String,attribute:"allow-try"}}}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0==n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=nt(o.schema),s="";s=o.example?"0"==o.example||0==o.example?"0":o.example:i.default,r.push(I(qt(),o.required?I(Lt()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.type).concat(i.format?" (".concat(i.format,")"):""),"array"===i.type?I(Nt(),e,o.name):I(Ut(),o.name,e,s),i.constrain?I(It(),i.constrain):"",i.allowedValues?I(Pt(),i.allowedValues):"",o.description?I(Rt(),ue(pe()(o.description||""))):""))}return I(Tt(),t,r)}requestBodyTemplate(){if(!this.request_body)return"";if(0==Object.keys(this.request_body).length)return"";var e=0,t={},n=this.request_body.description?I(Ct(),ue(pe()(this.request_body.description||""))):"",r="",o="",i=[],s=!1,a={json:"",xml:""},u=this.request_body.content;for(var c in u){c.includes("json")?t[c]="json":c.includes("xml")?t[c]="xml":c.includes("text/plain")?t[c]="text":c.includes("form-urlencoded")?t[c]="form-urlencoded":c.includes("multipart/form-data")?t[c]="multipart-form-data":c.includes("application/octet-stream")&&(t[c]="octet-stream");var l=u[c],f="";if(c.includes("json")||c.includes("xml")||c.includes("text/plain")){try{l.schema=JSON.parse(JSON.stringify(l.schema,st()))}catch(e){return void console.error("Unable to resolve circular refs in schema",l.schema)}c.includes("json")?a.json=rt(l.schema,{}):c.includes("xml")&&(a.xml=rt(l.schema,{})),f=ot(l.schema?l.schema.examples:"",l.schema?l.schema.example:"",l.schema,c,!1,"text"),r+='\n ")}else if(c.includes("form")||c.includes("multipart-form")){for(var p in s=!0,l.schema.properties){var h=l.schema.properties[p],d=h.type,m="array"===h.type?h.items.type:"";i.push(I(jt(),p,"array"===d?"".concat(d," of ").concat(m):"".concat(d," ").concat(h.format?" (".concat(h.format,")"):""),"array"===d?I(Et(),d,p):I(At(),"binary"===h.format?"file":"text",p,d),h.description?I(Ot(),ue(pe()(h.description||""))):""))}o=I(kt(),t[c],i)}e++}return I(St(),s?"form_data":"body_data",s?"FORM":"BODY",this.request_body.required?"(required)":"",n,s?I(_t(),o):I(xt(),this.activateTab,1===e?"".concat(Object.keys(t)[0]):I(wt(),Object.keys(t).map(e=>I(bt(),"json"===t[e]?I(gt(),t[e],this.onMimeTypeChange):I(yt(),t[e],this.onMimeTypeChange),t[e]))),ue(r),Object.keys(t).map(e=>I(vt(),t[e],"json"===t[e]?"block":"none",a[t[e]]))))}apiCallTemplate(){return I(mt(),this.selectedServer?I(dt(),this.selectedServer):I(ht()),this.apiKeyValue&&this.apiKeyName?I(pt(),this.apiKeyName,this.apiKeyLocation,this.apiKeyValue.substring(0,3)+"***"):I(ft()),this.onTryClick,""===this.responseMessage?"":I(lt(),this.responseStatus,this.responseMessage,this.clearResponseData,this.activateTab,this.responseIsBlob?I(ct(),this.downloadResponseBlob):I(ut(),this.responseText),this.responseHeaders,this.curlSyntax))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){var t=e.currentTarget.parentNode.querySelector(".tab-btn.active"),n=e.target;t.classList.remove("active"),e.target.classList.add("active");var r=this.shadowRoot.getElementById(n.attributes.content_id.value),o=e.currentTarget.parentNode.querySelectorAll(".tab-content");r&&(r.style.display="flex",o.forEach(function(e){e.attributes.id.value!==n.attributes.content_id.value&&(e.style.display="none")}))}}onMimeTypeChange(e){var t=e.target.closest(".tab-panel").querySelectorAll("textarea.request-body-param"),n=e.target.closest(".tab-panel").querySelectorAll("schema-tree");[...t].map(function(t){t.style.display=t.classList.contains(e.target.value)?"block":"none"}),[...n].map(function(t){t.style.display=t.classList.contains(e.target.value)?"block":"none"})}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i,s=n,a=e.target,u="",c="",l="",f=e.target.closest(".request-panel"),p=[...f.querySelectorAll(".request-param[data-ptype='path']")],h=[...f.querySelectorAll(".request-param[data-ptype='query']")],d=[...f.querySelectorAll(".request-param[data-ptype='header']")],m=[...f.querySelectorAll(".request-form-param")],v=[...f.querySelectorAll(".request-body-param")];if(t=s.path,r={mode:"cors",method:n.method.toUpperCase(),headers:{}},p.map(function(e){t=t.replace("{"+e.dataset.pname+"}",e.value)}),h.length>0){var y=new URLSearchParams("");h.map(function(e){if("false"===e.dataset.array)""!==e.value&&y.append(e.dataset.pname,e.value);else{var t=e.getValues();for(var n of t)y.append(e.dataset.pname,n)}}),t="".concat(t,"?").concat(y.toString())}if(n.apiKeyValue&&n.apiKeyName&&"query"===n.apiKeyLocation&&(t="".concat(t).concat(t.includes("?")?"&":"?").concat(n.apiKeyName,"=").concat(encodeURIComponent(n.apiKeyValue))),o=!1===(t="".concat(n.selectedServer.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,location.href).href:t,i="curl -X ".concat(n.method.toUpperCase(),' "').concat(o,'" '),n.accept&&(r.headers.Accept=n.accept,u+=' -H "Accept: '.concat(n.accept,'"')),d.map(function(e){e.value&&(r.headers[e.dataset.pname]=e.value,u+=' -H "'.concat(r.headers[e.dataset.pname],": ").concat(e.value,'"'))}),n.apiKeyValue&&n.apiKeyName&&"header"===n.apiKeyLocation&&(r.headers[n.apiKeyName]=n.apiKeyValue,u+=' -H "'.concat(n.apiKeyName,": ").concat(n.apiKeyValue,'"')),m.length>=1){var g=f.querySelector("form"),b=new URLSearchParams,w=new FormData;m.map(function(e){if("false"===e.dataset.array)"file"!==e.type?""!==e.value&&(b.append(e.dataset.pname,e.value),w.append(e.dataset.pname,e.value),l+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'"')):e.files[0]&&(b.append(e.dataset.pname,e.files[0]),w.append(e.dataset.pname,e.files[0]),l+=' -F "'.concat(e.dataset.pname,"=@").concat(e.value,'"'));else{var t=e.getValues();for(var n of t)b.append(e.dataset.pname,n),w.append(e.dataset.pname,n),l+=' -F "'.concat(e.dataset.pname,"=").concat(n,'"')}}),g.classList.contains("form-urlencoded")?(r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",u+=' -H "Content-Type: application/x-www-form-urlencoded"',r.body=b):(u+=' -H "Content-Type: multipart/form-data"',r.body=w)}if(v.length>=1)if(1===v.length)r.headers["Content-Type"]=v[0].dataset.ptype,u+=' -H "Content-Type: '.concat(v[0].dataset.ptype,'"'),r.body=v[0].value,c=" -d ".concat(JSON.stringify(v[0].value.replace(/(\r\n|\n|\r)/gm,"")));else{var x=e.target.closest(".request-panel").querySelector("input[name='request_body_type']:checked"),_=null===x?"json":x.value,S="";"json"===_?(S=f.querySelector(".request-body-param.json").value,r.headers["Content-Type"]="application/json; charset=utf-8",u+=' -H "Content-Type: application/json"'):"xml"===_?(S=f.querySelector(".request-body-param.xml").value,r.headers["Content-Type"]="application/xml; charset=utf-8",u+=' -H "Content-Type: application/xml"'):"text"===_&&(S=f.querySelector(".request-body-param.text").value,r.headers["Content-Type"]="text/plain; charset=utf-8",u+=' -H "Content-Type: text/plain"'),r.body=S,c=" -d ".concat(JSON.stringify(S.replace(/(\r\n|\n|\r)/gm,"")))}s.responseUrl="",s.responseHeaders="",s.curlSyntax="",s.responseStatus="success",s.responseIsBlob=!1,s.respContentDisposition="",s.responseBlobUrl&&(URL.revokeObjectURL(s.responseBlobUrl),s.responseBlobUrl=""),s.curlSyntax="".concat(i," ").concat(u," ").concat(c," ").concat(l);try{a.disabled=!0;var k=yield fetch(t,r);a.disabled=!1,s.responseStatus=k.ok?"success":"error",s.responseMessage="".concat(k.statusText,":").concat(k.status),s.responseUrl=k.url,k.headers.forEach(function(e,t){s.responseHeaders=s.responseHeaders+"".concat(t.trim(),": ").concat(e)+"\n"});var O=k.headers.get("content-type");if(O)if(O.includes("json"))k.json().then(function(e){s.responseText=JSON.stringify(e,null,2)});else if(O.includes("octet-stream")){s.responseIsBlob=!0;var A=k.headers.get("content-disposition");s.respContentDisposition=A?A.split("filename=")[1]:"filename",k.blob().then(function(e){s.responseBlobUrl=URL.createObjectURL(e)})}else k.text().then(function(e){s.responseText=e});else k.text().then(function(e){s.responseText=e})}catch(e){a.disabled=!1,s.responseMessage=e.message+" (CORS or Network Issue)"}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){at(i,r,o,s,a,"next",e)}function a(e){at(i,r,o,s,a,"throw",e)}s(void 0)})})()}downloadResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}});function Qt(){var e=cn([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .head .descr{\n font-size: var(--small-font-size);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n }\n .m-endpoint > .head.put:hover,\n .m-endpoint > .head.put.expanded{\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.post:hover,\n .m-endpoint > .head.post.expanded{\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.get:hover,\n .m-endpoint > .head.get.expanded{\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n .m-endpoint > .head.delete:hover,\n .m-endpoint > .head.delete.expanded{\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch:hover,\n .m-endpoint > .head.patch.expanded{\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n }\n .method.delete{ border: 2px solid var(--delete-color);}\n .method.patch{ border: 2px solid var(--patch-color); }\n .method.put{ border: 2px solid var(--put-color); }\n .method.post{ border: 2px solid var(--post-color); }\n .method.get{ border: 2px solid var(--get-color); }\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .descr{\n display: flex;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return Qt=function(){return e},e}function en(){var e=cn(['
    ',"
    "]);return en=function(){return e},e}function tn(){var e=cn(['
    ',"
    ","
    "]);return tn=function(){return e},e}function nn(){var e=cn(['
    ','
    ']);return nn=function(){return e},e}function rn(){var e=cn(['deprecated']);return rn=function(){return e},e}function on(){var e=cn([""]);return on=function(){return e},e}function sn(){var e=cn([""]);return sn=function(){return e},e}function an(){var e=cn(["",""]);return an=function(){return e},e}function un(){var e=cn(["","",'
    \x3c!-- Endpoint Head --\x3e
    ','
    ',"
    ",'
    ',"
    \x3c!-- Endpoint Body --\x3e ","
    "]);return un=function(){return e},e}function cn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-response",class extends se{render(){return I(Gt(),de,Ge,Je,Qe,this.responseTemplate())}static get properties(){return{responses:{type:Object},parser:{type:Object}}}responseTemplate(){if(!this.responses)return"";var e={},t={},n={};for(var r in this.responses){var o={};for(var i in this.responses[r].content){var s=this.responses[r].content[i],a=rt(s.schema,{}),u=ot(s.schema?s.schema.examples:"",s.schema?s.schema.example:"",s.schema,i,!1,"json");o[i]={description:this.responses[r].description,examples:u,schemaTree:a},i.includes("json")&&i,e[r]=i,0}var c=[];for(var l in this.responses[r].headers)c.push(Jt({name:l},this.responses[r].headers[l]));t[r]=c,n[r]=o}return I(Kt(),Object.keys(this.responses).map((e,r)=>I(Vt(),0===r?"top-gap":"divider",e,this.responses[e].description,t[e]&&t[e].length>0?I(Wt(),t[e].map(e=>I(Ht(),e.name,ue(pe()(e.description||"")),e.schema&&e.schema.example?I($t(),e.schema.example):""))):"",Object.keys(n[e]).map(t=>t.includes("octet-stream")?I(Bt(),t):I(Ft(),e,t,this.activateTab,e,t,e,t,t,e,t,n[e][t].examples[0].exampleValue,e,t,n[e][t].schemaTree)))))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){e.currentTarget.parentNode.querySelector(".tab-btn.active").classList.remove("active"),e.target.classList.add("active");var t=e.target.attributes.content_id.value,n=e.currentTarget.parentNode.querySelectorAll(".tab-content");t&&n.forEach(function(e){e.style.display=e.attributes.id.value===t?"flex":"none"})}}});function ln(){var e=pn(['']);return ln=function(){return e},e}function fn(){var e=pn(["",""]);return fn=function(){return e},e}function pn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-point",class extends se{render(){return I(un(),de,window.innerWidth>=768?I(an(),"row"===this.layout?I(sn()):I(on())):"",this.path.method,this.path.expanded?"expanded":"collapsed",this.toggleExpand,this.path.method,this.path.expanded?"expanded":"collapsed",this.path.method,this.path.method,this.path.deprecated?"deprecated":"",this.path.path,this.path.deprecated?I(rn()):"",ue(pe()(this.path.summary||"")),this.path.expanded?I(nn(),this.path.method,this.path.summary||this.path.description?I(tn(),ue(pe()(this.path.summary||"")),this.path.summary!==this.path.description?I(en(),ue(pe()(this.path.description||""))):""):"",this.path.method,this.path.path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,this.path.parameters,this.path.requestBody,this.allowTry,this.accept,this.path.responses):"")}static get styles(){return[oe(Qt())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}toggleExpand(){if(this.path.expanded)this.path.expanded=!1;else{this.path.expanded=!0;var e="";for(var t in this.path.responses)for(var n in this.path.responses[t].content)e=e+n+", ";e=e.replace(/,\s*$/,""),this.accept=e}this.requestUpdate()}});function hn(){var e=kn(['
    Refresh URL: ',"
    "]);return hn=function(){return e},e}function dn(){var e=kn(['
    Token URL: ',"
    "]);return dn=function(){return e},e}function mn(){var e=kn(['
    Auth URL: ',"
    "]);return mn=function(){return e},e}function vn(){var e=kn([""," "," ",'
    ']);return vn=function(){return e},e}function yn(){var e=kn(["
    ","
    "]);return yn=function(){return e},e}function gn(){var e=kn(["Send 'Authorization' in header which will contains the word 'Bearer' followed by a space and a Token String.
    "]);return gn=function(){return e},e}function bn(){var e=kn(["Send 'Authorization' in header which will contains the word 'Basic' followed by a space and a base64-encoded string username:password.
    "]);return bn=function(){return e},e}function wn(){var e=kn(["Send '","' in '","' with the given value
    "]);return wn=function(){return e},e}function xn(){var e=kn(['
    ',"
    "]);return xn=function(){return e},e}function _n(){var e=kn(['
    ',": "," ","
    "," "," "," ",""]);return _n=function(){return e},e}function Sn(){var e=kn([""," "," ",'
    AUTHENTICATION
    ',"
    TypeAuthentication Procedure
    "]);return Sn=function(){return e},e}function kn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-points",class extends se{render(){return I(fn(),this.paths.filter(e=>!this.matchPaths||"".concat(e.method," ").concat(e.path).includes(this.matchPaths)).map(e=>I(ln(),this.selectedServer,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation,this.layout,e,this.allowTry?this.allowTry:"true")))}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},paths:{type:Object},matchPaths:{type:String,attribute:"match-paths"},allowTry:{type:String,attribute:"allow-try"}}}});customElements.define("security-schemes",class extends se{render(){return I(Sn(),de,Je,Qe,Object.keys(this.schemes).map(e=>I(_n(),this.schemes[e].type,this.schemes[e].scheme,this.schemes[e].description?I(xn(),ue(pe()(this.schemes[e].description||""))):"","apiKey"===this.schemes[e].type?I(wn(),this.schemes[e].name,this.schemes[e].in,e,this.schemes[e].type,this.schemes[e].in,this.schemes[e].name,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"basic"===this.schemes[e].scheme?I(bn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"bearer"===this.schemes[e].scheme?I(gn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","oauth2"===this.schemes[e].type?I(yn(),Object.keys(this.schemes[e].flows).map(t=>I(vn(),this.schemes[e].flows[t].authorizationUrl?I(mn(),this.schemes[e].flows[t].authorizationUrl):"",this.schemes[e].flows[t].tokenUrl?I(dn(),this.schemes[e].flows[t].tokenUrl):"",this.schemes[e].flows[t].refreshUrl?I(hn(),this.schemes[e].flows[t].refreshUrl):"",e,e))):"")))}static get properties(){return{schemes:{type:Object},selectedApiKeyName:{type:String,attribute:"selected-api-key-name"},selectedApiKeyValue:{type:String,attribute:"selected-api-key-value"}}}dispatchChange(e){var t=e.target.closest(".".concat(e.target.dataset.class));if(t){var n=t.dataset.type,r=t.dataset.in,o=t.dataset.name,i=t.dataset.inputname,s="";if("CLEAR"===e.target.dataset.action){var a=t.querySelector("input[name=".concat(i,"-token]"));a&&(a.value="")}else if("apiKey"===n){var u=t.querySelector("input[name=".concat(i,"-token]"));u&&(s=u.value)}else if("http"===n){var c=t.dataset.scheme;if("basic"===c){var l=t.querySelector("input[name=".concat(i,"-username]")),f=t.querySelector("input[name=".concat(i,"-password]"));l&&f&&(s="Basic "+btoa(l.value+":"+f.value))}else if("bearer"===c){var p=t.querySelector("input[name=".concat(i,"-bearer-token]"));p&&(s="Bearer "+p.value)}}var h=new CustomEvent("change",{detail:{keyType:n,keyName:o,keyValue:s,keyLocation:r}});this.dispatchEvent(h)}}});var On=n(123),An=n.n(On),En=n(65),jn=n.n(En);function Cn(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function Tn(){var e;return e=function*(e){var t,n,r,o,i="";r={patch:!0,warnOnly:!0};try{"string"==typeof e?(i=(n=yield jn.a.convertUrl(e,r)).source.trim()).startsWith("/")&&(i=new URL("."+i,location.href).pathname):(n=yield jn.a.convertObj(e,r),i=new URL(location.href).pathname),o={resolveCirculars:!1,location:i},t=(yield An.a.resolveRefs(n.openapi,o)).resolved}catch(e){console.info("%c There was an issue while parsing the spec %o ","color:orangered",e)}console.info("%c Spec Conversion - Success !!! ","color:cornflowerblue");var s,a,u=t,c=["get","put","post","delete","patch","options","head"],l=[],f=0,p=function(e){var t=u.paths[e].parameters,n={summary:u.paths[e].summary,description:u.paths[e].description,servers:u.paths[e].servers?u.paths[e].servers:[],parameters:u.paths[e].parameters?u.paths[e].parameters:[]};c.forEach(function(r){var o,i,s;if(u.paths[e][r]){var a=u.paths[e][r];if(a.tags)i=a.tags[0],u.tags&&(s=u.tags.find(function(e){return e.name===i}));else{var c=e.indexOf("/",1);-1===c?c=e.length-1:c-=1,i=e.substr(1,c)}(o=l.find(e=>e.name==i))||(o={show:!0,name:i,description:s?s.description:"",paths:[]},l.push(o));var p=a.summary?a.summary:"",h=a.description?a.description:"";if(!p&&h)if(h.length>100){var d=-1;(-1===(d=h.indexOf("\n"))||d>100)&&(d=h.indexOf(". ")),(-1===d||d>100)&&(d=h.indexOf(".")),p=-1===d||d>100?h:h.substr(0,d)}else p=h;var m=[];m=t?a.parameters?t.filter(e=>{if(!a.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(a.parameters):t.slice(0):a.parameters?a.parameters.slice(0):[],o.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:p,method:r,description:a.description,path:e,operationId:a.operationId,requestBody:a.requestBody,parameters:m,servers:a.servers?n.servers.concat(a.servers):n.servers,responses:a.responses,deprecated:a.deprecated,security:a.security,commonSummary:n.summary,commonDescription:n.description}),f++}})};for(var h in u.paths)p(h);return s=u.components?u.components.securitySchemes:{},u.servers?u.servers.map(function(e){var t=e.url.trim().toLowerCase();e.url&&"http"!==t.substr(0,4)&&("//"==t.substr(0,2)?e.url=location.protocol+e.url:e.url=location.origin+e.url)}):u.servers=[{url:location.origin}],a=u.servers,l.sort((e,t)=>e.namet.name?1:0),{info:u.info,tags:l,externalDocs:u.externalDocs,securitySchemes:s,servers:a,basePath:u.basePath,totalPathCount:f}},(Tn=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Cn(i,r,o,s,a,"next",e)}function a(e){Cn(i,r,o,s,a,"throw",e)}s(void 0)})}).apply(this,arguments)}function Rn(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function Pn(){var e=rr(['
    ','
    ','
    ']);return Pn=function(){return e},e}function In(){var e=rr(["",""]);return In=function(){return e},e}function Un(){var e=rr(['
    ']);return Un=function(){return e},e}function Nn(){var e=rr([' ',"
    "]);return Nn=function(){return e},e}function Ln(){var e=rr(["- ",""]);return Ln=function(){return e},e}function qn(){var e=rr([' '," ","
    "]);return qn=function(){return e},e}function Dn(){var e=rr(["",""]);return Dn=function(){return e},e}function zn(){var e=rr(['
    "]);return zn=function(){return e},e}function Mn(){var e=rr(['
    URL: ',"
    "]);return Mn=function(){return e},e}function Fn(){var e=rr(['
    Name: ',"
    "]);return Fn=function(){return e},e}function Bn(){var e=rr(['
    Email: ',"
    "]);return Bn=function(){return e},e}function $n(){var e=rr(['
    '," "," ","
    "]);return $n=function(){return e},e}function Hn(){var e=rr(["",""]);return Hn=function(){return e},e}function Wn(){var e=rr(["",""]);return Wn=function(){return e},e}function Vn(){var e=rr(['',""]);return Vn=function(){return e},e}function Kn(){var e=rr(['
    '," ","
    "," "," ","
    "]);return Kn=function(){return e},e}function Yn(){var e=rr(['
    Unable to load the Spec
    ']);return Yn=function(){return e},e}function Jn(){var e=rr(['
    Loading ...
    ']);return Jn=function(){return e},e}function Zn(){var e=rr(['
    ']);return Zn=function(){return e},e}function Gn(){var e=rr([' ']);return Gn=function(){return e},e}function Xn(){var e=rr(['
    ']);return Xn=function(){return e},e}function Qn(){var e=rr(['
    ','
    '," ",'',"
    "]);return Qn=function(){return e},e}function er(){var e=rr([""]);return er=function(){return e},e}function tr(){var e=rr([""]);return tr=function(){return e},e}function nr(){var e=rr([""," "," "," "," ","",'
    '," "," "," "," "," ",'
    ']);return nr=function(){return e},e}function rr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class or extends se{render(){return I(nr(),de,Qe,Ge,Je,"dark"===this.theme?I(tr()):I(er()),this.primaryColor?"".concat(this.primaryColor):"#FF791A",le.color.brightness(this.primaryColor?this.primaryColor:"#FF791A",-30),this.primaryColor?"".concat(le.color.invert(this.primaryColor)):"#ffffff",this.headerColor?"".concat(this.headerColor):"#444",this.headerColor?"".concat(le.color.invert(this.headerColor)):"#ccc",this.layout?"".concat(this.layout):"row",this.monoFont?"".concat(this.monoFont):"Monaco, 'Andale Mono', 'Roboto Mono', Consolas",this.regularFont?"".concat(this.regularFont):"rapidoc, Helvetica, Arial",this.headerColor?le.color.brightness(this.headerColor,-20):le.color.inputReverseBg,"false"===this.showHeader?"":I(Qn(),this.headingText,"false"===this.allowSpecUrlLoad?"":I(Xn(),this.specUrl?this.specUrl:"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":I(Gn(),this.specFile?this.specFile:"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch?"":I(Zn(),this.onSearchChange)),!0===this.loading?I(Jn()):"",!0===this.loadFailed?I(Yn()):"","false"!==this.showInfo&&this.resolvedSpec&&this.resolvedSpec.info?I(Kn(),this.resolvedSpec.info.title,this.resolvedSpec.info.version?I(Vn(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?I(Wn(),ue("
    ".concat(pe()(this.resolvedSpec.info.description),"
    "))):"",this.resolvedSpec.info.termsOfService?I(Hn(),ue("
    Terms:
    ".concat(pe()(this.resolvedSpec.info.termsOfService),""))):"",this.resolvedSpec.info.contact?I($n(),this.resolvedSpec.info.contact.email?I(Bn(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?I(Fn(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?I(Mn(),this.resolvedSpec.info.contact.url):""):""):"","false"!==this.allowTry&&this.resolvedSpec?I(zn(),this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?I(Dn(),this.resolvedSpec.servers.map(e=>I(qn(),e.url,this.onApiServerChange,e.url,e.description?I(Ln(),e.description):""))):"",this.serverUrl?I(Nn(),this.serverUrl,this.onApiServerChange,this.serverUrl):""):"","false"!==this.allowAuthentication&&this.resolvedSpec&&this.resolvedSpec.securitySchemes?I(Un(),this.resolvedSpec.securitySchemes,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.onSecurityChange):"",this.resolvedSpec&&this.resolvedSpec.tags?I(In(),this.resolvedSpec.tags.map(e=>I(Pn(),e.name,ue("
    ".concat(pe()(e.description?e.description:""),"
    ")),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e.paths,this.allowTry?this.allowTry:"true",this.matchPaths))):"")}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},specFile:{type:String,attribute:!1},serverUrl:{type:String,attribute:"server-url"},matchPaths:{type:String,attribute:"match-paths"},headingText:{type:String,attribute:"heading-text"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},layout:{type:String},theme:{type:String},logoUrl:{type:String,attribute:"logo-url"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"}}}attributeChangedCallback(e,t,n){"spec-url"==e&&t!==n&&this.loadSpec(n),super.attributeChangedCallback(e,t,n)}onSepcUrlChange(e){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){var t=this;this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var n=e.target.files[0],r=new FileReader;r.onload=function(e){try{var n=JSON.parse(r.result);t.loadSpec(n),t.shadowRoot.getElementById("spec-url").value=""}catch(e){alert("Unable to read or parse json"),console.log("Unable to read or parse json")}},r.readAsText(n)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onApiServerChange(){var e=this.shadowRoot.querySelector("input[name='api_server']:checked");null!==e&&(this.selectedServer=e.value,this.requestUpdate())}onSecurityChange(e){this.apiKeyName=e.detail.keyName,this.apiKeyValue=e.detail.keyValue,this.apiKeyLocation=e.detail.keyLocation}onSearchChange(e){this.matchPaths=e.target.value}loadSpec(e){var t,n=this;return(t=function*(){if(e){n.apiKeyName="",n.apiKeyValue="",n.apiKeyLocation="",n.selectedServer="",n.matchPaths="";try{n.loading=!0,n.loadFailed=!1;var t=yield function(e){return Tn.apply(this,arguments)}(e);n.loading=!1,null==t&&console.error("Unable to resolve the API spec. "),console.log(t),n.afterSpecParsedAndValidated(t)}catch(e){n.loading=!1,n.loadFailed=!0,n.resolvedSpec=null,n.requestUpdate(),console.error("Unable to resolve the API spec.. "+e.message)}}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){Rn(i,r,o,s,a,"next",e)}function a(e){Rn(i,r,o,s,a,"throw",e)}s(void 0)})})()}afterSpecParsedAndValidated(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.resolvedSpec=e,this.requestUpdate(),window.setTimeout(()=>{this.onApiServerChange()},0)}}customElements.define("rapi-doc",or);t.default={RapiDoc:or}}]); +const se=new WeakMap,ue=(e=>(...t)=>{const n=e(...t);return r.set(n,!0),n})(e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const n=se.get(t);if(void 0!==n&&b(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),se.set(t,{value:e,fragment:o})});function ce(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return ce=function(){return e},e}customElements.define("m-logo",class extends ae{render(){return L(ce())}});var le={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb:function(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert:function(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>186?"#333":"#fff"},opacity:function(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.r,", ").concat(n.r,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r=n.r+t,n.g=n.g+t,n.b=n.b+t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}},fe=n(8),pe=n.n(fe);function he(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return he=function(){return e},e}var de=L(he());function ve(){var e=Se(['',""]);return ve=function(){return e},e}function ye(){var e=Se(['"','"']);return ye=function(){return e},e}function me(){var e=Se(["",":"]);return me=function(){return e},e}function ge(){var e=Se(['
    ',"","
    "]);return ge=function(){return e},e}function be(){var e=Se(['
    ','
    ','
    ',"
    "]);return be=function(){return e},e}function we(){var e=Se(["",""]);return we=function(){return e},e}function xe(){var e=Se(['
    null
    ']);return xe=function(){return e},e}function _e(){var e=Se(["",'
    ',"
    "]);return _e=function(){return e},e}function Se(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oe(){var e=We(["",""]);return Oe=function(){return e},e}function ke(){var e=We(["",""]);return ke=function(){return e},e}function Ee(){var e=We(['
    ',"
    "]);return Ee=function(){return e},e}function Ae(){var e=We(["",""]);return Ae=function(){return e},e}function Te(){var e=We(["",""]);return Te=function(){return e},e}function je(){var e=We(['',""]);return je=function(){return e},e}function Ce(){var e=We(["",":"]);return Ce=function(){return e},e}function Pe(){var e=We(['',""]);return Pe=function(){return e},e}function Re(){var e=We(['',""]);return Re=function(){return e},e}function Le(){var e=We(['
    '," ","
    "]);return Le=function(){return e},e}function Ne(){var e=We(["",""]);return Ne=function(){return e},e}function Me(){var e=We(['',""]);return Me=function(){return e},e}function Ie(){var e=We([""," ",'
    ',"
    ",""]);return Ie=function(){return e},e}function Ue(){var e=We(['
    ',"
    "]);return Ue=function(){return e},e}function De(){var e=We(['
    ',"
    "]);return De=function(){return e},e}function qe(){var e=We(["[ ]"]);return qe=function(){return e},e}function Be(){var e=We(['{ } ',""]);return Be=function(){return e},e}function Fe(){var e=We(["",""]);return Fe=function(){return e},e}function ze(){var e=We(['
    null
    ']);return ze=function(){return e},e}function $e(){var e=We(["",'
    ',"
    "]);return $e=function(){return e},e}function We(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("json-tree",class extends ae{render(){return L(_e(),de,this.generateTree(this.data))}static get properties(){return{data:{type:Object}}}generateTree(e){if(null===e)return L(xe());if("object"==typeof e){var t=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(we(),Array.isArray(e)?"[ ]":"{ }"):L(be(),"array"===t?"array":"object",this.toggleExpand,"array"===t?"[":"{",Object.keys(e).map(n=>L(ge(),"pure_object"===t?L(me(),n):"",this.generateTree(e[n]))),"array"===t?"]":"}")}return L("string"==typeof e?ye():ve(),typeof e,e)}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.nextElementSibling.style.display="none",e.target.nextElementSibling.nextElementSibling.style.display="none"):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.nextElementSibling.style.display="block",e.target.nextElementSibling.nextElementSibling.style.display="block")}});function Ye(){var e=Ve([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--input-border-color);\n cursor:text;\n overflow:hidden;\n }\n .tag, .editor{\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg2);\n color:var(--fg2);\n border-radius:var(--border-radius);\n word-break: break-all;\n cursor: none;\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n background:var(--input-bg);\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n font-size:inherit;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return Ye=function(){return e},e}function He(){var e=Ve(['
    ']);return He=function(){return e},e}function Ve(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ae{render(){return L($e(),de,this.generateTree(this.data))}static get properties(){return{data:{type:Object}}}generateTree(e){if(null===e)return L(ze());if("object"==typeof e){var t,n,r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(Fe(),Array.isArray(e)?"[ ]":"{ }"):1===Object.keys(e).length&&":description"===Object.keys(e)[0]?L(Be(),e[":description"]):"array"===r&&"~|~"===e[0]?L(qe()):(Object.keys(e)[0].startsWith("OPTION")||"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?(t="",n=""):(t=L(De(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{"),n=L(Ue(),"array"===r?"]":"}")),L(Ie(),t,e[":description"]?L(Me(),e[":description"]):"",Object.keys(e)[0].startsWith("OPTION")?"":"inside-bracket",Object.keys(e).map(t=>L(Ne(),":description"!==t?L(Le(),"pure_object"===r?"ANY_OF"===t||"ONE_OF"===t?L(Re(),t.replace("_"," ")):t.startsWith("OPTION")?L(Pe(),t.replace("OPTION_"," ")):L(Ce(),t):"",this.generateTree(e[t])):"")),n))}return L(je(),e?L(Te(),e.split("~|~").map((e,t)=>L(Ae(),e?L(Ee(),0==t?"item-type "+e.substring(0,4):"m-markdown-small item-descr",0==t?L(ke(),e):L(Oe(),ue(pe()(e)))):""))):"")}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>e.style.display="none")):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>e.style.display=e.classList.contains("obj-descr")?"inline":"block"))}});function Ke(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ke=function(){return e},e}customElements.define("tag-input",class extends ae{render(){return L(He(),this.afterPaste,this.afterKeyDown,this.placeholder)}static get styles(){return[oe(Ye())]}static get properties(){return{placeholder:{type:String}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=document.createElement("span");""!==e.target.value.trim()&&(t.innerText=e.target.value,e.target.value="",t.classList.add("tag"),t.setAttribute("contenteditable","false"),this.shadowRoot.querySelector(".tags").insertBefore(t,e.target))}else 8===e.keyCode&&0===e.target.selectionStart&&e.target.previousSibling&&e.target.previousSibling.remove()}getValues(){var e=[],t=this.shadowRoot.querySelectorAll(".tag");for(var n of t)e.push(n.innerText);return e}});var Je=L(Ke());function Qe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Qe=function(){return e},e}var Ge=L(Qe());function Ze(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return Ze=function(){return e},e}var Xe=L(Ze(),le.color.inputReverseBg,le.color.inputReverseFg);function et(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return et=function(){return e},e}var tt=L(et());function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){var n={hasCircularRefs:"circular"===e.type,format:e.format?e.format:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOnly:e.readOnly?"🆁 ":"",writeOnly:e.writeOnly?"🆆 ":"",depricated:e.deprecated?"❌ ":"",default:0==e.default?"0 ":e.default?e.default:"",type:"",arrayType:"",allowedValues:"",constrain:"",html:""};if(n.hasCircularRefs)return n;if(e.enum){var r="";e.enum.map(function(e){r+="".concat(e,", ")}),n.type="enum",n.allowedValues=r.slice(0,-2)}else e.type&&(n.type=e.type);if("array"===e.type&&e.items){var o=e.items;if(n.arrayType="".concat(e.type," of ").concat(o.type),n.default=0==o.default?"0 ":o.default?o.default:"",o.enum){var i="";o.enum.map(function(e){i+="".concat(e,", ")}),n.allowedValues=i.slice(0,-2)}}else"integer"===e.type||"number"===e.type?(void 0!==e.minimum&&void 0!==e.maximum?n.constrain="".concat(e.exclusiveMinimum?">":"").concat(e.minimum," ⋯ ").concat(e.exclusiveMaximum?"<":""," ").concat(e.maximum):void 0!==e.minimum&&void 0===e.maximum?n.constrain="".concat(e.exclusiveMinimum?">":"≥").concat(e.minimum):void 0===e.minimum&&void 0!==e.maximum&&(n.constrain="".concat(e.exclusiveMaximum?"<":"≤").concat(e.maximum)),void 0!==e.multipleOf&&(n.constrain="(multiple of ".concat(e.multipleOf,")"))):"string"===e.type&&(void 0!==e.minLength&&void 0!==e.maxLength?n.constrain="(".concat(e.minLength," to ").concat(e.maxLength," chars)"):void 0!==e.minLength&&void 0===e.maxLength?n.constrain="(min:".concat(e.minLength," chars)"):void 0===e.minLength&&void 0!==e.maxLength&&(n.constrain="(max:".concat(e.maxLength," chars)")));t&&(t.readOnly&&(n.readOnly="🆁 "),t.writeOnly&&(n.writeOnly="🆆 "),t.deprecated&&(n.deprecated="❌ "));var a="".concat(n.type);return n.allowedValues&&(a+=":(".concat(n.allowedValues,")")),n.readOnly&&(a+=" 🆁"),n.writeOnly&&(a+=" 🆆"),n.deprecated&&(a+=" ❌"),n.constrain&&(a+=" ".concat(n.constrain)),n.format&&(a+=" ".concat(n.format)),n.pattern&&(a+=" ".concat(n.pattern)),n.html=a,n}}function rt(e,t){if(null!=e){if("object"===e.type||e.properties)for(var n in e.description&&(t[":description"]=e.description),e.properties)e.required&&e.required.includes(n)?t[n+"*"]=rt(e.properties[n],{}):t[n]=rt(e.properties[n],{});else if("array"===e.type||e.items)t=[rt(e.items,{})];else if(e.allOf){var r={};e.allOf.map(function(e){if("object"===e.type||e.properties){var t=rt(e,{});Object.assign(r,t)}else if("array"===e.type||e.items){var n=[rt(e,{})];Object.assign(r,n)}else{var o="prop"+Object.keys(r).length;r[o]="".concat(nt(e).html,"~|~").concat(e.description?e.description:"")}}),t=r}else{if(!e.anyOf&&!e.oneOf)return nt(e).html?"".concat(nt(e).html,"~|~").concat(e.description?e.description:""):"";var o=1,i={};e[e.anyOf?"anyOf":"oneOf"].map(function(e){if("object"===e.type||e.properties){var t=rt(e,{});i["OPTION_"+o]=t,o++}else if("array"===e.type||e.items){var n=[rt(e,{})];Object.assign(i,n)}else{var r="prop"+Object.keys(i).length;i[r]="".concat(nt(e).html,"~|~").concat(e.description?e.description:"")}}),t[e.anyOf?"ANY_OF":"ONE_OF"]=i}return t}}function ot(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,a=[];if(e)for(var s in e){var u="";u=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(e[s].value,void 0,2):e[s].value,a.push({exampleType:r,exampleValue:u})}else if(t){var c="";c=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(t,void 0,2):t,a.push({exampleType:r,exampleValue:c})}if(0==a.length)if(n)if(r.toLowerCase().includes("json")||r.toLowerCase().includes("*/*")){var l=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return;if("object"===t.type||t.properties)for(var o in t.properties)t.properties[o].deprecated||t.properties[o].readOnly&&!r.includeReadOnly||t.properties[o].writeOnly&&!r.includeWriteOnly||(n[o]=e(t.properties[o],{},r));else if("array"===t.type||t.items)n=[e(t.items,{},r)];else if(t.allOf){var i={};t.allOf.map(function(t){if("object"===t.type||t.properties){var n=e(t,{},r);Object.assign(i,n)}else if("array"===t.type||t.items){var o=[e(t,{},r)];Object.assign(i,o)}else{var a="prop"+Object.keys(i).length;i[a]=it(t)}}),n=i}else if(t.oneOf)t.oneOf.length>0&&(n=e(t.oneOf[0],{},r));else{if(!t.anyOf)return it(t);t.anyOf.length>0&&(n=e(t.anyOf[0],{},r))}return n}(n,{},{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleType:r,exampleValue:"text"===i?JSON.stringify(l,void 0,2):l})}else a.push({exampleType:r,exampleValue:""});else a.push({exampleType:r,exampleValue:""});return a}function it(e){if(e.example)return e.example;if(0===Object.keys(e).length)return null;var t=e.format||e.type||(e.enum?"enum":null);switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":return.5;case"string":return e.enum?e.enum[0]:e.pattern?e.pattern:"string";case"byte":return btoa("string");case"binary":return"binary";case"boolean":return!1;case"date":return new Date(0).toISOString().split("T")[0];case"date-time":case"dateTime":return new Date(0).toISOString();case"password":return"password";case"enum":return e.enum[0];case"uri":return"http://example.com";case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"email":return"user@example.com";case"hostname":return"example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"circular":return"CIRCULAR REF";default:return e.nullable?null:e.$ref?"data of type ".concat(e.$ref):(console.warn("Unknown schema value",e),"?")}}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new WeakSet;return(n,r)=>{if("object"==typeof r&&null!==r){if(t.has(r)){if(e>0)return{};var o=JSON.parse(JSON.stringify(r,at(e+1)));return t.add(o),o}t.add(r)}return r}}function st(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function ut(){var e=Bt(['"]);return ut=function(){return e},e}function ct(){var e=Bt(['
    ']);return ct=function(){return e},e}function lt(){var e=Bt(['
    Response Status: ','
    ','
    "]);return lt=function(){return e},e}function ft(){var e=Bt(['
    No Authentication Token provided
    ']);return ft=function(){return e},e}function pt(){var e=Bt(['
    Authentication:  
    send
    \'',"'
    in
    '","'
    with value
    '","'
    "]);return pt=function(){return e},e}function ht(){var e=Bt(['
    Not Set
    ']);return ht=function(){return e},e}function dt(){var e=Bt(["",""]);return dt=function(){return e},e}function vt(){var e=Bt(['
    API_Server:
    ','
    ','
    ',""]);return vt=function(){return e},e}function yt(){var e=Bt(['']);return yt=function(){return e},e}function mt(){var e=Bt(['']);return mt=function(){return e},e}function gt(){var e=Bt(['']);return gt=function(){return e},e}function bt(){var e=Bt([""," ",""]);return bt=function(){return e},e}function wt(){var e=Bt(["",""]);return wt=function(){return e},e}function xt(){var e=Bt(['
    ','
    ','
    "]);return xt=function(){return e},e}function _t(){var e=Bt(["",""]);return _t=function(){return e},e}function St(){var e=Bt(['
    '," DATA ","
    "," ",""]);return St=function(){return e},e}function Ot(){var e=Bt(['
    ',"
    "]);return Ot=function(){return e},e}function kt(){var e=Bt(['',""]);return kt=function(){return e},e}function Et(){var e=Bt(['']);return Et=function(){return e},e}function At(){var e=Bt([''],['']);return At=function(){return e},e}function Tt(){var e=Bt(['
    ','
    ','
    ','
    ',""]);return Tt=function(){return e},e}function jt(){var e=Bt(['
    ',"
    "]);return jt=function(){return e},e}function Ct(){var e=Bt(['
    ','
    ',"
    "]);return Ct=function(){return e},e}function Pt(){var e=Bt(['',""]);return Pt=function(){return e},e}function Rt(){var e=Bt(["",""]);return Rt=function(){return e},e}function Lt(){var e=Bt(["","
    "]);return Lt=function(){return e},e}function Nt(){var e=Bt(['']);return Nt=function(){return e},e}function Mt(){var e=Bt([''],['']);return Mt=function(){return e},e}function It(){var e=Bt(['*']);return It=function(){return e},e}function Ut(){var e=Bt(['
    ',"",'
    ','
    ','
    '," ","
    ",""]);return Ut=function(){return e},e}function Dt(){var e=Bt(["",""]);return Dt=function(){return e},e}function qt(){var e=Bt([""," "," "," "," ",'
    REQUEST
    '," "," "," "," "," ","
    "]);return qt=function(){return e},e}function Bt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ft(){var e=Zt(['
    ','
    ']);return Ft=function(){return e},e}function zt(){var e=Zt(['
    Content-Type: '," (Binary Data)
    "]);return zt=function(){return e},e}function $t(){var e=Zt(['
    EXAMPLE: ',""]);return $t=function(){return e},e}function Wt(){var e=Zt(['',''," ",""]);return Wt=function(){return e},e}function Yt(){var e=Zt(['
    Response Headers:
    ',"
    "]);return Yt=function(){return e},e}function Ht(){var e=Zt(['
    ',': '," ","
    ",""]);return Ht=function(){return e},e}function Vt(){var e=Zt(["",""]);return Vt=function(){return e},e}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t.title{\n font-family:var(--font-regular);\n font-size:var(--title-font-size);\n font-weight:bold;\n margin-bottom:8px;\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-head.divider{\n border-top: 1px solid var(--border-color);\n margin-top:10px;\n }\n .resp-status{ \n font-weight:bold;\n font-size:calc(var(--small-font-size) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--small-font-size) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .tab-buttons{\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n }\n .tab-btn{\n color:var(--fg);\n border:none;\n background-color:transparent;\n cursor:pointer;\n padding:1px;\n outline:none;\n font-size:var(--small-font-size);\n margin-right:16px;\n padding:1px;\n }\n .tab-btn.active{\n border-bottom: 3px solid var(--primary-color);\n font-weight:bold;\n color:var(--primary-color);\n }\n\n .tab-btn:hover{\n color:var(--primary-color);\n }\n .tab-content{\n margin:-1px 0 0 0;\n }\n .descr-text{\n color:var(--light-fg);\n font-family:var(--font-regular);\n }\n .tree{\n padding:16px 2px;\n }\n @media only screen and (min-width: 768px){\n .tree {\n padding:16px;\n }\n }
    RESPONSE
    ',"
    "]);return Gt=function(){return e},e}function Zt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ae{render(){return L(qt(),Je,Xe,de,Ge,tt,this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":L(Dt(),this.apiCallTemplate()))}constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},parser:{type:Object},accept:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},allowTry:{type:String,attribute:"allow-try"}}}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0==n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=nt(o.schema),a="";a=o.example?"0"==o.example||0==o.example?"0":o.example:i.default,r.push(L(Ut(),o.required?L(It()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.type).concat(i.format?" (".concat(i.format,")"):""),"array"===i.type?L(Mt(),e,o.name):L(Nt(),o.name,e,a),i.constrain?L(Lt(),i.constrain):"",i.allowedValues?L(Rt(),i.allowedValues):"",o.description?L(Pt(),ue(pe()(o.description||""))):""))}return L(Ct(),t,r)}requestBodyTemplate(){if(!this.request_body)return"";if(0==Object.keys(this.request_body).length)return"";var e=0,t={},n=this.request_body.description?L(jt(),ue(pe()(this.request_body.description||""))):"",r="",o="",i=[],a=!1,s={json:"",xml:""},u=this.request_body.content;for(var c in u){c.includes("json")?t[c]="json":c.includes("xml")?t[c]="xml":c.includes("text/plain")?t[c]="text":c.includes("form-urlencoded")?t[c]="form-urlencoded":c.includes("multipart/form-data")?t[c]="multipart-form-data":c.includes("application/octet-stream")&&(t[c]="octet-stream");var l=u[c],f="";if(c.includes("json")||c.includes("xml")||c.includes("text/plain")){try{l.schema=JSON.parse(JSON.stringify(l.schema,at()))}catch(e){return void console.error("Unable to resolve circular refs in schema",l.schema)}c.includes("json")?s.json=rt(l.schema,{}):c.includes("xml")&&(s.xml=rt(l.schema,{})),f=ot(l.schema?l.schema.examples:"",l.schema?l.schema.example:"",l.schema,c,!1,"text"),r+='\n ")}else if(c.includes("form")||c.includes("multipart-form")){for(var p in a=!0,l.schema.properties){var h=l.schema.properties[p],d=h.type,v="array"===h.type?h.items.type:"";i.push(L(Tt(),p,"array"===d?"".concat(d," of ").concat(v):"".concat(d," ").concat(h.format?" (".concat(h.format,")"):""),"array"===d?L(At(),d,p):L(Et(),"binary"===h.format?"file":"text",p,d),h.description?L(kt(),ue(pe()(h.description||""))):""))}o=L(Ot(),t[c],i)}e++}return L(St(),a?"form_data":"body_data",a?"FORM":"BODY",this.request_body.required?"(required)":"",n,a?L(_t(),o):L(xt(),this.activateTab,1===e?"".concat(Object.keys(t)[0]):L(wt(),Object.keys(t).map(e=>L(bt(),"json"===t[e]?L(gt(),t[e],this.onMimeTypeChange):L(mt(),t[e],this.onMimeTypeChange),t[e]))),ue(r),Object.keys(t).map(e=>L(yt(),t[e],"json"===t[e]?"block":"none",s[t[e]]))))}apiCallTemplate(){return L(vt(),this.selectedServer?L(dt(),this.selectedServer):L(ht()),this.apiKeyValue&&this.apiKeyName?L(pt(),this.apiKeyName,this.apiKeyLocation,this.apiKeyValue.substring(0,3)+"***"):L(ft()),this.onTryClick,""===this.responseMessage?"":L(lt(),this.responseStatus,this.responseMessage,this.clearResponseData,this.activateTab,this.responseIsBlob?L(ct(),this.downloadResponseBlob):L(ut(),this.responseText),this.responseHeaders,this.curlSyntax))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){var t=e.currentTarget.parentNode.querySelector(".tab-btn.active"),n=e.target;t.classList.remove("active"),e.target.classList.add("active");var r=this.shadowRoot.getElementById(n.attributes.content_id.value),o=e.currentTarget.parentNode.querySelectorAll(".tab-content");r&&(r.style.display="flex",o.forEach(function(e){e.attributes.id.value!==n.attributes.content_id.value&&(e.style.display="none")}))}}onMimeTypeChange(e){var t=e.target.closest(".tab-panel").querySelectorAll("textarea.request-body-param"),n=e.target.closest(".tab-panel").querySelectorAll("schema-tree");[...t].map(function(t){t.style.display=t.classList.contains(e.target.value)?"block":"none"}),[...n].map(function(t){t.style.display=t.classList.contains(e.target.value)?"block":"none"})}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i,a=n,s=e.target,u="",c="",l="",f=e.target.closest(".request-panel"),p=[...f.querySelectorAll(".request-param[data-ptype='path']")],h=[...f.querySelectorAll(".request-param[data-ptype='query']")],d=[...f.querySelectorAll(".request-param[data-ptype='header']")],v=[...f.querySelectorAll(".request-form-param")],y=[...f.querySelectorAll(".request-body-param")];if(t=a.path,r={mode:"cors",method:n.method.toUpperCase(),headers:{}},p.map(function(e){t=t.replace("{"+e.dataset.pname+"}",e.value)}),h.length>0){var m=new URLSearchParams("");h.map(function(e){if("false"===e.dataset.array)""!==e.value&&m.append(e.dataset.pname,e.value);else{var t=e.getValues();for(var n of t)m.append(e.dataset.pname,n)}}),t="".concat(t,"?").concat(m.toString())}if(n.apiKeyValue&&n.apiKeyName&&"query"===n.apiKeyLocation&&(t="".concat(t).concat(t.includes("?")?"&":"?").concat(n.apiKeyName,"=").concat(encodeURIComponent(n.apiKeyValue))),o=!1===(t="".concat(n.selectedServer.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,location.href).href:t,i="curl -X ".concat(n.method.toUpperCase(),' "').concat(o,'" '),n.accept&&(r.headers.Accept=n.accept,u+=' -H "Accept: '.concat(n.accept,'"')),d.map(function(e){e.value&&(r.headers[e.dataset.pname]=e.value,u+=' -H "'.concat(r.headers[e.dataset.pname],": ").concat(e.value,'"'))}),n.apiKeyValue&&n.apiKeyName&&"header"===n.apiKeyLocation&&(r.headers[n.apiKeyName]=n.apiKeyValue,u+=' -H "'.concat(n.apiKeyName,": ").concat(n.apiKeyValue,'"')),v.length>=1){var g=f.querySelector("form"),b=new URLSearchParams,w=new FormData;v.map(function(e){if("false"===e.dataset.array)"file"!==e.type?""!==e.value&&(b.append(e.dataset.pname,e.value),w.append(e.dataset.pname,e.value),l+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'"')):e.files[0]&&(b.append(e.dataset.pname,e.files[0]),w.append(e.dataset.pname,e.files[0]),l+=' -F "'.concat(e.dataset.pname,"=@").concat(e.value,'"'));else{var t=e.getValues();for(var n of t)b.append(e.dataset.pname,n),w.append(e.dataset.pname,n),l+=' -F "'.concat(e.dataset.pname,"=").concat(n,'"')}}),g.classList.contains("form-urlencoded")?(r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",u+=' -H "Content-Type: application/x-www-form-urlencoded"',r.body=b):(u+=' -H "Content-Type: multipart/form-data"',r.body=w)}if(y.length>=1)if(1===y.length)r.headers["Content-Type"]=y[0].dataset.ptype,u+=' -H "Content-Type: '.concat(y[0].dataset.ptype,'"'),r.body=y[0].value,c=" -d ".concat(JSON.stringify(y[0].value.replace(/(\r\n|\n|\r)/gm,"")));else{var x=e.target.closest(".request-panel").querySelector("input[name='request_body_type']:checked"),_=null===x?"json":x.value,S="";"json"===_?(S=f.querySelector(".request-body-param.json").value,r.headers["Content-Type"]="application/json; charset=utf-8",u+=' -H "Content-Type: application/json"'):"xml"===_?(S=f.querySelector(".request-body-param.xml").value,r.headers["Content-Type"]="application/xml; charset=utf-8",u+=' -H "Content-Type: application/xml"'):"text"===_&&(S=f.querySelector(".request-body-param.text").value,r.headers["Content-Type"]="text/plain; charset=utf-8",u+=' -H "Content-Type: text/plain"'),r.body=S,c=" -d ".concat(JSON.stringify(S.replace(/(\r\n|\n|\r)/gm,"")))}a.responseUrl="",a.responseHeaders="",a.curlSyntax="",a.responseStatus="success",a.responseIsBlob=!1,a.respContentDisposition="",a.responseBlobUrl&&(URL.revokeObjectURL(a.responseBlobUrl),a.responseBlobUrl=""),a.curlSyntax="".concat(i," ").concat(u," ").concat(c," ").concat(l);try{s.disabled=!0;var O=yield fetch(t,r);s.disabled=!1,a.responseStatus=O.ok?"success":"error",a.responseMessage="".concat(O.statusText,":").concat(O.status),a.responseUrl=O.url,O.headers.forEach(function(e,t){a.responseHeaders=a.responseHeaders+"".concat(t.trim(),": ").concat(e)+"\n"});var k=O.headers.get("content-type");if(k)if(k.includes("json"))O.json().then(function(e){a.responseText=JSON.stringify(e,null,2)});else if(k.includes("octet-stream")){a.responseIsBlob=!0;var E=O.headers.get("content-disposition");a.respContentDisposition=E?E.split("filename=")[1]:"filename",O.blob().then(function(e){a.responseBlobUrl=URL.createObjectURL(e)})}else O.text().then(function(e){a.responseText=e});else O.text().then(function(e){a.responseText=e})}catch(e){s.disabled=!1,a.responseMessage=e.message+" (CORS or Network Issue)"}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){st(i,r,o,a,s,"next",e)}function s(e){st(i,r,o,a,s,"throw",e)}a(void 0)})})()}downloadResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}});function Xt(){var e=cn([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .head .descr{\n font-size: var(--small-font-size);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n }\n .m-endpoint > .head.put:hover,\n .m-endpoint > .head.put.expanded{\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.post:hover,\n .m-endpoint > .head.post.expanded{\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.get:hover,\n .m-endpoint > .head.get.expanded{\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n .m-endpoint > .head.delete:hover,\n .m-endpoint > .head.delete.expanded{\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch:hover,\n .m-endpoint > .head.patch.expanded{\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n }\n .method.delete{ border: 2px solid var(--delete-color);}\n .method.patch{ border: 2px solid var(--patch-color); }\n .method.put{ border: 2px solid var(--put-color); }\n .method.post{ border: 2px solid var(--post-color); }\n .method.get{ border: 2px solid var(--get-color); }\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .descr{\n display: flex;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return Xt=function(){return e},e}function en(){var e=cn(['
    ',"
    "]);return en=function(){return e},e}function tn(){var e=cn(['
    ',"
    ","
    "]);return tn=function(){return e},e}function nn(){var e=cn(['
    ','
    ']);return nn=function(){return e},e}function rn(){var e=cn(['deprecated']);return rn=function(){return e},e}function on(){var e=cn([""]);return on=function(){return e},e}function an(){var e=cn([""]);return an=function(){return e},e}function sn(){var e=cn(["",""]);return sn=function(){return e},e}function un(){var e=cn(["","",'
    \x3c!-- Endpoint Head --\x3e
    ','
    ',"
    ",'
    ',"
    \x3c!-- Endpoint Body --\x3e ","
    "]);return un=function(){return e},e}function cn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-response",class extends ae{render(){return L(Gt(),de,Ge,Je,Xe,this.responseTemplate())}static get properties(){return{responses:{type:Object},parser:{type:Object}}}responseTemplate(){if(!this.responses)return"";var e={},t={},n={};for(var r in this.responses){var o={};for(var i in this.responses[r].content){var a=this.responses[r].content[i],s=rt(a.schema,{}),u=ot(a.schema?a.schema.examples:"",a.schema?a.schema.example:"",a.schema,i,!1,"json");o[i]={description:this.responses[r].description,examples:u,schemaTree:s},i.includes("json")&&i,e[r]=i,0}var c=[];for(var l in this.responses[r].headers)c.push(Jt({name:l},this.responses[r].headers[l]));t[r]=c,n[r]=o}return L(Vt(),Object.keys(this.responses).map((e,r)=>L(Ht(),0===r?"top-gap":"divider",e,this.responses[e].description,t[e]&&t[e].length>0?L(Yt(),t[e].map(e=>L(Wt(),e.name,ue(pe()(e.description||"")),e.schema&&e.schema.example?L($t(),e.schema.example):""))):"",Object.keys(n[e]).map(t=>t.includes("octet-stream")?L(zt(),t):L(Ft(),e,t,this.activateTab,e,t,e,t,t,e,t,n[e][t].examples[0].exampleValue,e,t,n[e][t].schemaTree)))))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){e.currentTarget.parentNode.querySelector(".tab-btn.active").classList.remove("active"),e.target.classList.add("active");var t=e.target.attributes.content_id.value,n=e.currentTarget.parentNode.querySelectorAll(".tab-content");t&&n.forEach(function(e){e.style.display=e.attributes.id.value===t?"flex":"none"})}}});function ln(){var e=pn(['']);return ln=function(){return e},e}function fn(){var e=pn(["",""]);return fn=function(){return e},e}function pn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-point",class extends ae{render(){return L(un(),de,window.innerWidth>=768?L(sn(),"row"===this.layout?L(an()):L(on())):"",this.path.method,this.path.expanded?"expanded":"collapsed",this.toggleExpand,this.path.method,this.path.expanded?"expanded":"collapsed",this.path.method,this.path.method,this.path.deprecated?"deprecated":"",this.path.path,this.path.deprecated?L(rn()):"",ue(pe()(this.path.summary||"")),this.path.expanded?L(nn(),this.path.method,this.path.summary||this.path.description?L(tn(),ue(pe()(this.path.summary||"")),this.path.summary!==this.path.description?L(en(),ue(pe()(this.path.description||""))):""):"",this.path.method,this.path.path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,this.path.parameters,this.path.requestBody,this.allowTry,this.accept,this.path.responses):"")}static get styles(){return[oe(Xt())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}toggleExpand(){if(this.path.expanded)this.path.expanded=!1;else{this.path.expanded=!0;var e="";for(var t in this.path.responses)for(var n in this.path.responses[t].content)e=e+n+", ";e=e.replace(/,\s*$/,""),this.accept=e}this.requestUpdate()}});function hn(){var e=On(['
    Refresh URL: ',"
    "]);return hn=function(){return e},e}function dn(){var e=On(['
    Token URL: ',"
    "]);return dn=function(){return e},e}function vn(){var e=On(['
    Auth URL: ',"
    "]);return vn=function(){return e},e}function yn(){var e=On([""," "," ",'
    ']);return yn=function(){return e},e}function mn(){var e=On(["
    ","
    "]);return mn=function(){return e},e}function gn(){var e=On(["Send 'Authorization' in header which will contains the word 'Bearer' followed by a space and a Token String.
    "]);return gn=function(){return e},e}function bn(){var e=On(["Send 'Authorization' in header which will contains the word 'Basic' followed by a space and a base64-encoded string username:password.
    "]);return bn=function(){return e},e}function wn(){var e=On(["Send '","' in '","' with the given value
    "]);return wn=function(){return e},e}function xn(){var e=On(['
    ',"
    "]);return xn=function(){return e},e}function _n(){var e=On(['
    ',": "," ","
    "," "," "," ",""]);return _n=function(){return e},e}function Sn(){var e=On([""," "," ",'
    AUTHENTICATION
    ',"
    TypeAuthentication Procedure
    "]);return Sn=function(){return e},e}function On(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-points",class extends ae{render(){return L(fn(),this.paths.filter(e=>!this.matchPaths||"".concat(e.method," ").concat(e.path).includes(this.matchPaths)).map(e=>L(ln(),this.selectedServer,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation,this.layout,e,this.allowTry?this.allowTry:"true")))}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},paths:{type:Object},matchPaths:{type:String,attribute:"match-paths"},allowTry:{type:String,attribute:"allow-try"}}}});customElements.define("security-schemes",class extends ae{render(){return L(Sn(),de,Je,Xe,Object.keys(this.schemes).map(e=>L(_n(),this.schemes[e].type,this.schemes[e].scheme,this.schemes[e].description?L(xn(),ue(pe()(this.schemes[e].description||""))):"","apiKey"===this.schemes[e].type?L(wn(),this.schemes[e].name,this.schemes[e].in,e,this.schemes[e].type,this.schemes[e].in,this.schemes[e].name,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"basic"===this.schemes[e].scheme?L(bn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"bearer"===this.schemes[e].scheme?L(gn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","oauth2"===this.schemes[e].type?L(mn(),Object.keys(this.schemes[e].flows).map(t=>L(yn(),this.schemes[e].flows[t].authorizationUrl?L(vn(),this.schemes[e].flows[t].authorizationUrl):"",this.schemes[e].flows[t].tokenUrl?L(dn(),this.schemes[e].flows[t].tokenUrl):"",this.schemes[e].flows[t].refreshUrl?L(hn(),this.schemes[e].flows[t].refreshUrl):"",e,e))):"")))}static get properties(){return{schemes:{type:Object},selectedApiKeyName:{type:String,attribute:"selected-api-key-name"},selectedApiKeyValue:{type:String,attribute:"selected-api-key-value"}}}dispatchChange(e){var t=e.target.closest(".".concat(e.target.dataset.class));if(t){var n=t.dataset.type,r=t.dataset.in,o=t.dataset.name,i=t.dataset.inputname,a="";if("CLEAR"===e.target.dataset.action){var s=t.querySelector("input[name=".concat(i,"-token]"));s&&(s.value="")}else if("apiKey"===n){var u=t.querySelector("input[name=".concat(i,"-token]"));u&&(a=u.value)}else if("http"===n){var c=t.dataset.scheme;if("basic"===c){var l=t.querySelector("input[name=".concat(i,"-username]")),f=t.querySelector("input[name=".concat(i,"-password]"));l&&f&&(a="Basic "+btoa(l.value+":"+f.value))}else if("bearer"===c){var p=t.querySelector("input[name=".concat(i,"-bearer-token]"));p&&(a="Bearer "+p.value)}}var h=new CustomEvent("change",{detail:{keyType:n,keyName:o,keyValue:a,keyLocation:r}});this.dispatchEvent(h)}}});var kn=n(163),En=n.n(kn),An=n(95),Tn=n.n(An);function jn(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Cn(){var e;return e=function*(e){var t,n,r,o,i="";r={patch:!0,warnOnly:!0};try{"string"==typeof e?(i=(n=yield Tn.a.convertUrl(e,r)).source.trim()).startsWith("/")&&(i=new URL("."+i,location.href).pathname):(n=yield Tn.a.convertObj(e,r),i=new URL(location.href).pathname),o={resolveCirculars:!1,location:i},t=(yield En.a.resolveRefs(n.openapi,o)).resolved}catch(e){console.info("%c There was an issue while parsing the spec %o ","color:orangered",e)}console.info("%c Spec Conversion - Success !!! ","color:cornflowerblue");var a,s,u=t,c=["get","put","post","delete","patch","options","head"],l=[],f=0,p=function(e){var t=u.paths[e].parameters,n={summary:u.paths[e].summary,description:u.paths[e].description,servers:u.paths[e].servers?u.paths[e].servers:[],parameters:u.paths[e].parameters?u.paths[e].parameters:[]};c.forEach(function(r){var o,i,a;if(u.paths[e][r]){var s=u.paths[e][r];if(s.tags)i=s.tags[0],u.tags&&(a=u.tags.find(function(e){return e.name===i}));else{var c=e.indexOf("/",1);-1===c?c=e.length-1:c-=1,i=e.substr(1,c)}(o=l.find(e=>e.name==i))||(o={show:!0,name:i,description:a?a.description:"",paths:[]},l.push(o));var p=s.summary?s.summary:"",h=s.description?s.description:"";if(!p&&h)if(h.length>100){var d=-1;(-1===(d=h.indexOf("\n"))||d>100)&&(d=h.indexOf(". ")),(-1===d||d>100)&&(d=h.indexOf(".")),p=-1===d||d>100?h:h.substr(0,d)}else p=h;var v=[];v=t?s.parameters?t.filter(e=>{if(!s.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(s.parameters):t.slice(0):s.parameters?s.parameters.slice(0):[],o.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:p,method:r,description:s.description,path:e,operationId:s.operationId,requestBody:s.requestBody,parameters:v,servers:s.servers?n.servers.concat(s.servers):n.servers,responses:s.responses,deprecated:s.deprecated,security:s.security,commonSummary:n.summary,commonDescription:n.description}),f++}})};for(var h in u.paths)p(h);return a=u.components?u.components.securitySchemes:{},u.servers?u.servers.map(function(e){var t=e.url.trim().toLowerCase();e.url&&"http"!==t.substr(0,4)&&("//"==t.substr(0,2)?e.url=location.protocol+e.url:e.url=location.origin+e.url)}):u.servers=[{url:location.origin}],s=u.servers,l.sort((e,t)=>e.namet.name?1:0),{info:u.info,tags:l,externalDocs:u.externalDocs,securitySchemes:a,servers:s,basePath:u.basePath,totalPathCount:f}},(Cn=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){jn(i,r,o,a,s,"next",e)}function s(e){jn(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function Pn(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Rn(){var e=rr(['
    ','
    ','
    ']);return Rn=function(){return e},e}function Ln(){var e=rr(["",""]);return Ln=function(){return e},e}function Nn(){var e=rr(['
    ']);return Nn=function(){return e},e}function Mn(){var e=rr([' ',"
    "]);return Mn=function(){return e},e}function In(){var e=rr(["- ",""]);return In=function(){return e},e}function Un(){var e=rr([' '," ","
    "]);return Un=function(){return e},e}function Dn(){var e=rr(["",""]);return Dn=function(){return e},e}function qn(){var e=rr(['"]);return qn=function(){return e},e}function Bn(){var e=rr(['
    URL: ',"
    "]);return Bn=function(){return e},e}function Fn(){var e=rr(['
    Name: ',"
    "]);return Fn=function(){return e},e}function zn(){var e=rr(['
    Email: ',"
    "]);return zn=function(){return e},e}function $n(){var e=rr(['
    '," "," ","
    "]);return $n=function(){return e},e}function Wn(){var e=rr(["",""]);return Wn=function(){return e},e}function Yn(){var e=rr(["",""]);return Yn=function(){return e},e}function Hn(){var e=rr(['',""]);return Hn=function(){return e},e}function Vn(){var e=rr(['
    '," ","
    "," "," ","
    "]);return Vn=function(){return e},e}function Kn(){var e=rr(['
    Unable to load the Spec
    ']);return Kn=function(){return e},e}function Jn(){var e=rr(['
    Loading ...
    ']);return Jn=function(){return e},e}function Qn(){var e=rr(['
    ']);return Qn=function(){return e},e}function Gn(){var e=rr([' ']);return Gn=function(){return e},e}function Zn(){var e=rr(['
    ']);return Zn=function(){return e},e}function Xn(){var e=rr(['
    ','
    '," ",'',"
    "]);return Xn=function(){return e},e}function er(){var e=rr([""]);return er=function(){return e},e}function tr(){var e=rr([""]);return tr=function(){return e},e}function nr(){var e=rr([""," "," "," "," ","",'
    '," "," "," "," "," ",'
    ']);return nr=function(){return e},e}function rr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}class or extends ae{render(){return L(nr(),de,Xe,Ge,Je,"dark"===this.theme?L(tr()):L(er()),this.primaryColor?"".concat(this.primaryColor):"#FF791A",le.color.brightness(this.primaryColor?this.primaryColor:"#FF791A",-30),this.primaryColor?"".concat(le.color.invert(this.primaryColor)):"#ffffff",this.headerColor?"".concat(this.headerColor):"#444",this.headerColor?"".concat(le.color.invert(this.headerColor)):"#ccc",this.layout?"".concat(this.layout):"row",this.monoFont?"".concat(this.monoFont):"Monaco, 'Andale Mono', 'Roboto Mono', Consolas",this.regularFont?"".concat(this.regularFont):"rapidoc, Helvetica, Arial",this.headerColor?le.color.brightness(this.headerColor,-20):le.color.inputReverseBg,"false"===this.showHeader?"":L(Xn(),this.headingText,"false"===this.allowSpecUrlLoad?"":L(Zn(),this.specUrl?this.specUrl:"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":L(Gn(),this.specFile?this.specFile:"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch?"":L(Qn(),this.onSearchChange)),!0===this.loading?L(Jn()):"",!0===this.loadFailed?L(Kn()):"","false"!==this.showInfo&&this.resolvedSpec&&this.resolvedSpec.info?L(Vn(),this.resolvedSpec.info.title,this.resolvedSpec.info.version?L(Hn(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?L(Yn(),ue("
    ".concat(pe()(this.resolvedSpec.info.description),"
    "))):"",this.resolvedSpec.info.termsOfService?L(Wn(),ue("
    Terms:
    ".concat(pe()(this.resolvedSpec.info.termsOfService),""))):"",this.resolvedSpec.info.contact?L($n(),this.resolvedSpec.info.contact.email?L(zn(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?L(Fn(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?L(Bn(),this.resolvedSpec.info.contact.url):""):""):"","false"!==this.allowTry&&this.resolvedSpec?L(qn(),this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?L(Dn(),this.resolvedSpec.servers.map(e=>L(Un(),e.url,this.onApiServerChange,e.url,e.description?L(In(),e.description):""))):"",this.serverUrl?L(Mn(),this.serverUrl,this.onApiServerChange,this.serverUrl):""):"","false"!==this.allowAuthentication&&this.resolvedSpec&&this.resolvedSpec.securitySchemes?L(Nn(),this.resolvedSpec.securitySchemes,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.onSecurityChange):"",this.resolvedSpec&&this.resolvedSpec.tags?L(Ln(),this.resolvedSpec.tags.map(e=>L(Rn(),e.name,ue("
    ".concat(pe()(e.description?e.description:""),"
    ")),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e.paths,this.allowTry?this.allowTry:"true",this.matchPaths))):"")}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},specFile:{type:String,attribute:!1},serverUrl:{type:String,attribute:"server-url"},matchPaths:{type:String,attribute:"match-paths"},headingText:{type:String,attribute:"heading-text"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},layout:{type:String},theme:{type:String},logoUrl:{type:String,attribute:"logo-url"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"}}}attributeChangedCallback(e,t,n){"spec-url"==e&&t!==n&&this.loadSpec(n),super.attributeChangedCallback(e,t,n)}onSepcUrlChange(e){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){var t=this;this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var n=e.target.files[0],r=new FileReader;r.onload=function(e){try{var n=JSON.parse(r.result);t.loadSpec(n),t.shadowRoot.getElementById("spec-url").value=""}catch(e){alert("Unable to read or parse json"),console.log("Unable to read or parse json")}},r.readAsText(n)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onApiServerChange(){var e=this.shadowRoot.querySelector("input[name='api_server']:checked");null!==e&&(this.selectedServer=e.value,this.requestUpdate())}onSecurityChange(e){this.apiKeyName=e.detail.keyName,this.apiKeyValue=e.detail.keyValue,this.apiKeyLocation=e.detail.keyLocation}onSearchChange(e){this.matchPaths=e.target.value}loadSpec(e){var t,n=this;return(t=function*(){if(e){n.apiKeyName="",n.apiKeyValue="",n.apiKeyLocation="",n.selectedServer="",n.matchPaths="";try{n.loading=!0,n.loadFailed=!1;var t=yield function(e){return Cn.apply(this,arguments)}(e);n.loading=!1,null==t&&console.error("Unable to resolve the API spec. "),console.log(t),n.afterSpecParsedAndValidated(t)}catch(e){n.loading=!1,n.loadFailed=!0,n.resolvedSpec=null,n.requestUpdate(),console.error("Unable to resolve the API spec.. "+e.message)}}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Pn(i,r,o,a,s,"next",e)}function s(e){Pn(i,r,o,a,s,"throw",e)}a(void 0)})})()}afterSpecParsedAndValidated(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.resolvedSpec=e,this.requestUpdate(),window.setTimeout(()=>{this.onApiServerChange()},0)}}customElements.define("rapi-doc",or);t.default={RapiDoc:or}}]); //# sourceMappingURL=rapidoc-min.js.map \ No newline at end of file diff --git a/dist/rapidoc-min.js.gz b/dist/rapidoc-min.js.gz index fc143f3f..6a62396e 100644 Binary files a/dist/rapidoc-min.js.gz and b/dist/rapidoc-min.js.gz differ diff --git a/dist/rapidoc-min.js.map b/dist/rapidoc-min.js.map index f39a89a4..d2c5860f 100644 --- a/dist/rapidoc-min.js.map +++ b/dist/rapidoc-min.js.map @@ -1 +1 @@ -{"version":3,"file":"rapidoc-min.js","sources":["webpack:///rapidoc-min.js"],"mappings":"AAAA;;;;;;;AAwzGA;;;;;;;;AAsjaA;;AAiuvBA;;;;;;;;;;;;;AA8oQA;;;;;;;;;;;;;;AA2TA;;;;;;;;;;;;;AAuGA;;;;;;;;;;;;;;AA0FA;;;;;;;;;;;;;AA8cA;;;;;;;;;;;;;AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA;;;;;;;;;;;;;;AA+KA;;;;;;;;;;;;;;AA4nCA;;;;;;;;;;;;;;AA0MA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"rapidoc-min.js","sources":["webpack:///rapidoc-min.js"],"mappings":"AAAA;;;;;;;AA4lKA;;;;;;;;AAu6fA;;AAiuvBA;;;;;;;;;;;;;AAw1PA;;;;;;;;;;;;;;AA2TA;;;;;;;;;;;;;AAuGA;;;;;;;;;;;;;;AA0FA;;;;;;;;;;;;;AA8cA;;;;;;;;;;;;;AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA;;;;;;;;;;;;;;AA+KA;;;;;;;;;;;;;;AA4nCA;;;;;;;;;;;;;;AA0MA","sourceRoot":""} \ No newline at end of file diff --git a/dist/rapidoc-min.js.map.gz b/dist/rapidoc-min.js.map.gz index e1c41b2f..3ef92c8d 100644 Binary files a/dist/rapidoc-min.js.map.gz and b/dist/rapidoc-min.js.map.gz differ diff --git a/dist/report.html b/dist/report.html index 6265fe26..62d891a8 100644 --- a/dist/report.html +++ b/dist/report.html @@ -3,7 +3,8 @@ - Webpack Bundle Analyzer + rapidoc [18 Sep 2019 at 10:15] + @@ -56,7 +57,7 @@
    diff --git a/docs/examples/list.html b/docs/examples/list.html index 684d2bd3..54ac89ff 100644 --- a/docs/examples/list.html +++ b/docs/examples/list.html @@ -27,7 +27,7 @@ -