@feathersjs/client 4.5.9 → 4.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/dist/authentication.js +343 -576
- package/dist/authentication.js.map +1 -1
- package/dist/authentication.min.js +1 -1
- package/dist/core.js +1593 -1812
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +5020 -3936
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/dist/primus.js +281 -513
- package/dist/primus.js.map +1 -1
- package/dist/primus.min.js +1 -1
- package/dist/rest.js +3412 -2343
- package/dist/rest.js.map +1 -1
- package/dist/rest.min.js +1 -1
- package/dist/socketio.js +287 -513
- package/dist/socketio.js.map +1 -1
- package/dist/socketio.min.js +1 -1
- package/package.json +24 -24
package/dist/feathers.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.feathers=t():e.feathers=t()}(this,(function(){return n={},e.m=t=[function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(29),i=n(2).Unavailable,c=n(1)._,a=n(1).stripSlashes,s=n(2).convert;function u(e){if("ECONNREFUSED"===e.code)throw new i(e.message,c.pick(e,"address","port","config"));throw s(e)}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=a(t.name),this.options=t.options,this.connection=t.connection,this.base="".concat(t.base,"/").concat(this.name)}var t,n;return t=e,(n=[{key:"makeUrl",value:function(e,t){e=e||{};var n=this.base;return null!=t&&(n+="/".concat(encodeURIComponent(t))),n+this.getQuery(e)}},{key:"getQuery",value:function(e){if(0===Object.keys(e).length)return"";var t=o.stringify(e);return"?".concat(t)}},{key:"find",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};return this.request({url:this.makeUrl(t.query),method:"GET",headers:Object.assign({},t.headers)},t).catch(u)}},{key:"get",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return void 0===e?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(n.query,e),method:"GET",headers:Object.assign({},n.headers)},n).catch(u)}},{key:"create",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this.request({url:this.makeUrl(n.query),body:e,method:"POST",headers:Object.assign({"Content-Type":"application/json"},n.headers)},n).catch(u)}},{key:"update",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};return void 0===e?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,e),body:t,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(u)}},{key:"patch",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};return void 0===e?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,e),body:t,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(u)}},{key:"remove",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return void 0===e?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(n.query,e),method:"DELETE",headers:Object.assign({},n.headers)},n).catch(u)}}])&&r(t.prototype,n),e}();e.exports=f},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},c=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0;var a=i(n(18));c(n(7),t),t.hooks=a},function(e,t,n){function r(e){return(r="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)}var o=n(4)("@feathersjs/errors");function i(e,t,n,c,a){var s,u,f;(e=e||"Error")instanceof Error?(u=e.message||"Error",e.errors&&(s=e.errors)):"object"===r(e)?(u=e.message||"Error",a=e):u=e,a&&((f=JSON.parse(JSON.stringify(a))).errors?(s=f.errors,delete f.errors):a.errors&&(s=JSON.parse(JSON.stringify(a.errors)))),this.type="FeathersError",this.name=t,this.message=u,this.code=n,this.className=c,this.data=f,this.errors=s||{},o("".concat(this.name,"(").concat(this.code,"): ").concat(this.message)),o(this.errors),Error.captureStackTrace?Error.captureStackTrace(this,i):this.stack=(new Error).stack}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e}function a(e,t){i.call(this,e,"BadRequest",400,"bad-request",t)}function s(e,t){i.call(this,e,"NotAuthenticated",401,"not-authenticated",t)}function u(e,t){i.call(this,e,"PaymentError",402,"payment-error",t)}function f(e,t){i.call(this,e,"Forbidden",403,"forbidden",t)}function l(e,t){i.call(this,e,"NotFound",404,"not-found",t)}function p(e,t){i.call(this,e,"MethodNotAllowed",405,"method-not-allowed",t)}function h(e,t){i.call(this,e,"NotAcceptable",406,"not-acceptable",t)}function y(e,t){i.call(this,e,"Timeout",408,"timeout",t)}function d(e,t){i.call(this,e,"Conflict",409,"conflict",t)}function v(e,t){i(this,e,"Gone",410,"gone")}function m(e,t){i.call(this,e,"LengthRequired",411,"length-required",t)}function b(e,t){i.call(this,e,"Unprocessable",422,"unprocessable",t)}function g(e,t){i.call(this,e,"TooManyRequests",429,"too-many-requests",t)}function O(e,t){i.call(this,e,"GeneralError",500,"general-error",t)}function w(e,t){i.call(this,e,"NotImplemented",501,"not-implemented",t)}function j(e,t){i.call(this,e,"BadGateway",502,"bad-gateway",t)}function S(e,t){i.call(this,e,"Unavailable",503,"unavailable",t)}c(i,Error),Object.defineProperty(i.prototype,"toJSON",{value:function(){return{name:this.name,message:this.message,code:this.code,className:this.className,data:this.data,errors:this.errors}}}),c(a,i),c(s,i),c(u,i),c(f,i),c(l,i),c(p,i),c(h,i),c(y,i),c(d,i),c(v,i),c(m,i),c(b,i),c(g,i),c(O,i),c(w,i),c(j,i),c(S,i);var k={FeathersError:i,BadRequest:a,NotAuthenticated:s,PaymentError:u,Forbidden:f,NotFound:l,MethodNotAllowed:p,NotAcceptable:h,Timeout:y,Conflict:d,Gone:v,LengthRequired:m,Unprocessable:b,TooManyRequests:g,GeneralError:O,NotImplemented:w,BadGateway:j,Unavailable:S,400:a,401:s,402:u,403:f,404:l,405:p,406:h,408:y,409:d,410:v,411:m,422:b,429:g,500:O,501:w,502:j,503:S};e.exports=Object.assign({convert:function(e){if(!e)return e;var t=k[e.name],n=t?new t(e.message,e.data):new Error(e.message||e);return"object"===r(e)&&Object.assign(n,e),n}},k)},function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){var e="function"==typeof Object.getOwnPropertySymbols;return{create:function(){var e=Object.create(this),t="string"==typeof e.__init?e.__init:"init";return"function"==typeof e[t]&&e[t].apply(e,arguments),e},mixin:function(t,n){var r=n||this,o=/\b_super\b/,i=Object.getPrototypeOf(r)||r.prototype,c={},a=t,s=function(e){var t=Object.getOwnPropertyDescriptor(a,e);!c[e]&&t&&(c[e]=t)};do{Object.getOwnPropertyNames(a).forEach(s),e&&Object.getOwnPropertySymbols(a).forEach(s)}while((a=Object.getPrototypeOf(a))&&Object.getPrototypeOf(a));var u=function(t){var n=c[t];"function"==typeof n.value&&o.test(n.value)&&(n.value=function(t,n,r,o){var i="function"==typeof n,c=function(){var e=this._super;this._super=i?n:t[r];var c=o.apply(this,arguments);return this._super=e,c};return i&&(Object.keys(n).forEach((function(e){c[e]=n[e]})),e&&Object.getOwnPropertySymbols(n).forEach((function(e){c[e]=n[e]}))),c}(i,r[t],t,n.value)),Object.defineProperty(r,t,n)};return Object.keys(c).forEach(u),e&&Object.getOwnPropertySymbols(c).forEach(u),r},extend:function(e,t){return this.mixin(e,Object.create(t||this))},proxy:function(e){var t=this[e],n=Array.prototype.slice.call(arguments,1);return n.unshift(this),t.bind.apply(t,n)}}})?r.apply(t,[]):r)||(e.exports=o)},function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(16)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(6))},function(e,t,n){"use strict";function r(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n}var o=Object.prototype.hasOwnProperty,i=Array.isArray,c=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();e.exports={arrayToObject:r,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],c=o.obj[o.prop],a=Object.keys(c),s=0;s<a.length;++s){var u=a[s],f=c[u];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(t.push({obj:c,prop:u}),n.push(f))}return function(e){for(;1<e.length;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var a=r.charCodeAt(i);45===a||46===a||95===a||126===a||48<=a&&a<=57||65<=a&&a<=90||97<=a&&a<=122?o+=r.charAt(i):a<128?o+=c[a]:a<2048?o+=c[192|a>>6]+c[128|63&a]:a<55296||57344<=a?o+=c[224|a>>12]+c[128|a>>6&63]+c[128|63&a]:(i+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(i)),o+=c[240|a>>18]+c[128|a>>12&63]+c[128|a>>6&63]+c[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,c){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(c&&(c.plainObjects||c.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=r(t,c)),i(t)&&i(n)?(n.forEach((function(n,r){var i;o.call(t,r)?(i=t[r])&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,c):t.push(n):t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return o.call(t,r)?t[r]=e(t[r],i,c):t[r]=i,t}),a)}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){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:c}catch(e){r=c}}();var s,u=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!f){var e=a(p);f=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new y(e,t)),1!==u.length||f||a(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";(function(e){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="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 o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol=t.makeUrl=t.isPromise=t._=t.stripSlashes=void 0,t.stripSlashes=function(e){return e.replace(/^(\/+)|(\/+)$/g,"")},t._={each:function(e,n){e&&"function"==typeof e.forEach?e.forEach(n):t._.isObject(e)&&Object.keys(e).forEach((function(t){return n(e[t],t)}))},some:function(e,t){return Object.keys(e).map((function(t){return[e[t],t]})).some((function(e){var n=o(e,2),r=n[0],i=n[1];return t(r,i)}))},every:function(e,t){return Object.keys(e).map((function(t){return[e[t],t]})).every((function(e){var n=o(e,2),r=n[0],i=n[1];return t(r,i)}))},keys:function(e){return Object.keys(e)},values:function(e){return t._.keys(e).map((function(t){return e[t]}))},isMatch:function(e,n){return t._.keys(n).every((function(t){return e[t]===n[t]}))},isEmpty:function(e){return 0===t._.keys(e).length},isObject:function(e){return"object"===r(e)&&!Array.isArray(e)&&null!==e},isObjectOrArray:function(e){return"object"===r(e)&&null!==e},extend:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign.apply(Object,[e].concat(n))},omit:function(e){for(var n=t._.extend({},e),r=arguments.length,o=new Array(1<r?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.forEach((function(e){return delete n[e]})),n},pick:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},merge:function(e,r){return t._.isObject(e)&&t._.isObject(r)&&Object.keys(r).forEach((function(o){t._.isObject(r[o])?(e[o]||Object.assign(e,n({},o,{})),t._.merge(e[o],r[o])):Object.assign(e,n({},o,r[o]))})),e}},t.isPromise=function(e){return t._.isObject(e)&&"function"==typeof e.then},t.makeUrl=function(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o="function"==typeof r.get?r.get.bind(r):function(){},i=o("env")||"production",c=o("host")||e.env.HOST_NAME||"localhost",a="development"===i||"test"===i?"http":"https",s=o("port")||e.env.PORT||3030,u="development"===i||"test"===i?":".concat(s):"";return n=n||"","".concat(a,"://").concat(c).concat(u,"/").concat(t.stripSlashes(n))},t.createSymbol=function(e){return"undefined"!=typeof Symbol?Symbol(e):e}}).call(this,n(6))},function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=e.app,n=e.service,r=e.method,o=e.original;return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=t.hookTypes.reduce((function(t,n){var r=e[n]||[];return t[n]=Array.isArray(r)?r:[r],t}),{});return function(){for(var e=arguments.length,c=new Array(e),a=0;a<e;a++)c[a]=arguments[a];var l=!0===c[c.length-1]&&c.pop(),h=f(r,{type:"before",arguments:c,service:n,app:t});return Promise.resolve(h).then((function(e){return p.call(n,u.concat(i.before),e)})).then((function(e){return void 0!==e.result?e:new Promise((function(t){var i=o||n[r],c=n.methods[r].map((function(t){return e[t]})),a=i.apply(n,c);if(!s(a))throw new Error("Service method '".concat(e.method,"' for '").concat(e.path,"' service must return a promise"));t(a)})).then((function(t){return e.result=t,e})).catch((function(t){throw t.hook=e,t}))})).then((function(e){var t=Object.assign({},e,{type:"after"});return p.call(n,i.after,t)})).catch((function(e){var t=Object.assign({},e.hook,{type:"error",original:e.hook,error:e,result:void 0});return p.call(n,i.error,t).catch((function(e){return Object.assign({},e.hook,{error:e,result:void 0})}))})).then((function(e){return p.call(n,i.finally,e).catch((function(e){return Object.assign({},e.hook,{error:e,result:void 0})}))})).then((function(e){return void 0!==e.error&&void 0===e.result?Promise.reject(l?e:e.error):l?e:e.result}))}}}var c=n(1),a=c.hooks,s=c.isPromise,u=n(21),f=a.createHookObject,l=a.getHooks,p=a.processHooks,h=a.enableHooks,y=a.ACTIVATE_HOOKS,d=t.hookMixin=function(e){var t,n,o;"function"!=typeof e.hooks&&(e.methods=Object.getOwnPropertyNames(e).filter((function(t){return"function"==typeof e[t]&&e[t][y]})).reduce((function(t,n){return t[n]=e[n][y],t}),e.methods||{}),Object.assign(e.methods,{find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]}),t=this,o=(n=Object.keys(e.methods)).reduce((function(n,o){return"function"!=typeof e[o]||(n[o]=function(){var e=this,n=Array.from(arguments),c=e._super.bind(e);return i({app:t,service:e,method:o,original:c})({before:l(t,e,"before",o),after:l(t,e,"after",o,!0),error:l(t,e,"error",o,!0),finally:l(t,e,"finally",o,!0)}).apply(void 0,r(n))}),n}),{}),h(e,n,t.hookTypes),e.mixin(o))};e.exports=function(){return function(e){Object.assign(e,{hookTypes:["before","after","error","finally"]}),h(e,e.methods,e.hookTypes),e.mixins.push(d)}},e.exports.withHooks=i,e.exports.ACTIVATE_HOOKS=y,e.exports.activateHooks=function(e){return function(t){return Object.defineProperty(t,y,{value:e}),t}}},function(e,t){e.exports="4.5.9"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.StorageWrapper=t.MemoryStorage=void 0;var c=function(){function e(){r(this,e),this.store={}}return i(e,[{key:"getItem",value:function(e){return Promise.resolve(this.store[e])}},{key:"setItem",value:function(e,t){return Promise.resolve(this.store[e]=t)}},{key:"removeItem",value:function(e){var t=this.store[e];return delete this.store[e],Promise.resolve(t)}}]),e}();t.MemoryStorage=c;var a=function(){function e(t){r(this,e),this.storage=t}return i(e,[{key:"getItem",value:function(e){return Promise.resolve(this.storage.getItem(e))}},{key:"setItem",value:function(e,t){return Promise.resolve(this.storage.setItem(e,t))}},{key:"removeItem",value:function(e){return Promise.resolve(this.storage.removeItem(e))}}]),e}();t.StorageWrapper=a},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(5),c={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:c.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},c)},function(e,t,n){e.exports=n(39).Service},function(e,t,n){var r=n(14),o=n(2),i=n(22),c=n(27),a=n(38),s=n(40);Object.assign(r,{errors:o,socketio:a,primus:s,rest:c,authentication:i}),e.exports=r},function(e,t,n){var r=n(3),o=n(15),i=n(9),c=n(8),a=c.ACTIVATE_HOOKS,s=c.activateHooks,u=Object.create(null);function f(){var e=Object.create(u);return r.mixin(o,e),e.init(),e}f.version=i,f.ACTIVATE_HOOKS=a,f.activateHooks=s,e.exports=f,e.exports.default=f},function(e,t,n){var r=n(4)("feathers:application"),o=n(1).stripSlashes,i=n(3),c=n(19),a=n(8),s=n(9),u=i.extend({create:null}),f={init:function(){Object.assign(this,{version:s,methods:["find","get","create","update","patch","remove"],mixins:[],services:{},providers:[],_setup:!1,settings:{}}),this.configure(a()),this.configure(c())},get:function(e){return this.settings[e]},set:function(e,t){return this.settings[e]=t,this},disable:function(e){return this.settings[e]=!1,this},disabled:function(e){return!this.settings[e]},enable:function(e){return this.settings[e]=!0,this},enabled:function(e){return!!this.settings[e]},configure:function(e){return e.call(this,this),this},service:function(e,t){if(void 0!==t)throw new Error("Registering a new service with `app.service(path, service)` is no longer supported. Use `app.use(path, service)` instead.");var n=o(e)||"/",r=this.services[n];return void 0===r&&"function"==typeof this.defaultService?this.use(n,this.defaultService(n)).service(n):r},use:function(e,t,n){var i=this,c=2<arguments.length&&void 0!==n?n:{};if("string"!=typeof e)throw new Error("'".concat(e,"' is not a valid service path."));var a=o(e)||"/",s="function"==typeof t.service&&t.services,f=this.methods.concat("setup").some((function(e){return"function"==typeof t[e]}));if(s){var l=t;return Object.keys(l.services).forEach((function(e){return i.use("".concat(a,"/").concat(e),l.service(e))})),this}if(!f)throw new Error("Invalid service object passed for path `".concat(a,"`"));var p=u.isPrototypeOf(t)?t:u.extend(t);return r("Registering new service at `".concat(a,"`")),this.mixins.forEach((function(e){return e.call(i,p,a,c)})),"function"==typeof p._setup&&p._setup(this,a),this.providers.forEach((function(e){return e.call(i,p,a,c)})),this._isSetup&&"function"==typeof p.setup&&(r("Setting up service for `".concat(a,"`")),p.setup(this,a)),this.services[a]=p,this},setup:function(){var e=this;return Object.keys(this.services).forEach((function(t){var n=e.services[t];r("Setting up service for `".concat(t,"`")),"function"==typeof n.setup&&n.setup(e,t)})),this._isSetup=!0,this}};e.exports=f},function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){function t(e){var n;function r(){for(var e,o,i,c,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r.enabled&&(e=r,i=(o=Number(new Date))-(n||o),e.diff=i,e.prev=n,e.curr=o,n=o,s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O"),s[c=0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o,i=t.formatters[r];return"function"==typeof i&&(o=s[c],n=i.call(e,o),s.splice(c,1),c--),n})),t.formatArgs.call(e,s),(e.log||t.log).apply(e,s))}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=o,r.extend=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function c(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return((t.debug=t).default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[].concat(r(t.names.map(c)),r(t.skips.map(c).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(17),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=36e5,r=864e5;function o(e,t,n,r){var o=1.5*n<=t;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var i=typeof e;if("string"==i&&0<e.length)return function(e){if(!(100<(e=String(e)).length)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*r;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*o;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"==i&&isFinite(e))return(t.long?function(e){var t=Math.abs(e);return r<=t?o(e,t,r,"day"):n<=t?o(e,t,n,"hour"):6e4<=t?o(e,t,6e4,"minute"):1e3<=t?o(e,t,1e3,"second"):e+" ms"}:function(e){var t=Math.abs(e);return r<=t?Math.round(e/r)+"d":n<=t?Math.round(e/n)+"h":6e4<=t?Math.round(e/6e4)+"m":1e3<=t?Math.round(e/1e3)+"s":e+"ms"})(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.enableHooks=t.processHooks=t.getHooks=t.isHookObject=t.convertHookData=t.makeArguments=t.defaultMakeArguments=t.createHookObject=t.ACTIVATE_HOOKS=void 0;var o=n(7),i=o._,c=i.each,a=i.pick;function s(e){var t=[];return void 0!==e.id&&t.push(e.id),e.data&&t.push(e.data),t.push(e.params||{}),t}function u(e){var t={};return Array.isArray(e)?t={all:e}:"object"!==r(e)?t={all:[e]}:c(e,(function(e,n){t[n]=Array.isArray(e)?e:[e]})),t}function f(e){return"object"===r(e)&&"string"==typeof e.method&&"string"==typeof e.type}t.ACTIVATE_HOOKS=o.createSymbol("__feathersActivateHooks"),t.createHookObject=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.defineProperty(n,"toJSON",{value:function(){return a(this,"type","method","path","params","id","data","result","error")}}),Object.assign(n,t,{method:e,get path(){var e=t.app,n=t.service;return n&&e&&e.services?Object.keys(e.services).find((function(t){return e.services[t]===n})):null}})},t.defaultMakeArguments=s,t.makeArguments=function(e){switch(e.method){case"find":return[e.params];case"get":case"remove":return[e.id,e.params];case"update":case"patch":return[e.id,e.data,e.params];case"create":return[e.data,e.params]}return s(e)},t.convertHookData=u,t.isHookObject=f,t.getHooks=function(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],i=e.__hooks[n][r]||[],c=t.__hooks[n][r]||[];return o?c.concat(i):i.concat(c)},t.processHooks=function(e,t){function n(e){if(e){if(!f(e))throw new Error("".concat(o.type," hook for '").concat(o.method,"' method returned invalid hook object"));o=e}return o}var r=this,o=t;return e.reduce((function(e,t){var o=t.bind(r);return e.then((function(e){return o(e)})).then(n)}),Promise.resolve(o)).then((function(){return o})).catch((function(e){throw e.hook=o,e}))},t.enableHooks=function(e,t,n){if("function"==typeof e.hooks)return e;var r={};return n.forEach((function(e){r[e]={}})),Object.defineProperty(e,"__hooks",{configurable:!0,value:r,writable:!0}),Object.assign(e,{hooks:function(e){var n=this;return c(e,(function(e,r){if(!n.__hooks[r])throw new Error("'".concat(r,"' is not a valid hook type"));var o=u(e);c(o,(function(e,n){if("all"!==n&&-1===t.indexOf(n))throw new Error("'".concat(n,"' is not a valid hook method"))})),t.forEach((function(e){var t=n.__hooks[r][e]||(n.__hooks[r][e]=[]);o.all&&t.push.apply(t,o.all),o[e]&&t.push.apply(t,o[e])}))})),this}})}},function(e,t,n){var r=n(20).EventEmitter,o=n(3),i=t.eventHook=function(){return function(e){var t=e.app,n=e.service,r=null===e.event?e.event:t.eventMappings[e.method],o=n._hookEvents&&-1!==n._hookEvents.indexOf(r);r&&o&&"error"!==e.type&&(Array.isArray(e.result)?e.result:[e.result]).forEach((function(t){return n.emit(r,t,e)}))}},c=t.eventMixin=function(e){var t,n;e._serviceEvents||(t=this,n="function"==typeof e.on&&"function"==typeof e.emit,"function"!=typeof e.mixin||n||e.mixin(r.prototype),Object.defineProperties(e,{_serviceEvents:{value:Array.isArray(e.events)?e.events.slice():[]},_hookEvents:{value:[]}}),Object.keys(t.eventMappings).forEach((function(n){var r=t.eventMappings[n],o=-1!==e._serviceEvents.indexOf(r);"function"!=typeof e[n]||o||(e._serviceEvents.push(r),e._hookEvents.push(r))})))};e.exports=function(){return function(e){Object.assign(e,{eventMappings:{create:"created",update:"updated",remove:"removed",patch:"patched"}}),e.hooks({finally:i()}),o.mixin(r.prototype,e),e.mixins.push(c)}}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var c=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},(a.EventEmitter=a).prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,c,a,s;return u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),c=i[t]),void 0===c?(c=i[t]=n,++e._eventsCount):("function"==typeof c?c=i[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),0<(o=f(e))&&c.length>o&&!c.warned&&(c.warned=!0,(a=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=c.length,s=a,console&&console.warn&&console.warn(s))),e}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(r);return o.listener=n,r.wrapFn=o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):d(o,o.length)}function y(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r,o="error"===e,c=this._events;if(void 0!==c)o=o&&void 0===c.error;else if(!o)return!1;if(o){if(0<t.length&&(r=t[0]),r instanceof Error)throw r;var a=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw a.context=r,a}var s=c[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var u=s.length,f=d(s,u);for(n=0;n<u;++n)i(f[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,o,i,c;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;0<=i;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);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):y.call(e,t)},a.prototype.listenerCount=y,a.prototype.eventNames=function(){return 0<this._eventsCount?r(this._events):[]}},function(e,t,n){var r=n(1)._;e.exports=[function(e){var t=e.service,n=e.method,r=t.methods[n];return e.arguments.forEach((function(t,n){e[r[n]]=t})),e.params||(e.params={}),e},function(e){var t=e.service,n=e.method,o=e.path,i=t.methods[n];if(i.includes("id")&&void 0===e.id)throw new Error("An id must be provided to the '".concat(o,".").concat(n,"' method"));if(i.includes("data")&&!r.isObjectOrArray(e.data))throw new Error("A data object must be provided to the '".concat(o,".").concat(n,"' method"));return e}]},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=t.defaultStorage=t.hooks=t.MemoryStorage=t.AuthenticationClient=t.getDefaultStorage=void 0;var c=n(23);Object.defineProperty(t,"AuthenticationClient",{enumerable:!0,get:function(){return c.AuthenticationClient}});var a=i(n(24));t.hooks=a;var s=n(10);function u(e){var n=0<arguments.length&&void 0!==e?e:{},r=Object.assign({},t.defaults,n),o=r.Authentication;return function(e){var t=new o(e,r);e.authentication=t,e.authenticate=t.authenticate.bind(t),e.reAuthenticate=t.reAuthenticate.bind(t),e.logout=t.logout.bind(t),e.hooks({before:{all:[a.authentication(),a.populateHeader()]}})}}Object.defineProperty(t,"MemoryStorage",{enumerable:!0,get:function(){return s.MemoryStorage}}),t.getDefaultStorage=function(){try{return new s.StorageWrapper(window.localStorage)}catch(e){}return new s.MemoryStorage},t.defaultStorage=t.getDefaultStorage(),t.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:c.AuthenticationClient,storage:t.defaultStorage},t.default=u,e.exports=Object.assign(u,e.exports)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=new RegExp("(?:&?)".concat(t,"=([^&]*)")),r=e.hash?e.hash.match(n):null;return null===r?[null,n]:[o(r,2)[1],n]}Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationClient=void 0;var a=n(2),s=n(10),u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t.io||t.primus,o=new s.StorageWrapper(t.get("storage")||n.storage);this.app=t,this.options=n,this.authenticated=!1,this.app.set("storage",o),r&&this.handleSocket(r)}var t,n;return t=e,(n=[{key:"handleSocket",value:function(e){var t=this,n=this.app.io?"connect":"open",r=this.app.io?"disconnect":"disconnection";e.on(r,(function(){var r=new Promise((function(t){return e.once(n,(function(){return t()}))})).then((function(){return t.authenticated?t.reAuthenticate(!0):null}));t.app.set("authentication",r)}))}},{key:"getFromLocation",value:function(e){var t=o(c(e,this.options.locationKey),2),n=t[0],r=t[1];if(null!==n)return e.hash=e.hash.replace(r,""),Promise.resolve(n);var i=o(c(e,this.options.locationErrorKey),2),s=i[0],u=i[1];return null!==s?(e.hash=e.hash.replace(u,""),Promise.reject(new a.NotAuthenticated(decodeURIComponent(s)))):Promise.resolve(null)}},{key:"setAccessToken",value:function(e){return this.storage.setItem(this.options.storageKey,e)}},{key:"getAccessToken",value:function(){var e=this;return this.storage.getItem(this.options.storageKey).then((function(t){return!t&&"undefined"!=typeof window&&window.location?e.getFromLocation(window.location):t||null}))}},{key:"removeAccessToken",value:function(){return this.storage.removeItem(this.options.storageKey)}},{key:"reset",value:function(){return this.app.set("authentication",null),this.authenticated=!1,Promise.resolve(null)}},{key:"handleError",value:function(e,t){var n=this;if(401!==e.code&&403!==e.code)return Promise.reject(e);var r=this.removeAccessToken().then((function(){return n.reset()}));return"logout"===t?r:r.then((function(){return Promise.reject(e)}))}},{key:"reAuthenticate",value:function(e){var t=this,n=0<arguments.length&&void 0!==e&&e,r=this.app.get("authentication");return r&&!0!==n?r:this.getAccessToken().then((function(e){if(!e)throw new a.NotAuthenticated("No accessToken found in storage");return t.authenticate({strategy:t.options.jwtStrategy,accessToken:e})}))}},{key:"authenticate",value:function(e,t){var n=this;if(!e)return this.reAuthenticate();var r=this.service.create(e,t).then((function(e){var t=e.accessToken;return n.authenticated=!0,n.app.emit("login",e),n.app.emit("authenticated",e),n.setAccessToken(t).then((function(){return e}))})).catch((function(e){return n.handleError(e,"authenticate")}));return this.app.set("authentication",r),r}},{key:"logout",value:function(){var e=this;return Promise.resolve(this.app.get("authentication")).then((function(){return e.service.remove(null).then((function(t){return e.removeAccessToken().then((function(){return e.reset()})).then((function(){return e.app.emit("logout",t),t}))}))})).catch((function(t){return e.handleError(t,"logout")}))}},{key:"service",get:function(){return this.app.service(this.options.path)}},{key:"storage",get:function(){return this.app.get("storage")}}])&&r(t.prototype,n),e}();t.AuthenticationClient=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=t.authentication=void 0;var r=n(25);Object.defineProperty(t,"authentication",{enumerable:!0,get:function(){return r.authentication}});var o=n(26);Object.defineProperty(t,"populateHeader",{enumerable:!0,get:function(){return o.populateHeader}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authentication=void 0;var r=n(1);t.authentication=function(){return function(e){var t=e.app,n=e.params,o=e.path,i=e.method,c=e.app.authentication;return r.stripSlashes(c.options.path)===o&&"create"===i?e:Promise.resolve(t.get("authentication")).then((function(t){return t&&(e.params=Object.assign({},t,n)),e}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=void 0,t.populateHeader=function(){return function(e){var t,n,r,o,i,c,a,s=e.app,u=e.params.accessToken,f=s.authentication;return s.rest&&u&&(n=(t=f.options).scheme,r=t.header,o="".concat(n," ").concat(u),e.params.headers=Object.assign({},(a=o,(c=r)in(i={})?Object.defineProperty(i,c,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[c]=a,i),e.params.headers)),e}}},function(e,t,n){var r=n(28),o=n(32),i=n(33),c=n(34),a=n(35),s=n(36),u=n(0),f=n(37),l={jquery:r,superagent:o,request:i,fetch:c,axios:a,angular:s,angularHttpClient:f};function p(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t={Base:u};return Object.keys(l).forEach((function(n){t[n]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l[n];if(!t)throw new Error("".concat(n," has to be provided to feathers-rest"));function i(n){return new o({base:e,name:n,connection:t,options:r})}function c(e){if("function"==typeof e.defaultService)throw new Error("Only one default client provider can be configured");e.rest=t,e.defaultService=i}return"function"==typeof r&&(o=r,r={}),c.Service=o,c.service=i,c}})),t}e.exports=Object.assign(p,{SuperagentClient:o,FetchClient:c,jQueryClient:r,RequestClient:i,AxiosClient:a,AngularClient:s,AngularHttpClient:f}),e.exports.default=p},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=this,r=t.connection,o=void 0===r?{}:r,i=Object.assign({},e.headers,this.options.headers,o.headers),c=Object.assign({dataType:e.type||"json"},o,e,{headers:i});return e.body&&(c.data=JSON.stringify(e.body),c.contentType="application/json"),delete c.type,delete c.body,new Promise((function(e,t){n.connection.ajax(c).then(e,(function(e){var n=e.responseText;try{n=JSON.parse(n)}catch(t){n=new Error(e.responseText)}n.xhr=n.response=e,t(n)}))}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){"use strict";var r=n(30),o=n(31),i=n(11);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";function r(e,t){u.apply(e,s(t)?t:[t])}var o=n(5),i=n(11),c=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,f=Date.prototype.toISOString,l=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:l,formatter:i.formatters[l],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1};e.exports=function(e,t){var n=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!c.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return"function"!=typeof e.filter&&!s(e.filter)||(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?n=(0,u.filter)("",n):s(u.filter)&&(y=u.filter);var f,l=[];if("object"!=typeof n||null===n)return"";f=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t&&!t.indices?"repeat":"indices";var h=a[f],y=y||Object.keys(n);u.sort&&y.sort(u.sort);for(var d=0;d<y.length;++d){var v=y[d];u.skipNulls&&null===n[v]||r(l,function e(t,n,i,c,a,u,f,l,h,y,d,v,m){var b,g=t;if("function"==typeof f?g=f(n,g):g instanceof Date?g=y(g):"comma"===i&&s(g)&&(g=o.maybeMap(g,(function(e){return e instanceof Date?y(e):e})).join(",")),null===g){if(c)return u&&!v?u(n,p.encoder,m,"key"):n;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||o.isBuffer(g))return u?[d(v?n:u(n,p.encoder,m,"key"))+"="+d(u(g,p.encoder,m,"value"))]:[d(n)+"="+d(String(g))];var O,w,j=[];if(void 0===g)return j;w=s(f)?f:(O=Object.keys(g),l?O.sort(l):O);for(var S=0;S<w.length;++S){var k=w[S],C=g[k];a&&null===C||r(j,e(C,s(g)?"function"==typeof i?i(n,k):n:n+(h?"."+k:"["+k+"]"),i,c,a,u,f,l,h,y,d,v,m))}return j}(n[v],v,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var m=l.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),0<m.length?b+m:""}},function(e,t,n){"use strict";function r(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e}function o(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=0<n.depth&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,f=[];if(u){if(!n.plainObjects&&c.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var l=0;0<n.depth&&null!==(s=a.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&c.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var i=o?t:r(t,n),c=e.length-1;0<=c;--c){var a,s,u,f=e[c];"[]"===f&&n.parseArrays?a=[].concat(i):(a=n.plainObjects?Object.create(null):{},s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,u=parseInt(s,10),n.parseArrays||""!==s?!isNaN(u)&&f!==s&&String(u)===s&&0<=u&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[s]=i:a={0:i}),i=a}return i}(f,t,n,o)}}var i=n(5),c=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,o,u,f,l,p,h={},y=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,v=y.split(t.delimiter,d),m=-1,b=t.charset;if(t.charsetSentinel)for(n=0;n<v.length;++n)0===v[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===v[n]?b="utf-8":"utf8=%26%2310003%3B"===v[n]&&(b="iso-8859-1"),m=n,n=v.length);for(n=0;n<v.length;++n)n!==m&&((p=-1===(f=-1===(u=(o=v[n]).indexOf("]="))?o.indexOf("="):u+1)?(l=t.decoder(o,s.decoder,b,"key"),t.strictNullHandling?null:""):(l=t.decoder(o.slice(0,f),s.decoder,b,"key"),i.maybeMap(r(o.slice(f+1),t),(function(e){return t.decoder(e,s.decoder,b,"value")}))))&&t.interpretNumericEntities&&"iso-8859-1"===b&&(p=p.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))),-1<o.indexOf("[]=")&&(p=a(p)?[p]:p),c.call(h,l)?h[l]=i.combine(h[l],p):h[l]=p);return h}(e,n):e,f=n.plainObjects?Object.create(null):{},l=Object.keys(u),p=0;p<l.length;++p){var h=l[p],y=o(h,u[h],n,"string"==typeof e);f=i.merge(f,y,n)}return i.compact(f)}},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=this.connection(e.method,e.url).set(this.options.headers||{}).set("Accept","application/json").set(t.connection||{}).set(e.headers||{}).type(e.type||"json");return new Promise((function(t,r){n.set(e.headers),e.body&&n.send(e.body),n.end((function(e,n){if(e){try{var o=e.response;(e=JSON.parse(e.response.text)).response=o}catch(e){}return r(e)}t(n&&n.body)}))}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=this;return new Promise((function(r,o){var i=t.connection,c=void 0===i?{}:i,a=Object.assign({},e.headers,c.headers);n.connection(Object.assign({json:!0},e,t.connection,{headers:a}),(function(e,t,n){return e?o(e):!e&&400<=t.statusCode?"string"==typeof n?o(new Error(n)):(n.response=t,o(Object.assign(new Error(n.message),n))):void r(n)}))}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=Object.assign({},e,t.connection);return n.headers=Object.assign({Accept:"application/json"},this.options.headers,n.headers),e.body&&(n.body=JSON.stringify(e.body)),(0,this.connection)(e.url,n).then(this.checkStatus).then((function(e){return 204===e.status?null:e.json()}))}},{key:"checkStatus",value:function(e){return e.ok?e:e.json().catch((function(){return new(errors[e.status]||Error)("JSON parsing error")})).then((function(t){throw t.response=e,t}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=Object.assign({url:e.url,method:e.method,data:e.body,headers:Object.assign({Accept:"application/json"},this.options.headers,e.headers)},t.connection);return this.connection.request(n).then((function(e){return e.data})).catch((function(e){var t=e.response||e;throw!(t instanceof Error)&&t.data||t}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=this.connection,r=this.options.Headers;if(!n||!r)throw new Error("Please pass angular's 'http' (instance) and and object with 'Headers' (class) to feathers-rest");var o=e.url,i=t.connection,c=void 0===i?{}:i,a=new r(Object.assign({Accept:"application/json"},this.options.headers,e.headers,c.headers)),s=Object.assign({method:e.method,body:e.body},c,{headers:a});return new Promise((function(e,t){n.request(o,s).subscribe(e,t)})).then((function(e){return e.json()})).catch((function(e){var t=e.response||e;throw!(t instanceof Error)&&t.json()||t}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=n(0),s=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,a);var e,t,n=function(e){var t=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}}();return function(){var n,o,i,a=c(e);return o=this,!(i=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))||"object"!==r(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):i}}(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n.apply(this,arguments)}return e=s,(t=[{key:"request",value:function(e,t){var n=this.connection,r=this.options.HttpHeaders;if(!n||!r)throw new Error("Please pass angular's 'httpClient' (instance) and and object with 'HttpHeaders' (class) to feathers-rest");var o=e.url,i=t.connection,c=void 0===i?{}:i,a=new r(Object.assign({Accept:"application/json"},this.options.headers,e.headers,c.headers)),s=Object.assign({body:e.body},t.connection,{headers:a});return new Promise((function(t,r){n.request(e.method,o,s).subscribe(t,r)})).catch((function(e){var t=e.error;if(t)throw"string"==typeof t?JSON.parse(t):t;throw e}))}}])&&o(e.prototype,t),s}();e.exports=s},function(e,t,n){var r=n(12);function o(e,t){if(!e)throw new Error("Socket.io connection needs to be provided");function n(n){var o=this,i=Object.keys(this.eventMappings||{}).map((function(e){return o.eventMappings[e]})),c=Object.assign({},t,{events:i,name:n,connection:e,method:"emit"});return new r(c)}function o(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.io=e,t.defaultService=n}return o.Service=r,o.service=n,o}e.exports=o,e.exports.default=o},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Service=void 0;var i=o(n(4)),c=n(2),a=i.default("@feathersjs/transport-commons/client"),s=["addListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeListener"],u=["eventNames","getMaxListeners","setMaxListeners"],f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events=t.events,this.path=t.name,this.connection=t.connection,this.method=t.method,this.timeout=t.timeout||5e3,function(e){u.forEach((function(t){e[t]=function(){var e;if("function"!=typeof this.connection[t])throw new Error("Can not call '".concat(t,"' on the client service connection"));return(e=this.connection)[t].apply(e,arguments)}})),s.forEach((function(t){e[t]=function(e){var n;if("function"!=typeof this.connection[t])throw new Error("Can not call '".concat(t,"' on the client service connection"));var r="".concat(this.path," ").concat(e);a("Calling emitter method ".concat(t," with ")+"namespaced event '".concat(r,"'"));for(var o=arguments.length,i=new Array(1<o?o-1:0),c=1;c<o;c++)i[c-1]=arguments[c];var s=(n=this.connection)[t].apply(n,[r].concat(i));return s===this.connection?this:s}}))}(this)}var t,n;return t=e,(n=[{key:"send",value:function(e){for(var t=this,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new Promise((function(n,o){var i,s=setTimeout((function(){return o(new c.Timeout("Timeout of ".concat(t.timeout,"ms exceeded calling ").concat(e," on ").concat(t.path),{timeout:t.timeout,method:e,path:t.path}))}),t.timeout);r.unshift(e,t.path),r.push((function(e,t){return e=c.convert(e),clearTimeout(s),e?o(e):n(t)})),a("Sending socket.".concat(t.method),r),(i=t.connection)[t.method].apply(i,r)}))}},{key:"find",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};return this.send("find",t.query||{})}},{key:"get",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this.send("get",e,n.query||{})}},{key:"create",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this.send("create",e,n.query||{})}},{key:"update",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};return this.send("update",e,t,r.query||{})}},{key:"patch",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};return this.send("patch",e,t,r.query||{})}},{key:"remove",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};return this.send("remove",e,n.query||{})}},{key:"off",value:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"!=typeof this.connection.off)return 0===n.length?this.removeAllListeners(e):this.removeListener.apply(this,[e].concat(n));var o,i=(o=this.connection).off.apply(o,["".concat(this.path," ").concat(e)].concat(n));return i===this.connection?this:i}}])&&r(t.prototype,n),e}();t.Service=f},function(e,t,n){var r=n(12);function o(e,t){if(!e)throw new Error("Primus connection needs to be provided");function n(n){return new r(Object.assign({},t,{name:n,connection:e,method:"send"}))}function o(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.primus=e,t.defaultService=n}return o.Service=r,o.service=n,o}e.exports=o,e.exports.default=o}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=13);function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.feathers=t():e.feathers=t()}(this,(function(){return e={5898:function(e,t,r){var n;t.formatArgs=function(t){var r,n,o;t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors&&(r="color: "+this.color,t.splice(1,0,r,"color: inherit"),t[o=n=0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r))},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(3604)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3604:function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){function t(e){var r,n,i,a=null;function c(){for(var e,n,o,i,a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];c.enabled&&(e=c,o=(n=Number(new Date))-(r||n),e.diff=o,e.prev=r,e.curr=n,r=n,u[0]=t.coerce(u[0]),"string"!=typeof u[0]&&u.unshift("%O"),u[i=0]=u[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return"%";i++;var o=t.formatters[n];return"function"==typeof o&&(n=u[i],r=o.call(e,n),u.splice(i,1),i--),r})),t.formatArgs.call(e,u),(e.log||t.log).apply(e,u))}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=o,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i)},set:function(e){a=e}}),"function"==typeof t.init&&t.init(c),c}function o(e,r){return(e=t(this.namespace+(void 0===r?":":r)+e)).log=this.log,e}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return((t.debug=t).default=t).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[].concat(n(t.names.map(i)),n(t.skips.map(i).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(r){t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},3753:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){return t=new RegExp("(?:&?)".concat(t,"=([^&]*)")),null===(e=e.hash?e.hash.match(t):null)?[null,t]:[n(e,2)[1],t]}Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationClient=void 0;var a=r(6441),c=r(826);r=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.io||t.primus,o=new c.StorageWrapper(t.get("storage")||r.storage);this.app=t,this.options=r,this.authenticated=!1,this.app.set("storage",o),n&&this.handleSocket(n)}var t,r;return t=e,(r=[{key:"service",get:function(){return this.app.service(this.options.path)}},{key:"storage",get:function(){return this.app.get("storage")}},{key:"handleSocket",value:function(e){var t=this,r=this.app.io?"connect":"open",n=this.app.io?"disconnect":"disconnection";e.on(n,(function(){var n=new Promise((function(t){return e.once(r,(function(e){return t(e)}))})).then((function(){return t.authenticated?t.reAuthenticate(!0):null}));t.app.set("authentication",n)}))}},{key:"getFromLocation",value:function(e){var t=(r=n(i(e,this.options.locationKey),2))[0],r=r[1];return null!==t?(e.hash=e.hash.replace(r,""),Promise.resolve(t)):(t=(r=n(i(e,this.options.locationErrorKey),2))[0],r=r[1],null!==t?(e.hash=e.hash.replace(r,""),Promise.reject(new a.NotAuthenticated(decodeURIComponent(t)))):Promise.resolve(null))}},{key:"setAccessToken",value:function(e){return this.storage.setItem(this.options.storageKey,e)}},{key:"getAccessToken",value:function(){var e=this;return this.storage.getItem(this.options.storageKey).then((function(t){return!t&&"undefined"!=typeof window&&window.location?e.getFromLocation(window.location):t||null}))}},{key:"removeAccessToken",value:function(){return this.storage.removeItem(this.options.storageKey)}},{key:"reset",value:function(){return this.app.set("authentication",null),this.authenticated=!1,Promise.resolve(null)}},{key:"handleError",value:function(e,t){var r=this;if(401!==e.code&&403!==e.code)return Promise.reject(e);var n=this.removeAccessToken().then((function(){return r.reset()}));return"logout"===t?n:n.then((function(){return Promise.reject(e)}))}},{key:"reAuthenticate",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=1<arguments.length?arguments[1]:void 0,n=this.app.get("authentication");return n&&!0!==t?n:this.getAccessToken().then((function(t){if(!t)throw new a.NotAuthenticated("No accessToken found in storage");return e.authenticate({strategy:r||e.options.jwtStrategy,accessToken:t})}))}},{key:"authenticate",value:function(e,t){var r=this;return e?(t=this.service.create(e,t).then((function(e){var t=e.accessToken;return r.authenticated=!0,r.app.emit("login",e),r.app.emit("authenticated",e),r.setAccessToken(t).then((function(){return e}))})).catch((function(e){return r.handleError(e,"authenticate")})),this.app.set("authentication",t),t):this.reAuthenticate()}},{key:"logout",value:function(){var e=this;return Promise.resolve(this.app.get("authentication")).then((function(){return e.service.remove(null).then((function(t){return e.removeAccessToken().then((function(){return e.reset()})).then((function(){return e.app.emit("logout",t),t}))}))})).catch((function(t){return e.handleError(t,"logout")}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),t.AuthenticationClient=r},3093:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authentication=void 0;var n=r(6575);t.authentication=function(){return function(e){var t=e.app,r=e.params,o=e.path,i=e.method,a=e.app.authentication;return(0,n.stripSlashes)(a.options.path)===o&&"create"===i?e:Promise.resolve(t.get("authentication")).then((function(t){return t&&(e.params=Object.assign({},t,r)),e}))}}},8307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=t.authentication=void 0;var n=r(3093);Object.defineProperty(t,"authentication",{enumerable:!0,get:function(){return n.authentication}});var o=r(442);Object.defineProperty(t,"populateHeader",{enumerable:!0,get:function(){return o.populateHeader}})},442:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=void 0,t.populateHeader=function(){return function(e){var t=e.app,r=e.params.accessToken,n=t.authentication;return t.rest&&r&&(n=(t=n.options).scheme,t=t.header,n="".concat(n," ").concat(r),e.params.headers=Object.assign({},(r=n,(n=t)in(t={})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t),e.params.headers)),e}}},2503:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=t.defaultStorage=t.hooks=t.MemoryStorage=t.AuthenticationClient=t.getDefaultStorage=void 0;var a=r(3753);Object.defineProperty(t,"AuthenticationClient",{enumerable:!0,get:function(){return a.AuthenticationClient}});var c=i(r(8307));t.hooks=c;var u=r(826);function s(){var e=Object.assign({},t.defaults,0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),r=e.Authentication;return function(t){var n=new r(t,e);t.authentication=n,t.authenticate=n.authenticate.bind(n),t.reAuthenticate=n.reAuthenticate.bind(n),t.logout=n.logout.bind(n),t.hooks({before:{all:[c.authentication(),c.populateHeader()]}})}}Object.defineProperty(t,"MemoryStorage",{enumerable:!0,get:function(){return u.MemoryStorage}}),t.getDefaultStorage=function(){try{return new u.StorageWrapper(window.localStorage)}catch(e){}return new u.MemoryStorage},t.defaultStorage=(0,t.getDefaultStorage)(),t.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:a.AuthenticationClient,storage:t.defaultStorage},t.default=s,e.exports=Object.assign(s,e.exports)},826:function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.StorageWrapper=t.MemoryStorage=void 0,t.MemoryStorage=function(){function e(){r(this,e),this.store={}}return o(e,[{key:"getItem",value:function(e){return Promise.resolve(this.store[e])}},{key:"setItem",value:function(e,t){return Promise.resolve(this.store[e]=t)}},{key:"removeItem",value:function(e){var t=this.store[e];return delete this.store[e],Promise.resolve(t)}}]),e}(),t.StorageWrapper=function(){function e(t){r(this,e),this.storage=t}return o(e,[{key:"getItem",value:function(e){return Promise.resolve(this.storage.getItem(e))}},{key:"setItem",value:function(e,t){return Promise.resolve(this.storage.setItem(e,t))}},{key:"removeItem",value:function(e){return Promise.resolve(this.storage.removeItem(e))}}]),e}()},3219:function(e,t,r){var n=r(6845),o=r(6441),i=r(2503),a=r(8357),c=r(6105);r=r(7849),Object.assign(n,{errors:o,socketio:c,primus:r,rest:a,authentication:i}),e.exports=n},196:function(e,t,r){"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.enableHooks=t.processHooks=t.getHooks=t.isHookObject=t.convertHookData=t.makeArguments=t.defaultMakeArguments=t.createHookObject=t.ACTIVATE_HOOKS=void 0;var o=r(3541),i=(r=o._).each,a=r.pick;function c(e){var t=[];return void 0!==e.id&&t.push(e.id),e.data&&t.push(e.data),t.push(e.params||{}),t}function u(e){var t={};return Array.isArray(e)?t={all:e}:"object"!==n(e)?t={all:[e]}:i(e,(function(e,r){t[r]=Array.isArray(e)?e:[e]})),t}function s(e){return"object"===n(e)&&"string"==typeof e.method&&"string"==typeof e.type}t.ACTIVATE_HOOKS=(0,o.createSymbol)("__feathersActivateHooks"),t.createHookObject=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.defineProperty(r,"toJSON",{value:function(){return a(this,"type","method","path","params","id","data","result","error")}}),Object.assign(r,t,{method:e,get path(){var e=t.app,r=t.service;return r&&e&&e.services?Object.keys(e.services).find((function(t){return e.services[t]===r})):null}})},t.defaultMakeArguments=c,t.makeArguments=function(e){switch(e.method){case"find":return[e.params];case"get":case"remove":return[e.id,e.params];case"update":case"patch":return[e.id,e.data,e.params];case"create":return[e.data,e.params]}return c(e)},t.convertHookData=u,t.isHookObject=s,t.getHooks=function(e,t,r,n){return e=e.__hooks[r][n]||[],n=t.__hooks[r][n]||[],4<arguments.length&&void 0!==arguments[4]&&arguments[4]?n.concat(e):e.concat(n)},t.processHooks=function(e,t){function r(e){if(e){if(!s(e))throw new Error("".concat(o.type," hook for '").concat(o.method,"' method returned invalid hook object"));o=e}return o}var n=this,o=t;return e.reduce((function(e,t){var o=t.bind(n);return e.then((function(e){return o(e)})).then(r)}),Promise.resolve(o)).then((function(){return o})).catch((function(e){throw e.hook=o,e}))},t.enableHooks=function(e,t,r){if("function"==typeof e.hooks)return e;var n={};return r.forEach((function(e){n[e]={}})),Object.defineProperty(e,"__hooks",{configurable:!0,value:n,writable:!0}),Object.assign(e,{hooks:function(e){var r=this;return i(e,(function(e,n){if(!r.__hooks[n])throw new Error("'".concat(n,"' is not a valid hook type"));var o=u(e);i(o,(function(e,r){if("all"!==r&&-1===t.indexOf(r))throw new Error("'".concat(r,"' is not a valid hook method"))})),t.forEach((function(e){var t=r.__hooks[n][e]||(r.__hooks[n][e]=[]);o.all&&t.push.apply(t,o.all),o[e]&&t.push.apply(t,o[e])}))})),this}})}},6575:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=void 0,i=i(r(196)),a(r(3541),t),t.hooks=i},3541:function(e,t){"use strict";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol=t.makeUrl=t.isPromise=t._=t.stripSlashes=void 0,t.stripSlashes=function(e){return e.replace(/^(\/+)|(\/+)$/g,"")},t._={each:function(e,r){e&&"function"==typeof e.forEach?e.forEach(r):t._.isObject(e)&&Object.keys(e).forEach((function(t){return r(e[t],t)}))},some:function(e,t){return Object.keys(e).map((function(t){return[e[t],t]})).some((function(e){e=(r=o(e,2))[0];var r=r[1];return t(e,r)}))},every:function(e,t){return Object.keys(e).map((function(t){return[e[t],t]})).every((function(e){e=(r=o(e,2))[0];var r=r[1];return t(e,r)}))},keys:function(e){return Object.keys(e)},values:function(e){return t._.keys(e).map((function(t){return e[t]}))},isMatch:function(e,r){return t._.keys(r).every((function(t){return e[t]===r[t]}))},isEmpty:function(e){return 0===t._.keys(e).length},isObject:function(e){return"object"===n(e)&&!Array.isArray(e)&&null!==e},isObjectOrArray:function(e){return"object"===n(e)&&null!==e},extend:function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign.apply(Object,[e].concat(r))},omit:function(e){for(var r=t._.extend({},e),n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.forEach((function(e){return delete r[e]})),r},pick:function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})},merge:function(e,n){return t._.isObject(e)&&t._.isObject(n)&&Object.keys(n).forEach((function(o){t._.isObject(n[o])?(e[o]||Object.assign(e,r({},o,{})),t._.merge(e[o],n[o])):Object.assign(e,r({},o,n[o]))})),e}},t.isPromise=function(e){return t._.isObject(e)&&"function"==typeof e.then},t.makeUrl=function(e){var r=(i="function"==typeof(o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).get?o.get.bind(o):function(){})("env")||"production",n=i("host")||process.env.HOST_NAME||"localhost",o="development"===r||"test"===r?"http":"https",i=i("port")||process.env.PORT||3030;return i="development"===r||"test"===r?":".concat(i):"",e=e||"","".concat(o,"://").concat(n).concat(i,"/").concat(t.stripSlashes(e))},t.createSymbol=function(e){return"undefined"!=typeof Symbol?Symbol(e):e}},6441:function(e,t,r){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)}var o=r(5898)("@feathersjs/errors");function i(e,t,r,a,c){var u,s,f;(e=e||"Error")instanceof Error?(s=e.message||"Error",e.errors&&(u=e.errors)):"object"===n(e)?(s=e.message||"Error",c=e):s=e,c&&((f=JSON.parse(JSON.stringify(c))).errors?(u=f.errors,delete f.errors):c.errors&&(u=JSON.parse(JSON.stringify(c.errors)))),this.type="FeathersError",this.name=t,this.message=s,this.code=r,this.className=a,this.data=f,this.errors=u||{},o("".concat(this.name,"(").concat(this.code,"): ").concat(this.message)),o(this.errors),Error.captureStackTrace?Error.captureStackTrace(this,i):this.stack=(new Error).stack}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e}function c(e,t){i.call(this,e,"BadRequest",400,"bad-request",t)}function u(e,t){i.call(this,e,"NotAuthenticated",401,"not-authenticated",t)}function s(e,t){i.call(this,e,"PaymentError",402,"payment-error",t)}function f(e,t){i.call(this,e,"Forbidden",403,"forbidden",t)}function l(e,t){i.call(this,e,"NotFound",404,"not-found",t)}function p(e,t){i.call(this,e,"MethodNotAllowed",405,"method-not-allowed",t)}function y(e,t){i.call(this,e,"NotAcceptable",406,"not-acceptable",t)}function h(e,t){i.call(this,e,"Timeout",408,"timeout",t)}function d(e,t){i.call(this,e,"Conflict",409,"conflict",t)}function v(e,t){i(this,e,"Gone",410,"gone")}function b(e,t){i.call(this,e,"LengthRequired",411,"length-required",t)}function m(e,t){i.call(this,e,"Unprocessable",422,"unprocessable",t)}function g(e,t){i.call(this,e,"TooManyRequests",429,"too-many-requests",t)}function w(e,t){i.call(this,e,"GeneralError",500,"general-error",t)}function O(e,t){i.call(this,e,"NotImplemented",501,"not-implemented",t)}function j(e,t){i.call(this,e,"BadGateway",502,"bad-gateway",t)}function S(e,t){i.call(this,e,"Unavailable",503,"unavailable",t)}a(i,Error),Object.defineProperty(i.prototype,"toJSON",{value:function(){return{name:this.name,message:this.message,code:this.code,className:this.className,data:this.data,errors:this.errors}}}),a(c,i),a(u,i),a(s,i),a(f,i),a(l,i),a(p,i),a(y,i),a(h,i),a(d,i),a(v,i),a(b,i),a(m,i),a(g,i),a(w,i),a(O,i),a(j,i),a(S,i);var P={FeathersError:i,BadRequest:c,NotAuthenticated:u,PaymentError:s,Forbidden:f,NotFound:l,MethodNotAllowed:p,NotAcceptable:y,Timeout:h,Conflict:d,Gone:v,LengthRequired:b,Unprocessable:m,TooManyRequests:g,GeneralError:w,NotImplemented:O,BadGateway:j,Unavailable:S,400:c,401:u,402:s,403:f,404:l,405:p,406:y,408:h,409:d,410:v,411:b,422:m,429:g,500:w,501:O,502:j,503:S};e.exports=Object.assign({convert:function(e){if(!e)return e;var t=(t=P[e.name])?new t(e.message,e.data):new Error(e.message||e);return"object"===n(e)&&Object.assign(t,e),t}},P)},1495:function(e,t,r){var n=r(5898)("feathers:application"),o=r(6575).stripSlashes,i=r(9425),a=r(944),c=r(8341),u=r(3803),s=i.extend({create:null});e.exports={init:function(){Object.assign(this,{version:u,methods:["find","get","create","update","patch","remove"],mixins:[],services:{},providers:[],_setup:!1,settings:{}}),this.configure(c()),this.configure(a())},get:function(e){return this.settings[e]},set:function(e,t){return this.settings[e]=t,this},disable:function(e){return this.settings[e]=!1,this},disabled:function(e){return!this.settings[e]},enable:function(e){return this.settings[e]=!0,this},enabled:function(e){return!!this.settings[e]},configure:function(e){return e.call(this,this),this},service:function(e,t){if(void 0!==t)throw new Error("Registering a new service with `app.service(path, service)` is no longer supported. Use `app.use(path, service)` instead.");return t=o(e)||"/",void 0===(e=this.services[t])&&"function"==typeof this.defaultService?this.use(t,this.defaultService(t)).service(t):e},use:function(e,t){var r=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof e)throw new Error("'".concat(e,"' is not a valid service path."));var a=o(e)||"/",c="function"==typeof t.service&&t.services,u=this.methods.concat("setup").some((function(e){return"function"==typeof t[e]}));if(c){var f=t;return Object.keys(f.services).forEach((function(e){return r.use("".concat(a,"/").concat(e),f.service(e))})),this}if(!u)throw new Error("Invalid service object passed for path `".concat(a,"`"));var l=s.isPrototypeOf(t)?t:s.extend(t);return n("Registering new service at `".concat(a,"`")),this.mixins.forEach((function(e){return e.call(r,l,a,i)})),"function"==typeof l._setup&&l._setup(this,a),this.providers.forEach((function(e){return e.call(r,l,a,i)})),this._isSetup&&"function"==typeof l.setup&&(n("Setting up service for `".concat(a,"`")),l.setup(this,a)),this.services[a]=l,this},setup:function(){var e=this;return Object.keys(this.services).forEach((function(t){var r=e.services[t];n("Setting up service for `".concat(t,"`")),"function"==typeof r.setup&&r.setup(e,t)})),this._isSetup=!0,this}}},944:function(e,t,r){var n=r(2699).EventEmitter,o=r(9425),i=t.eventHook=function(){return function(e){var t=e.app,r=e.service,n=null===e.event?e.event:t.eventMappings[e.method];t=r._hookEvents&&-1!==r._hookEvents.indexOf(n),n&&t&&"error"!==e.type&&(Array.isArray(e.result)?e.result:[e.result]).forEach((function(t){return r.emit(n,t,e)}))}},a=t.eventMixin=function(e){var t,r;e._serviceEvents||(t=this,r="function"==typeof e.on&&"function"==typeof e.emit,"function"!=typeof e.mixin||r||e.mixin(n.prototype),Object.defineProperties(e,{_serviceEvents:{value:Array.isArray(e.events)?e.events.slice():[]},_hookEvents:{value:[]}}),Object.keys(t.eventMappings).forEach((function(r){var n=t.eventMappings[r],o=-1!==e._serviceEvents.indexOf(n);"function"!=typeof e[r]||o||(e._serviceEvents.push(n),e._hookEvents.push(n))})))};e.exports=function(){return function(e){Object.assign(e,{eventMappings:{create:"created",update:"updated",remove:"removed",patch:"patched"}}),e.hooks({finally:i()}),o.mixin(n.prototype,e),e.mixins.push(a)}}},5392:function(e,t,r){var n=r(6575)._;e.exports=[function(e){var t=e.service,r=e.method,n=t.methods[r];return e.arguments.forEach((function(t,r){e[n[r]]=t})),e.params||(e.params={}),e},function(e){var t=e.service,r=e.method,o=e.path;if((t=t.methods[r]).includes("id")&&void 0===e.id)throw new Error("An id must be provided to the '".concat(o,".").concat(r,"' method"));if(t.includes("data")&&!n.isObjectOrArray(e.data))throw new Error("A data object must be provided to the '".concat(o,".").concat(r,"' method"));return e}]},8341:function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){var t=e.app,r=e.service,n=e.method,o=e.original;return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=t.hookTypes.reduce((function(t,r){var n=e[r]||[];return t[r]=Array.isArray(n)?n:[n],t}),{});return function(){for(var e=arguments.length,a=new Array(e),c=0;c<e;c++)a[c]=arguments[c];var l=!0===a[a.length-1]&&a.pop(),y=f(n,{type:"before",arguments:a,service:r,app:t});return Promise.resolve(y).then((function(e){return p.call(r,s.concat(i.before),e)})).then((function(e){return void 0!==e.result?e:new Promise((function(t){var i=o||r[n],a=r.methods[n].map((function(t){return e[t]}));if(a=i.apply(r,a),!u(a))throw new Error("Service method '".concat(e.method,"' for '").concat(e.path,"' service must return a promise"));t(a)})).then((function(t){return e.result=t,e})).catch((function(t){throw t.hook=e,t}))})).then((function(e){return e=Object.assign({},e,{type:"after"}),p.call(r,i.after,e)})).catch((function(e){return e=Object.assign({},e.hook,{type:"error",original:e.hook,error:e,result:void 0}),p.call(r,i.error,e).catch((function(e){return Object.assign({},e.hook,{error:e,result:void 0})}))})).then((function(e){return p.call(r,i.finally,e).catch((function(e){return Object.assign({},e.hook,{error:e,result:void 0})}))})).then((function(e){return void 0!==e.error&&void 0===e.result?Promise.reject(l?e:e.error):l?e:e.result}))}}}var a=r(6575),c=a.hooks,u=a.isPromise,s=r(5392),f=c.createHookObject,l=c.getHooks,p=c.processHooks,y=c.enableHooks,h=c.ACTIVATE_HOOKS,d=t.hookMixin=function(e){var t,r,o;"function"!=typeof e.hooks&&(e.methods=Object.getOwnPropertyNames(e).filter((function(t){return"function"==typeof e[t]&&e[t][h]})).reduce((function(t,r){return t[r]=e[r][h],t}),e.methods||{}),Object.assign(e.methods,{find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]}),t=this,o=(r=Object.keys(e.methods)).reduce((function(r,o){return"function"!=typeof e[o]||(r[o]=function(){var e=this,r=Array.from(arguments),a=e._super.bind(e);return i({app:t,service:e,method:o,original:a})({before:l(t,e,"before",o),after:l(t,e,"after",o,!0),error:l(t,e,"error",o,!0),finally:l(t,e,"finally",o,!0)}).apply(void 0,n(r))}),r}),{}),y(e,r,t.hookTypes),e.mixin(o))};e.exports=function(){return function(e){Object.assign(e,{hookTypes:["before","after","error","finally"]}),y(e,e.methods,e.hookTypes),e.mixins.push(d)}},e.exports.withHooks=i,e.exports.ACTIVATE_HOOKS=h,e.exports.activateHooks=function(e){return function(t){return Object.defineProperty(t,h,{value:e}),t}}},6845:function(e,t,r){var n=r(9425),o=r(1495),i=r(3803),a=(r=(a=r(8341)).ACTIVATE_HOOKS,a.activateHooks),c=Object.create(null);function u(){var e=Object.create(c);return n.mixin(o,e),e.init(),e}u.version=i,u.ACTIVATE_HOOKS=r,u.activateHooks=a,e.exports=u,e.exports.default=u},3803:function(e){e.exports="development"},7849:function(e,t,r){var n=r(9910);function o(e,t){if(!e)throw new Error("Primus connection needs to be provided");function r(r){return new n(Object.assign({},t,{name:r,connection:e,method:"send"}))}function o(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.primus=e,t.defaultService=r}return o.Service=n,o.service=r,o}e.exports=o,e.exports.default=o},357:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){var r=this.connection,n=this.options.HttpHeaders;if(!r||!n)throw new Error("Please pass angular's 'httpClient' (instance) and and object with 'HttpHeaders' (class) to feathers-rest");var o=e.url,i=t.connection,a=(i=new n(Object.assign({Accept:"application/json"},this.options.headers,e.headers,(void 0===i?{}:i).headers)),Object.assign({body:e.body},t.connection,{headers:i}));return new Promise((function(t,n){r.request(e.method,o,a).subscribe(t,n)})).catch((function(e){var t=e.error;if(t)throw"string"==typeof t?JSON.parse(t):t;throw e}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},4003:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){var r=this.connection,n=this.options.Headers;if(!r||!n)throw new Error("Please pass angular's 'http' (instance) and and object with 'Headers' (class) to feathers-rest");var o=e.url,i=(t=void 0===(t=t.connection)?{}:t,n=new n(Object.assign({Accept:"application/json"},this.options.headers,e.headers,t.headers)),Object.assign({method:e.method,body:e.body},t,{headers:n}));return new Promise((function(e,t){r.request(o,i).subscribe(e,t)})).then((function(e){return e.json()})).catch((function(e){throw!((e=e.response||e)instanceof Error)&&e.json()||e}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},1167:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){return t=Object.assign({url:e.url,method:e.method,data:e.body,headers:Object.assign({Accept:"application/json"},this.options.headers,e.headers)},t.connection),this.connection.request(t).then((function(e){return e.data})).catch((function(e){throw!((e=e.response||e)instanceof Error)&&e.data||e}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},7421:function(e,t,r){var n=r(9126),o=r(6441).Unavailable,i=r(6575)._,a=r(6575).stripSlashes,c=r(6441).convert;function u(e){if("ECONNREFUSED"===e.code)throw new o(e.message,i.pick(e,"address","port","config"));throw c(e)}e.exports=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=a(t.name),this.options=t.options,this.connection=t.connection,this.base="".concat(t.base,"/").concat(this.name)}var t,r;return t=e,(r=[{key:"makeUrl",value:function(e,t){e=e||{};var r=this.base;return null!=t&&(r+="/".concat(encodeURIComponent(t))),r+this.getQuery(e)}},{key:"getQuery",value:function(e){return 0===Object.keys(e).length?"":(e=n.stringify(e),"?".concat(e))}},{key:"find",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.request({url:this.makeUrl(e.query),method:"GET",headers:Object.assign({},e.headers)},e).catch(u)}},{key:"get",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===e?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(t.query,e),method:"GET",headers:Object.assign({},t.headers)},t).catch(u)}},{key:"create",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.request({url:this.makeUrl(t.query),body:e,method:"POST",headers:Object.assign({"Content-Type":"application/json"},t.headers)},t).catch(u)}},{key:"update",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===e?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,e),body:t,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(u)}},{key:"patch",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===e?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,e),body:t,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(u)}},{key:"remove",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===e?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(t.query,e),method:"DELETE",headers:Object.assign({},t.headers)},t).catch(u)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},7798:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){return(t=Object.assign({},e,t.connection)).headers=Object.assign({Accept:"application/json"},this.options.headers,t.headers),e.body&&(t.body=JSON.stringify(e.body)),(0,this.connection)(e.url,t).then(this.checkStatus).then((function(e){return 204===e.status?null:e.json()}))}},{key:"checkStatus",value:function(e){return e.ok?e:e.json().catch((function(){return new(errors[e.status]||Error)("JSON parsing error")})).then((function(t){throw t.response=e,t}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},8357:function(e,t,r){var n=r(3063),o=r(1467),i=r(7364),a=r(7798),c=r(1167),u=r(4003),s=r(7421),f={jquery:n,superagent:o,request:i,fetch:a,axios:c,angular:u,angularHttpClient:r=r(357)};function l(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t={Base:s};return Object.keys(f).forEach((function(r){t[r]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f[r];if(!t)throw new Error("".concat(r," has to be provided to feathers-rest"));function i(e){if("function"==typeof e.defaultService)throw new Error("Only one default client provider can be configured");e.rest=t,e.defaultService=a}"function"==typeof n&&(o=n,n={});var a=function(r){return new o({base:e,name:r,connection:t,options:n})};return i.Service=o,i.service=a,i}})),t}e.exports=Object.assign(l,{SuperagentClient:o,FetchClient:a,jQueryClient:n,RequestClient:i,AxiosClient:c,AngularClient:u,AngularHttpClient:r}),e.exports.default=l},3063:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){var r=this,n=(t=void 0===(n=t.connection)?{}:n,Object.assign({},e.headers,this.options.headers,t.headers)),o=Object.assign({dataType:e.type||"json"},t,e,{headers:n});return e.body&&(o.data=JSON.stringify(e.body),o.contentType="application/json"),delete o.type,delete o.body,new Promise((function(e,t){r.connection.ajax(o).then(e,(function(e){var r=e.responseText;try{r=JSON.parse(r)}catch(t){r=new Error(e.responseText)}r.xhr=r.response=e,t(r)}))}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},7364:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){var r=this;return new Promise((function(n,o){var i=t.connection;i=Object.assign({},e.headers,(void 0===i?{}:i).headers),r.connection(Object.assign({json:!0},e,t.connection,{headers:i}),(function(e,t,r){return e?o(e):!e&&400<=t.statusCode?"string"==typeof r?o(new Error(r)):(r.response=t,o(Object.assign(new Error(r.message),r))):void n(r)}))}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},1467:function(e,t,r){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 o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(r=a(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments))}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=r(7421);r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,c);var e,t,r=i(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,(t=[{key:"request",value:function(e,t){var r=this.connection(e.method,e.url).set(this.options.headers||{}).set("Accept","application/json").set(t.connection||{}).set(e.headers||{}).type(e.type||"json");return new Promise((function(t,n){r.set(e.headers),e.body&&r.send(e.body),r.end((function(e,r){if(e){try{var o=e.response;(e=JSON.parse(e.response.text)).response=o}catch(e){}return n(e)}t(r&&r.body)}))}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),n}(),e.exports=r},6105:function(e,t,r){var n=r(9910);function o(e,t){if(!e)throw new Error("Socket.io connection needs to be provided");if(e&&e.io&&e.io.engine&&e.io.engine.transport&&e.io.engine.transport.query&&3<e.io.engine.transport.query.EIO)throw console.error("You are trying to use the Socket.io client version 3 or later with Feathers v4 which only supports Socket.io version 2. Please use socket.io-client version 2 instead."),new Error("socket.io-client must be version 2.x");function r(r){var o=this,i=Object.keys(this.eventMappings||{}).map((function(e){return o.eventMappings[e]}));return r=Object.assign({},t,{events:i,name:r,connection:e,method:"emit"}),new n(r)}function o(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.io=e,t.defaultService=r}return o.Service=n,o.service=r,o}e.exports=o,e.exports.default=o},9910:function(e,t,r){e.exports=r(2004).Service},2004:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Service=void 0,n=n(r(5898));var o=r(6441),i=(0,n.default)("@feathersjs/transport-commons/client"),a=["addListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeListener"],c=["eventNames","getMaxListeners","setMaxListeners"];n=function(){function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events=t.events,this.path=t.name,this.connection=t.connection,this.method=t.method,this.timeout=t.timeout||5e3,r=this,c.forEach((function(e){r[e]=function(){var t;if("function"!=typeof this.connection[e])throw new Error("Can not call '".concat(e,"' on the client service connection"));return(t=this.connection)[e].apply(t,arguments)}})),a.forEach((function(e){r[e]=function(t){if("function"!=typeof this.connection[e])throw new Error("Can not call '".concat(e,"' on the client service connection"));var r="".concat(this.path," ").concat(t);i("Calling emitter method ".concat(e," with ")+"namespaced event '".concat(r,"'"));for(var n=arguments.length,o=new Array(1<n?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return(r=(t=this.connection)[e].apply(t,[r].concat(o)))===this.connection?this:r}}))}var t,r;return t=e,(r=[{key:"send",value:function(e){for(var t=this,r=arguments.length,n=new Array(1<r?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return new Promise((function(r,a){var c,u=setTimeout((function(){return a(new o.Timeout("Timeout of ".concat(t.timeout,"ms exceeded calling ").concat(e," on ").concat(t.path),{timeout:t.timeout,method:e,path:t.path}))}),t.timeout);n.unshift(e,t.path),n.push((function(e,t){return e=(0,o.convert)(e),clearTimeout(u),e?a(e):r(t)})),i("Sending socket.".concat(t.method),n),(c=t.connection)[t.method].apply(c,n)}))}},{key:"find",value:function(){return this.send("find",(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).query||{})}},{key:"get",value:function(e){return this.send("get",e,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"create",value:function(e){return this.send("create",e,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"update",value:function(e,t){return this.send("update",e,t,(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).query||{})}},{key:"patch",value:function(e,t){return this.send("patch",e,t,(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).query||{})}},{key:"remove",value:function(e){return this.send("remove",e,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).query||{})}},{key:"off",value:function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"!=typeof this.connection.off?0===r.length?this.removeAllListeners(e):this.removeListener.apply(this,[e].concat(r)):(e=(o=this.connection).off.apply(o,["".concat(this.path," ").concat(e)].concat(r)))===this.connection?this:e;var o}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),t.Service=n},2680:function(e,t,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){return"function"==typeof(t=n(e,!!t))&&-1<i(e,".prototype.")?o(t):t}},9429:function(e,t,r){"use strict";var n=r(4090),o=(r=r(7286))("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(i,o),c=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}function f(){return a(n,o,arguments)}e.exports=function(e){var t=a(n,i,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+s(0,e.length-(arguments.length-1))}),t},u?u(e.exports,"apply",{value:f}):e.exports.apply=f},2699:function(e){"use strict";var t="object"==typeof Reflect?Reflect:null,r=t&&"function"==typeof t.apply?t.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},n=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}var a,c,u;h(e,t,i,{once:!0}),"error"!==t&&(c=o,u={once:!0},"function"==typeof(a=e).on&&h(a,"error",c,u))}))},(i.EventEmitter=i).prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,r,n){var o,i;return c(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener||r),o=e._events),i=o[t]),void 0===i?(i=o[t]=r,++e._eventsCount):("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),0<(r=u(e))&&i.length>r&&!i.warned&&(i.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=e,r.type=t,r.count=i.length,r=r,console&&console.warn&&console.warn(r))),e}function f(e,t,r){return t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r}),t.listener=r,e.wrapFn=t}function l(e,t,r){return void 0===(e=e._events)||void 0===(t=e[t])?[]:"function"==typeof t?r?[t.listener||t]:[t]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):y(t,t.length)}function p(e){var t=this._events;if(void 0!==t){if("function"==typeof(e=t[e]))return 1;if(void 0!==e)return e.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function h(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o,i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){if((o=0<t.length?t[0]:o)instanceof Error)throw o;throw(i=new Error("Unhandled error."+(o?" ("+o.message+")":""))).context=o,i}if(void 0===(e=a[e]))return!1;if("function"==typeof e)r(e,this,t);else{var c=e.length,u=y(e,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.on=i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},i.prototype.off=i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.removeAllListeners=function(e){var t,r=this._events;if(void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},i.prototype.listeners=function(e){return l(this,e,!0)},i.prototype.rawListeners=function(e){return l(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return 0<this._eventsCount?n(this._events):[]}},7795:function(e){"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i,a=t.call(arguments,1),c=Math.max(0,n.length-a.length),u=[],s=0;s<c;s++)u.push("$"+s);return o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var r=n.apply(this,a.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,a.concat(t.call(arguments)))})),n.prototype&&((i=function(){}).prototype=n.prototype,o.prototype=new i,i.prototype=null),o}},4090:function(e,t,r){"use strict";r=r(7795),e.exports=Function.prototype.bind||r},7286:function(e,t,r){"use strict";var n=SyntaxError,o=Function,i=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}function u(){throw new i}function s(e){var t,r;return"%AsyncFunction%"===e?t=a("async function () {}"):"%GeneratorFunction%"===e?t=a("function* () {}"):"%AsyncGeneratorFunction%"===e?t=a("async function* () {}"):"%AsyncGenerator%"===e?(r=s("%AsyncGeneratorFunction%"))&&(t=r.prototype):"%AsyncIteratorPrototype%"!==e||(r=s("%AsyncGenerator%"))&&(t=p(r.prototype)),d[e]=t}var f=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,l=r(2636)(),p=Object.getPrototypeOf||function(e){return e.__proto__},y={},h="undefined"==typeof Uint8Array?b:p(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?b:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?b:Atomics,"%BigInt%":"undefined"==typeof BigInt?b:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?b:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?b:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?b:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?b:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?b:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):b,"%JSON%":"object"==typeof JSON?JSON:b,"%Map%":"undefined"==typeof Map?b:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?p((new Map)[Symbol.iterator]()):b,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?b:Promise,"%Proxy%":"undefined"==typeof Proxy?b:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?b:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?b:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?p((new Set)[Symbol.iterator]()):b,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):b,"%Symbol%":l?Symbol:b,"%SyntaxError%":n,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?b:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?b:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?b:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?b:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?b:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?b:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?b:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(4090),m=r(3198),g=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),O=b.call(Function.call,String.prototype.replace),j=b.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g;e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');var r=function(e){var t=j(e,0,1),r=j(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return O(e,S,(function(e,t,r,n){o[o.length]=r?O(n,P,"$1"):t||e})),o}(e),o=0<r.length?r[0]:"",a=function(e,t){var r,o=e;if(m(v,o)&&(o="%"+(r=v[o])[0]+"%"),m(d,o)){var a=d[o];if(void 0===(a=a===y?s(o):a)&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:a}}throw new n("intrinsic "+e+" does not exist!")}("%"+o+"%",t),u=(a.name,a.value),f=!1;(a=a.alias)&&(o=a[0],w(r,g([0,1],a)));for(var l=1,p=!0;l<r.length;l+=1){var h=r[l],b=j(h,0,1),A=j(h,-1);if(('"'===b||"'"===b||"`"===b||'"'===A||"'"===A||"`"===A)&&b!==A)throw new n("property names with quotes must have matching quotes");if("constructor"!==h&&p||(f=!0),m(d,b="%"+(o+="."+h)+"%"))u=d[b];else if(null!=u){if(!(h in u)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}u=c&&l+1>=r.length?(p=!!(A=c(u,h)))&&"get"in A&&!("originalValue"in A.get)?A.get:u[h]:(p=m(u,h),u[h]),p&&!f&&(d[b]=u)}}return u}},2636:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;return!("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length||1!==(r=Object.getOwnPropertySymbols(e)).length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t)||"function"==typeof Object.getOwnPropertyDescriptor&&(42!==(e=Object.getOwnPropertyDescriptor(e,t)).value||!0!==e.enumerable))}},3198:function(e,t,r){"use strict";r=r(4090),e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},1378:function(e){var t=36e5,r=864e5;function n(e,t,r,n){return t=1.5*r<=t,Math.round(e/r)+" "+n+(t?"s":"")}e.exports=function(e,o){o=o||{};var i=typeof e;if("string"==i&&0<e.length)return function(e){if(!(100<(e=String(e)).length)&&(e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e))){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*r;case"hours":case"hour":case"hrs":case"hr":case"h":return n*t;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}(e);if("number"==i&&isFinite(e))return(o.long?function(e){var o=Math.abs(e);return r<=o?n(e,o,r,"day"):t<=o?n(e,o,t,"hour"):6e4<=o?n(e,o,6e4,"minute"):1e3<=o?n(e,o,1e3,"second"):e+" ms"}:function(e){var n=Math.abs(e);return r<=n?Math.round(e/r)+"d":t<=n?Math.round(e/t)+"h":6e4<=n?Math.round(e/6e4)+"m":1e3<=n?Math.round(e/1e3)+"s":e+"ms"})(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c=(o="function"==typeof Set&&Set.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o&&n&&"function"==typeof n.get?n.get:null),u=o&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,h=Function.prototype.toString,d=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,m=String.prototype.toUpperCase,g=String.prototype.toLowerCase,w=RegExp.prototype.test,O=Array.prototype.concat,j=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&-1e3<e&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e)return e=String(n),n=v.call(t,e.length+1),b.call(e,r,"$&_")+"."+b.call(b.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}return b.call(t,r,"$&_")}var T=(r=r(3260).custom)&&N(r)?r:null;function M(e,t,r){return(t="double"===(r.quoteStyle||t)?'"':"'")+e+t}function I(e){return!("[object Array]"!==D(e)||C&&"object"==typeof e&&C in e)}function N(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return 1;if(e&&"object"==typeof e&&E)try{return E.call(e),1}catch(e){}}e.exports=function e(t,r,n,o){var y=r||{};if(U(y,"quoteStyle")&&"single"!==y.quoteStyle&&"double"!==y.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(y,"maxStringLength")&&("number"==typeof y.maxStringLength?y.maxStringLength<0&&y.maxStringLength!==1/0:null!==y.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');if("boolean"!=typeof(ee=!U(y,"customInspect")||y.customInspect)&&"symbol"!==ee)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(y,"indent")&&null!==y.indent&&"\t"!==y.indent&&!(parseInt(y.indent,10)===y.indent&&0<y.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(y,"numericSeparator")&&"boolean"!=typeof y.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m,w=y.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n="... "+(n=t.length-r.maxStringLength)+" more character"+(1<n?"s":"");return e(v.call(t,0,r.maxStringLength),r)+n}return M(t=b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",r)}(t,y);if("number"==typeof t)return 0===t?0<1/0/t?"0":"-0":(r=String(t),w?R(t,r):r);if("bigint"==typeof t){var P=String(t)+"n";return w?R(t,P):P}if((w=void 0===y.depth?5:y.depth)<=(n=void 0===n?0:n)&&0<w&&"object"==typeof t)return I(t)?"[Array]":"[Object]";if(P=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&0<e.indent))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}(y,n),void 0===o)o=[];else if(0<=H(o,t))return"[Circular]";function k(t,r,i){return r&&(o=S.call(o)).push(r),i?(i={depth:y.depth},U(y,"quoteStyle")&&(i.quoteStyle=y.quoteStyle),e(t,i,n+1,o)):e(t,y,n+1,o)}if("function"==typeof t){w=function(e){return e.name?e.name:(e=d.call(h.call(e),/^function\s*([\w$]+)/))?e[1]:null}(t);var L=J(t,k);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(0<L.length?" { "+j.call(L,", ")+" }":"")}if(N(t))return L=_?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t),"object"!=typeof t||_?L:B(L);if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var V="<"+g.call(String(t.nodeName)),K=t.attributes||[],z=0;z<K.length;z++)V+=" "+K[z].name+"="+M((m=K[z].value,b.call(String(m),/"/g,""")),"double",y);return V+=">",t.childNodes&&t.childNodes.length&&(V+="..."),V+"</"+g.call(String(t.nodeName))+">"}if(I(t)){if(0===t.length)return"[]";var Q=J(t,k);return P&&!function(e){for(var t=0;t<e.length;t++)if(0<=H(e[t],"\n"))return!1;return!0}(Q)?"["+$(Q,P)+"]":"[ "+j.call(Q,", ")+" ]"}if(!("[object Error]"!==D(Q=t)||C&&"object"==typeof Q&&C in Q)){var Z=J(t,k);return"cause"in t&&!x.call(t,"cause")?"{ ["+String(t)+"] "+j.call(O.call("[cause]: "+k(t.cause),Z),", ")+" }":0===Z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(Z,", ")+" }"}if("object"==typeof t&&ee){if(T&&"function"==typeof t[T])return t[T]();if("symbol"!==ee&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var Y=[];return a.call(t,(function(e,r){Y.push(k(r,t,!0)+" => "+k(e,t))})),G("Map",i.call(t),Y,P)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var X=[];return u.call(t,(function(e){X.push(k(e,t))})),G("Set",c.call(t),X,P)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return W("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return W("WeakSet");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{return l.call(e),!0}catch(e){}return!1}(t))return W("WeakRef");if(!("[object Number]"!==D(Q=t)||C&&"object"==typeof Q&&C in Q))return B(k(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return B(k(A.call(t)));if(!("[object Boolean]"!==D(Z=t)||C&&"object"==typeof Z&&C in Z))return B(p.call(t));if(!("[object String]"!==D(ee=t)||C&&"object"==typeof ee&&C in ee))return B(k(String(t)));if(("[object Date]"!==D(Q=t)||C&&"object"==typeof Q&&C in Q)&&("[object RegExp]"!==D(te=t)||C&&"object"==typeof te&&C in te)){Z=J(t,k);var ee=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=(Q=t instanceof Object?"":"null prototype",!ee&&C&&Object(t)===t&&C in t?v.call(D(t),8,-1):Q?"Object":"");return Q=(!ee&&"function"==typeof t.constructor&&t.constructor.name?t.constructor.name+" ":"")+(te||Q?"["+j.call(O.call([],te||[],Q||[]),": ")+"] ":""),0===Z.length?Q+"{}":P?Q+"{"+$(Z,P)+"}":Q+"{ "+j.call(Z,", ")+" }"}return String(t)};var L=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return L.call(e,t)}function D(e){return y.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function q(e){var t=e.charCodeAt(0);return(e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t])?"\\"+e:"\\x"+(t<16?"0":"")+m.call(t.toString(16))}function B(e){return"Object("+e+")"}function W(e){return e+" { ? }"}function G(e,t,r,n){return e+" ("+t+") {"+(n?$(r,n):j.call(r,", "))+"}"}function $(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=I(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=U(e,o)?t(e[o],e):""}var i,a="function"==typeof k?k(e):[];if(_)for(var c={},u=0;u<a.length;u++)c["$"+a[u]]=a[u];for(i in e)U(e,i)&&(r&&String(Number(i))===i&&i<e.length||_&&c["$"+i]instanceof Symbol||(w.call(/[^\w$]/,i)?n.push(t(i,e)+": "+t(e[i],e)):n.push(i+": "+t(e[i],e))));if("function"==typeof k)for(var s=0;s<a.length;s++)x.call(e,a[s])&&n.push("["+t(a[s])+"]: "+t(e[a[s]],e));return n}},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},9126:function(e,t,r){"use strict";var n=r(5690),o=r(9166);r=r(5527),e.exports={formats:r,parse:o,stringify:n}},9166:function(e,t,r){"use strict";function n(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=0<r.depth&&/(\[[^[\]]*])/.exec(o),s=[];if(e=c?o.slice(0,c.index):o){if(!r.plainObjects&&i.call(Object.prototype,e)&&!r.allowPrototypes)return;s.push(e)}for(var f=0;0<r.depth&&null!==(c=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+o.slice(c.index)+"]"),function(e,t,r,n){for(var o=n?t:u(t,r),i=e.length-1;0<=i;--i){var a,c,s,f=e[i];"[]"===f&&r.parseArrays?a=[].concat(o):(a=r.plainObjects?Object.create(null):{},c="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,s=parseInt(c,10),r.parseArrays||""!==c?!isNaN(s)&&f!==c&&String(s)===c&&0<=s&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:a[c]=o:a={0:o}),o=a}return o}(s,t,r,n)}}var o=r(2493),i=Object.prototype.hasOwnProperty,a=Array.isArray,c={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e};e.exports=function(e,t){var r=function(e){if(!e)return c;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=(void 0===e.charset?c:e).charset;return{allowDots:void 0===e.allowDots?c.allowDots:!!e.allowDots,allowPrototypes:("boolean"==typeof e.allowPrototypes?e:c).allowPrototypes,allowSparse:("boolean"==typeof e.allowSparse?e:c).allowSparse,arrayLimit:("number"==typeof e.arrayLimit?e:c).arrayLimit,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:c).charsetSentinel,comma:("boolean"==typeof e.comma?e:c).comma,decoder:("function"==typeof e.decoder?e:c).decoder,delimiter:("string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e:c).delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:c.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof e.interpretNumericEntities?e:c).interpretNumericEntities,parameterLimit:("number"==typeof e.parameterLimit?e:c).parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:("boolean"==typeof e.plainObjects?e:c).plainObjects,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:c).strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var r,n,s,f,l={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,y=(e=t.parameterLimit===1/0?void 0:t.parameterLimit,p.split(t.delimiter,e)),h=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<y.length;++r)0===y[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[r]?d="utf-8":"utf8=%26%2310003%3B"===y[r]&&(d="iso-8859-1"),h=r,r=y.length);for(r=0;r<y.length;++r)r!==h&&((f=-1===(f=-1===(f=(n=y[r]).indexOf("]="))?n.indexOf("="):f+1)?(s=t.decoder(n,c.decoder,d,"key"),t.strictNullHandling?null:""):(s=t.decoder(n.slice(0,f),c.decoder,d,"key"),o.maybeMap(u(n.slice(f+1),t),(function(e){return t.decoder(e,c.decoder,d,"value")}))))&&t.interpretNumericEntities&&"iso-8859-1"===d&&(f=f.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))),-1<n.indexOf("[]=")&&(f=a(f)?[f]:f),i.call(l,s)?l[s]=o.combine(l[s],f):l[s]=f);return l}(e,r):e,f=r.plainObjects?Object.create(null):{},l=Object.keys(s),p=0;p<l.length;++p){var y=n(y=l[p],s[y],r,"string"==typeof e);f=o.merge(f,y,r)}return!0===r.allowSparse?f:o.compact(f)}},5690:function(e,t,r){"use strict";function n(e,t){p.apply(e,f(t)?t:[t])}function o(e,t,r,c,u,s,p,y,v,b,m,g,w,O,j){for(var S,P=e,A=j,k=0,E=!1;void 0!==(A=A.get(d))&&!E;){var _=A.get(e);if(k+=1,void 0!==_){if(_===k)throw new RangeError("Cyclic object value");E=!0}void 0===A.get(d)&&(k=0)}if("function"==typeof p?P=p(t,P):P instanceof Date?P=b(P):"comma"===r&&f(P)&&(P=a.maybeMap(P,(function(e){return e instanceof Date?b(e):e}))),null===P){if(c)return s&&!w?s(t,h.encoder,O,"key",m):t;P=""}if("string"==typeof(S=P)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||a.isBuffer(P)){if(s){var C=w?t:s(t,h.encoder,O,"key",m);if("comma"===r&&w){for(var x=l.call(String(P),","),F="",R=0;R<x.length;++R)F+=(0===R?"":",")+g(s(x[R],h.encoder,O,"value",m));return[g(C)+"="+F]}return[g(C)+"="+g(s(P,h.encoder,O,"value",m))]}return[g(t)+"="+g(String(P))]}var T,M=[];if(void 0===P)return M;T="comma"===r&&f(P)?[{value:0<P.length?P.join(",")||null:void 0}]:f(p)?p:(C=Object.keys(P),y?C.sort(y):C);for(var I=0;I<T.length;++I){var N,L=T[I],U="object"==typeof L&&void 0!==L.value?L.value:P[L];u&&null===U||(N=f(P)?"function"==typeof r?r(t,L):t:t+(v?"."+L:"["+L+"]"),j.set(e,k),(L=i()).set(d,j),n(M,o(U,N,r,c,u,s,p,y,v,b,m,g,w,O,L)))}return M}var i=r(4294),a=r(2493),c=r(5527),u=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},f=Array.isArray,l=String.prototype.split,p=Array.prototype.push,y=Date.prototype.toISOString,h=(r=c.default,{addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:r,formatter:c.formatters[r],indices:!1,serializeDate:function(e){return y.call(e)},skipNulls:!1,strictNullHandling:!1}),d={};e.exports=function(e,t){var r=e,a=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=c.default;if(void 0!==e.format){if(!u.call(c.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=c.formatters[r],o=h.filter;return"function"!=typeof e.filter&&!f(e.filter)||(o=e.filter),{addQueryPrefix:("boolean"==typeof e.addQueryPrefix?e:h).addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:h).charsetSentinel,delimiter:(void 0===e.delimiter?h:e).delimiter,encode:("boolean"==typeof e.encode?e:h).encode,encoder:("function"==typeof e.encoder?e:h).encoder,encodeValuesOnly:("boolean"==typeof e.encodeValuesOnly?e:h).encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:("function"==typeof e.serializeDate?e:h).serializeDate,skipNulls:("boolean"==typeof e.skipNulls?e:h).skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:h).strictNullHandling}}(t);"function"==typeof a.filter?r=(0,a.filter)("",r):f(a.filter)&&(y=a.filter);var l=[];if("object"!=typeof r||null===r)return"";e=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t&&!t.indices?"repeat":"indices";var p=s[e],y=y||Object.keys(r);a.sort&&y.sort(a.sort);for(var d=i(),v=0;v<y.length;++v){var b=y[v];a.skipNulls&&null===r[b]||n(l,o(r[b],b,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d))}return t=l.join(a.delimiter),e=!0===a.addQueryPrefix?"?":"",a.charsetSentinel&&("iso-8859-1"===a.charset?e+="utf8=%26%2310003%3B&":e+="utf8=%E2%9C%93&"),0<t.length?e+t:""}},2493:function(e,t,r){"use strict";function n(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r}var o=r(5527),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();e.exports={arrayToObject:n,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],c=Object.keys(i),u=0;u<c.length;++u){var s=c[u],f=i[s];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:i,prop:s}),r.push(f))}return function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){if(e=e.replace(/\+/g," "),"iso-8859-1"===r)return e.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(e)}catch(t){return e}},encode:function(e,t,r,n,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var f=a.charCodeAt(s);45===f||46===f||95===f||126===f||48<=f&&f<=57||65<=f&&f<=90||97<=f&&f<=122||i===o.RFC1738&&(40===f||41===f)?u+=a.charAt(s):f<128?u+=c[f]:f<2048?u+=c[192|f>>6]+c[128|63&f]:f<55296||57344<=f?u+=c[224|f>>12]+c[128|f>>6&63]+c[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&a.charCodeAt(s)),u+=c[240|f>>18]+c[128|f>>12&63]+c[128|f>>6&63]+c[128|63&f])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var c=t;return a(t)&&!a(r)&&(c=n(t,o)),a(t)&&a(r)?(r.forEach((function(r,n){var a;i.call(t,n)?(a=t[n])&&"object"==typeof a&&r&&"object"==typeof r?t[n]=e(a,r,o):t.push(r):t[n]=r})),t):Object.keys(r).reduce((function(t,n){var a=r[n];return i.call(t,n)?t[n]=e(t[n],a,o):t[n]=a,t}),c)}}},4294:function(e,t,r){"use strict";function n(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r}var o=r(7286),i=r(2680),a=r(9500),c=o("%TypeError%"),u=o("%WeakMap%",!0),s=o("%Map%",!0),f=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),y=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0);e.exports=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new c("Side channel does not contain "+a(e))},get:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return f(e,o)}else if(s){if(t)return y(t,o)}else if(r)return function(e,t){return(t=n(e,t))&&t.value}(r,o)},has:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(e)return p(e,o)}else if(s){if(t)return d(t,o)}else if(r)return!!n(r,o);return!1},set:function(o,i){var a,c;u&&o&&("object"==typeof o||"function"==typeof o)?(e=e||new u,l(e,o,i)):s?(t=t||new s,h(t,o,i)):(c=i,(o=n(a=r=r||{key:{},next:null},i=o))?o.value=c:a.next={key:i,next:a.next,value:c})}};return o}},9425:function(e,t){var r;void 0===(r="function"==typeof(r=function(){var e="function"==typeof Object.getOwnPropertySymbols;return{create:function(){var e=Object.create(this),t="string"==typeof e.__init?e.__init:"init";return"function"==typeof e[t]&&e[t].apply(e,arguments),e},mixin:function(t,r){var n=r||this,o=/\b_super\b/,i=Object.getPrototypeOf(n)||n.prototype,a={},c=t,u=function(e){var t=Object.getOwnPropertyDescriptor(c,e);!a[e]&&t&&(a[e]=t)};do{Object.getOwnPropertyNames(c).forEach(u),e&&Object.getOwnPropertySymbols(c).forEach(u)}while((c=Object.getPrototypeOf(c))&&Object.getPrototypeOf(c));var s=function(t){var r=a[t];"function"==typeof r.value&&o.test(r.value)&&(r.value=function(t,r,n,o){var i="function"==typeof r,a=function(){var e=this._super;this._super=i?r:t[n];var a=o.apply(this,arguments);return this._super=e,a};return i&&(Object.keys(r).forEach((function(e){a[e]=r[e]})),e&&Object.getOwnPropertySymbols(r).forEach((function(e){a[e]=r[e]}))),a}(i,n[t],t,r.value)),Object.defineProperty(n,t,r)};return Object.keys(a).forEach(s),e&&Object.getOwnPropertySymbols(a).forEach(s),n},extend:function(e,t){return this.mixin(e,Object.create(t||this))},proxy:function(e){var t=this[e],r=Array.prototype.slice.call(arguments,1);return r.unshift(this),t.bind.apply(t,r)}}})?r.apply(t,[]):r)||(e.exports=r)},3260:function(){}},t={},function r(n){var o=t[n];return void 0!==o||(o=t[n]={exports:{}},e[n].call(o.exports,o,o.exports,r)),o.exports}(3219);var e,t}));
|