|
|
|
(()=>{var n={9078:(n,e,t)=>{"use strict";var l=t(159),r=t(983);function i(n){if(!(this instanceof i))return new i(n);this.headers=n.headers,this.negotiator=new l(n)}function a(n){return-1===n.indexOf("/")?r.lookup(n):n}function o(n){return"string"==typeof n}n.exports=i,i.prototype.type=i.prototype.types=function(n){var e=n;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}if(!e||0===e.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return e[0];var l=e.map(a),r=this.negotiator.mediaTypes(l.filter(o)),i=r[0];return!!i&&e[l.indexOf(i)]},i.prototype.encoding=i.prototype.encodings=function(n){var e=n;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return e&&0!==e.length?this.negotiator.encodings(e)[0]||!1:this.negotiator.encodings()},i.prototype.charset=i.prototype.charsets=function(n){var e=n;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return e&&0!==e.length?this.negotiator.charsets(e)[0]||!1:this.negotiator.charsets()},i.prototype.lang=i.prototype.langs=i.prototype.language=i.prototype.languages=function(n){var e=n;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return e&&0!==e.length?this.negotiator.languages(e)[0]||!1:this.negotiator.languages()}},9030:(n,e,t)=>{var l=t(1496),r=t(6017);n.exports=function(n,e,t){l(e).reduce((function(n,e){return r(n,e,n[e.key],t)}),n)}},1496:n=>{var e=/^[^\[]*/,t=/^\[(\d+)\]/,l=/^\[([^\]]+)\]/;n.exports=function(n){function r(){return[{type:"object",key:n,last:!0}]}var i=e.exec(n)[0];if(!i)return r();for(var a=n.length,o=i.length,u={type:"object",key:i},s=[u];o<a;){var c;if("["!==n[o]||"]"!==n[o+1])if(null===(c=t.exec(n.substring(o)))){if(null===(c=l.exec(n.substring(o))))return r();o+=c[0].length,u.nextType="object",u={type:"object",key:c[1]},s.push(u)}else o+=c[0].length,u.nextType="array",u={type:"array",key:parseInt(c[1],10)},s.push(u);else if(o+=2,u.append=!0,o!==a)return r()}return u.last=!0,s}},6017:n=>{function e(n){return void 0===n?"undefined":Array.isArray(n)?"array":"object"==typeof n?"object":"scalar"}function t(n,l,r,i){switch(e(r)){case"undefined":l.append?n[l.key]=[i]:n[l.key]=i;break;case"array":n[l.key].push(i);break;case"object":return t(r,{type:"object",key:"",last:!0},r[""],i);case"scalar":n[l.key]=[n[l.key],i]}return n}n.exports=function(n,l,r,i){if(l.last)return t(n,l,r,i);var a;switch(e(r)){case"undefined":return"array"===l.nextType?n[l.key]=[]:n[l.key]=Object.create(null),n[l.key];case"object":return n[l.key];case"array":return"array"===l.nextType?r:(a=Object.create(null),n[l.key]=a,r.forEach((function(n,e){void 0!==n&&(a[""+e]=n)})),a);case"scalar":return(a=Object.create(null))[""]=r,n[l.key]=a,a}}},2521:n=>{"use strict";function e(n,t,l){for(var r=0;r<n.length;r++){var i=n[r];l>0&&Array.isArray(i)?e(i,t,l-1):t.push(i)}return t}function t(n,e){for(var l=0;l<n.length;l++){var r=n[l];Array.isArray(r)?t(r,e):e.push(r)}return e}n.exports=function(n,l){return null==l?t(n,[]):e(n,[],l)}},46:(n,e,t)=>{"use strict";var l=t(412)("body-parser"),r=Object.create(null);function i(n){return function(){return function(n){var e=r[n];if(void 0!==e)return e;switch(n){case"json":e=t(6035);break;case"raw":e=t(187);break;case"text":e=t(6560);break;case"urlencoded":e=t(4861)}return r[n]=e}(n)}}e=n.exports=l.function((function(n){var t=Object.create(n||null,{type:{configurable:!0,enumerable:!0,value:void 0,writable:!0}}),l=e.urlencoded(t),r=e.json(t);return function(n,e,t){r(n,e,(function(r){if(r)return t(r);l(n,e,t)}))}}),"bodyParser: use individual json/urlencoded middlewares"),Object.defineProperty(e,"json",{configurable:!0,enumerable:!0,get:i("json")}),Object.defineProperty(e,"raw",{configurable:!0,enumerable:!0,get:i("raw")}),Object.defineProperty(e,"text",{configurable:!0,enumerable:!0,get:i("text")}),Object.defineProperty(e,"urlencoded",{configurable:!0,enumerable:!0,get:i("urlencoded")})},3211:(n,e,t)=>{"use strict";var l=t(9009),r=t(6149),i=t(1045),a=t
|