@feathersjs/client 5.0.33 → 5.0.35

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see feathers.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.feathers=e():t.feathers=e()}(this,(function(){return function(){var t={46:function(t){"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(r,n){function o(r){t.removeListener(e,i),n(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}d(t,e,i,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&d(t,"error",e,{once:!0})}(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var o,i,a,f;if(u(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),void 0===a)a=i[e]=r,++t._eventsCount;else if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(t))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,f=s,console&&console.warn&&console.warn(f)}return t}function s(){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)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=s.bind(n);return o.listener=r,n.wrapFn=o,o}function p(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):h(o,o.length)}function y(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function d(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(i){n.once&&t.removeEventListener(e,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),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(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var f=c.length,s=h(c,f);for(r=0;r<f;++r)n(s[r],this,e)}return!0},i.prototype.addListener=function(t,e){return f(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return f(this,t,e,!0)},i.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,n,o,i,a;if(u(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return p(this,t,!0)},i.prototype.rawListeners=function(t){return p(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},i.prototype.listenerCount=y,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},220:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.authentication=void 0;var n=r(4271);e.authentication=function(){return function(t,e){var r=t.app,o=t.params,i=t.path,a=t.method,u=t.app.authentication;return(0,n.stripSlashes)(u.options.path)===i&&"create"===a?e():Promise.resolve(r.get("authentication")).then((function(e){e&&(t.params=Object.assign({},e,o))})).then(e)}}},237:function(t,e,r){"use strict";var n=r(7575),o=r(6889),i=r(1712),a=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,f=Array.prototype.push,s=function(t,e){f.apply(t,c(e)?e:[e])},l=Date.prototype.toISOString,p=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h={},d=function t(e,r,i,a,u,f,l,p,d,v,b,m,g,w,O,j,S,P){for(var _,E=e,A=P,k=0,x=!1;void 0!==(A=A.get(h))&&!x;){var M=A.get(e);if(k+=1,void 0!==M){if(M===k)throw new RangeError("Cyclic object value");x=!0}void 0===A.get(h)&&(k=0)}if("function"==typeof v?E=v(r,E):E instanceof Date?E=g(E):"comma"===i&&c(E)&&(E=o.maybeMap(E,(function(t){return t instanceof Date?g(t):t}))),null===E){if(f)return d&&!j?d(r,y.encoder,S,"key",w):r;E=""}if("string"==typeof(_=E)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(E))return d?[O(j?r:d(r,y.encoder,S,"key",w))+"="+O(d(E,y.encoder,S,"value",w))]:[O(r)+"="+O(String(E))];var T,I=[];if(void 0===E)return I;if("comma"===i&&c(E))j&&d&&(E=o.maybeMap(E,d)),T=[{value:E.length>0?E.join(",")||null:void 0}];else if(c(v))T=v;else{var C=Object.keys(E);T=b?C.sort(b):C}var R=p?String(r).replace(/\./g,"%2E"):String(r),L=a&&c(E)&&1===E.length?R+"[]":R;if(u&&c(E)&&0===E.length)return L+"[]";for(var D=0;D<T.length;++D){var F=T[D],N="object"==typeof F&&F&&void 0!==F.value?F.value:E[F];if(!l||null!==N){var B=m&&p?String(F).replace(/\./g,"%2E"):String(F),U=c(E)?"function"==typeof i?i(L,B):L:L+(m?"."+B:"["+B+"]");P.set(e,k);var H=n();H.set(h,P),s(I,t(N,U,i,a,u,f,l,p,"comma"===i&&j&&c(E)?null:d,v,b,m,g,w,O,j,S,H))}}return I};t.exports=function(t,e){var r,o=t,f=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,o=i.formatters[r],f=y.filter;if(("function"==typeof t.filter||c(t.filter))&&(f=t.filter),n=t.arrayFormat in u?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:f,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof f.filter?o=(0,f.filter)("",o):c(f.filter)&&(r=f.filter);var l=[];if("object"!=typeof o||null===o)return"";var p=u[f.arrayFormat],h="comma"===p&&f.commaRoundTrip;r||(r=Object.keys(o)),f.sort&&r.sort(f.sort);for(var v=n(),b=0;b<r.length;++b){var m=r[b],g=o[m];f.skipNulls&&null===g||s(l,d(g,m,p,h,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,v))}var w=l.join(f.delimiter),O=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),w.length>0?O+w:""}},351:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.SuperagentClient=void 0;var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(i=[{key:"request",value:function(t,e){var r=this.connection(t.method,t.url).set(this.options.headers||{}).set("Accept","application/json").set(e.connection||{}).set(t.headers||{}).type(t.type||"json");return new Promise((function(e,n){r.set(t.headers),t.body&&r.send(t.body),r.end((function(t,r){if(t){try{var o=t.response;(t=JSON.parse(t.response.text)).response=o}catch(t){}return n(t)}e(r&&r.body)}))}))}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);e.SuperagentClient=f},522:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function u(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AuthenticationClient=void 0;var y=r(6380),h=r(2408),d=function(t){function e(t,r){return f(this,e),o=this,a=[t,"OauthError",401,"oauth-error",r],i=l(i=e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(o,s()?Reflect.construct(i,a||[],l(o).constructor):i.apply(o,a));var o,i,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),u(e)}(y.FeathersError),v=function(t,e){var r=new RegExp("(?:&?)".concat(e,"=([^&]*)")),n=t.hash?t.hash.match(r):null;return null!==n?[o(n,2)[1],r]:[null,r]},b=function(){return u((function t(e,r){f(this,t);var n=e.io,o=new h.StorageWrapper(e.get("storage")||r.storage);this.app=e,this.options=r,this.authenticated=!1,this.app.set("storage",o),n&&this.handleSocket(n)}),[{key:"service",get:function(){return this.app.service(this.options.path)}},{key:"storage",get:function(){return this.app.get("storage")}},{key:"handleSocket",value:function(t){var e=this;t.on("disconnect",(function(){e.authenticated&&e.reAuthenticate(!0)}))}},{key:"getFromLocation",value:function(t){var e=o(v(t,this.options.locationKey),2),r=e[0],n=e[1];if(null!==r)return t.hash=t.hash.replace(n,""),Promise.resolve(r);var i=o(v(t,this.options.locationErrorKey),2),a=i[0],u=i[1];return null!==a?(t.hash=t.hash.replace(u,""),Promise.reject(new d(decodeURIComponent(a)))):Promise.resolve(null)}},{key:"setAccessToken",value:function(t){return this.storage.setItem(this.options.storageKey,t)}},{key:"getAccessToken",value:function(){var t=this;return this.storage.getItem(this.options.storageKey).then((function(e){return!e&&"undefined"!=typeof window&&window.location?t.getFromLocation(window.location):e||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(t,e){var r=this;if(t.code>400&&t.code<408){var n=this.removeAccessToken().then((function(){return r.reset()}));return"logout"===e?n:n.then((function(){return Promise.reject(t)}))}return this.reset().then((function(){return Promise.reject(t)}))}},{key:"reAuthenticate",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=this.app.get("authentication");return o&&!0!==e||(o=this.getAccessToken().then((function(e){return e?t.authenticate({strategy:r||t.options.jwtStrategy,accessToken:e},n):t.handleError(new y.NotAuthenticated("No accessToken found in storage"),"authenticate")})),this.app.set("authentication",o)),o}},{key:"authenticate",value:function(t,e){var r=this;if(!t)return this.reAuthenticate();var n=this.service.create(t,e).then((function(t){var e=t.accessToken;return r.authenticated=!0,r.app.emit("login",t),r.app.emit("authenticated",t),r.setAccessToken(e).then((function(){return t}))})).catch((function(t){return r.handleError(t,"authenticate")}));return this.app.set("authentication",n),n}},{key:"logout",value:function(){var t=this;return Promise.resolve(this.app.get("authentication")).then((function(){return t.service.remove(null).then((function(e){return t.removeAccessToken().then((function(){return t.reset()})).then((function(){return t.app.emit("logout",e),e}))}))})).catch((function(e){return t.handleError(e,"logout")}))}}])}();e.AuthenticationClient=b},528:function(t,e,r){"use strict";var n,o=r(9629),i=r(9838),a=r(9110),u=r(1155),c=r(4943),f=r(5731),s=r(3468),l=r(2140),p=r(8479),y=r(8449),h=r(8129),d=r(2387),v=r(5865),b=r(1319),m=r(6882),g=Function,w=function(t){try{return g('"use strict"; return ('+t+").constructor;")()}catch(t){}},O=r(9336),j=r(4940),S=function(){throw new s},P=O?function(){try{return S}catch(t){try{return O(arguments,"callee").get}catch(t){return S}}}():S,_=r(3558)(),E=r(6369),A=r(7345),k=r(7859),x=r(6095),M=r(4531),T={},I="undefined"!=typeof Uint8Array&&E?E(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&E?E((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&E?E((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&E?E(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":f,"%ThrowTypeError%":P,"%TypedArray%":I,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":x,"%Object.defineProperty%":j,"%Object.getPrototypeOf%":A,"%Math.abs%":p,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":v,"%Math.round%":b,"%Math.sign%":m,"%Reflect.getPrototypeOf%":k};if(E)try{null.error}catch(t){var R=E(E(t));C["%Error.prototype%"]=R}var L=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&E&&(r=E(o.prototype))}return C[e]=r,r},D={__proto__:null,"%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"]},F=r(9138),N=r(8554),B=F.call(M,Array.prototype.concat),U=F.call(x,Array.prototype.splice),H=F.call(M,String.prototype.replace),q=F.call(M,String.prototype.slice),W=F.call(M,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,$=function(t,e){var r,n=t;if(N(D,n)&&(n="%"+(r=D[n])[0]+"%"),N(C,n)){var o=C[n];if(o===T&&(o=L(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new f("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new f("invalid intrinsic syntax, expected opening `%`");var n=[];return H(t,G,(function(t,e,r,o){n[n.length]=r?H(o,K,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=$("%"+n+"%",e),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],U(r,B([0,1],c)));for(var l=1,p=!0;l<r.length;l+=1){var y=r[l],h=q(y,0,1),d=q(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new f("property names with quotes must have matching quotes");if("constructor"!==y&&p||(u=!0),N(C,i="%"+(n+="."+y)+"%"))a=C[i];else if(null!=a){if(!(y in a)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(O&&l+1>=r.length){var v=O(a,y);a=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[y]}else p=N(a,y),a=a[y];p&&!u&&(C[i]=a)}}return a}},539:function(t,e){"use strict";function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.copyFnProperties=e.copyProperties=void 0,e.copyProperties=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];for(var i=0,a=n;i<a.length;i++){var u,c=a[i],f=r(Object.keys(c).concat(Object.getOwnPropertySymbols(c)));try{for(f.s();!(u=f.n()).done;){var s=u.value,l=Object.getOwnPropertyDescriptor(c,s);l&&!Object.prototype.hasOwnProperty.call(t,s)&&Object.defineProperty(t,s,l)}}catch(t){f.e(t)}finally{f.f()}}return t},e.copyFnProperties=function(t,e){try{for(var r=0,n=["name","length"];r<n.length;r++){var o=n[r],i=e[o];Object.defineProperty(t,o,{value:i})}}catch(t){}return t}},694:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventHook=function(t,e){var r=(0,o.getServiceOptions)(t.self).events,n=o.defaultEventMap[t.method]||null;return t.event=n,e().then((function(){"string"!=typeof t.event||r.includes(t.event)||(Array.isArray(t.result)?t.result:[t.result]).forEach((function(e){return t.self.emit(t.event,e,t)}))}))},e.eventMixin=function(t){return"function"==typeof t.on&&"function"==typeof t.emit||Object.assign(t,n.EventEmitter.prototype),t};var n=r(46),o=r(2452)},745:function(t,e,r){"use strict";function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(n=function(){return!!t})()}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function s(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0}),e.setMiddleware=e.getMiddleware=e.setManager=e.getManager=e.convertOptions=e.HookManager=e.BaseHookContext=e.HOOKS=void 0;var p=r(539);e.HOOKS=Symbol.for("@feathersjs/hooks");var y=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),Object.defineProperty(this,"self",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,e)}),[{key:"toJSON",value:function(){for(var t=this,e=Object.keys(this),r=Object.getPrototypeOf(this);r;)e.push.apply(e,function(t){if(Array.isArray(t))return u(t)}(n=Object.keys(r))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(n)||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.")}()),r=Object.getPrototypeOf(r);var n;return e.reduce((function(e,r){return e[r]=t[r],e}),{})}}])}();e.BaseHookContext=y;var h=function(){return s((function t(){c(this,t),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_middleware",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_props",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_defaults",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}),[{key:"parent",value:function(t){return this._parent=t,this}},{key:"middleware",value:function(t){return this._middleware=null!=t&&t.length?t:null,this}},{key:"getMiddleware",value:function(){var t,e=null===(t=this._parent)||void 0===t?void 0:t.getMiddleware();return e&&this._middleware?e.concat(this._middleware):e||this._middleware}},{key:"collectMiddleware",value:function(t,e){var r=b(t),n=this.getMiddleware();return r&&n?r.concat(n):r||n||[]}},{key:"props",value:function(t){return this._props||(this._props={}),(0,p.copyProperties)(this._props,t),this}},{key:"getProps",value:function(){var t,e=null===(t=this._parent)||void 0===t?void 0:t.getProps();return e&&this._props?(0,p.copyProperties)({},e,this._props):e||this._props||null}},{key:"params",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this._params=e,this}},{key:"getParams",value:function(){var t,e=null===(t=this._parent)||void 0===t?void 0:t.getParams();return e&&this._params?e.concat(this._params):e||this._params}},{key:"defaults",value:function(t){return this._defaults=t,this}},{key:"getDefaults",value:function(t,e,r){var n,o="function"==typeof this._defaults?this._defaults(t,e,r):null,i=null===(n=this._parent)||void 0===n?void 0:n.getDefaults(t,e,r);return i&&o?Object.assign({},i,o):i||o}},{key:"getContextClass",value:function(){var t=function(t){function e(t){return c(this,e),r=this,u=[t],i=o(i=e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(r,n()?Reflect.construct(i,u||[],o(r).constructor):i.apply(r,u));var r,i,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(e,t),s(e)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:y),e=this.getParams(),r=this.getProps();return e&&e.forEach((function(e,n){if(void 0!==(null==r?void 0:r[e]))throw new Error("Hooks can not have a property and param named '".concat(e,"'. Use .defaults instead."));Object.defineProperty(t.prototype,e,{enumerable:!0,get:function(){return null==this?void 0:this.arguments[n]},set:function(t){this.arguments[n]=t}})})),r&&(0,p.copyProperties)(t.prototype,r),t}},{key:"initializeContext",value:function(t,e,r){var n=this._parent?this._parent.initializeContext(t,e,r):r,o=this.getDefaults(t,e,n);if(t&&(n.self=t),n.arguments=e,o)for(var i=0,a=Object.keys(o);i<a.length;i++){var u=a[i];void 0===n[u]&&(n[u]=o[u])}return n}}])}();function d(t){return t&&t[e.HOOKS]||null}function v(t,r){var n=d(t);return t[e.HOOKS]=r.parent(n),t}function b(t){var e=d(t);return e?e.getMiddleware():null}e.HookManager=h,e.convertOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?Array.isArray(t)?(new h).middleware(t):t:new h},e.getManager=d,e.setManager=v,e.getMiddleware=b,e.setMiddleware=function(t,e){return v(t,(new h).middleware(e))}},1030:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var u=a(r(8928)),c=r(6380),f=r(4271);function s(t){if("ECONNREFUSED"===t.code)throw new c.Unavailable(t.message,f._.pick(t,"address","port","config"));throw(0,c.convert)(t)}var l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=(0,f.stripSlashes)(e.name),this.options=e.options,this.connection=e.connection,this.base="".concat(e.base,"/").concat(this.name)},e=[{key:"makeUrl",value:function(t,e,r){var n=this.base;return r&&Object.keys(r).forEach((function(t){n=n.replace(":".concat(t),r[t])})),t=t||{},null!=e&&(n+="/".concat(encodeURIComponent(e))),n+this.getQuery(t)}},{key:"getQuery",value:function(t){if(0!==Object.keys(t).length){var e=u.default.stringify(t);return"?".concat(e)}return""}},{key:"methods",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){var r="_".concat(e);t[r]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request({body:t,url:this.makeUrl(r.query,null,r.route),method:"POST",headers:Object.assign({"Content-Type":"application/json","X-Service-Method":e},r.headers)},r).catch(s)},t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this[r](t,e)}})),this}},{key:"_find",value:function(t){return this.request({url:this.makeUrl(t.query,null,t.route),method:"GET",headers:Object.assign({},t.headers)},t).catch(s)}},{key:"find",value:function(t){return this._find(t)}},{key:"_get",value:function(t,e){return void 0===t?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(e.query,t,e.route),method:"GET",headers:Object.assign({},e.headers)},e).catch(s)}},{key:"get",value:function(t,e){return this._get(t,e)}},{key:"_create",value:function(t,e){return this.request({url:this.makeUrl(e.query,null,e.route),body:t,method:"POST",headers:Object.assign({"Content-Type":"application/json"},e.headers)},e).catch(s)}},{key:"create",value:function(t,e){return this._create(t,e)}},{key:"_update",value:function(t,e,r){return void 0===t?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t,r.route),body:e,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"update",value:function(t,e,r){return this._update(t,e,r)}},{key:"_patch",value:function(t,e,r){return void 0===t?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t,r.route),body:e,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"patch",value:function(t,e,r){return this._patch(t,e,r)}},{key:"_remove",value:function(t,e){return void 0===t?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(e.query,t,e.route),method:"DELETE",headers:Object.assign({},e.headers)},e).catch(s)}},{key:"remove",value:function(t,e){return this._remove(t,e)}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();e.Base=l},1146:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.populateHeader=e.authentication=void 0;var n=r(220);Object.defineProperty(e,"authentication",{enumerable:!0,get:function(){return n.authentication}});var o=r(1742);Object.defineProperty(e,"populateHeader",{enumerable:!0,get:function(){return o.populateHeader}})},1155:function(t){"use strict";t.exports=RangeError},1156:function(t,e,r){t.exports=r(4884)},1292:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},1319:function(t){"use strict";t.exports=Math.round},1712:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},1742:function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.populateHeader=void 0,e.populateHeader=function(){return function(t,e){var n,o,i,a=t.app,u=t.params.accessToken,c=a.authentication;if(a.rest&&u){var f=c.options,s=f.scheme,l=f.header,p="".concat(s," ").concat(u);t.params.headers=Object.assign({},(n={},i=p,(o=function(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}(o=l))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n),t.params.headers)}return e()}}},1986:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2110:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legacyDecorator=e.hookDecorator=e.objectHooks=e.functionHooks=e.getOriginal=void 0;var n=r(5054),o=r(745),i=r(539);function a(t){return"function"==typeof t.original?a(t.original):t}function u(t,e){if("function"!=typeof t)throw new Error("Can not apply hooks to non-function");var r=(0,o.convertOptions)(e),u=function(){for(var t=this,e=u.Context,o=u.original,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[a.length-1]instanceof e,s=f?a.pop():new e,l=r.initializeContext(this,a,s),p=[function(t,e){return e().then((function(){return f?t:t.result}))}],y=r.collectMiddleware(this,a);return y&&Array.prototype.push.apply(p,y),p.push((function(e,r){return Object.prototype.hasOwnProperty.call(l,"result")?r():Promise.resolve(o.apply(t,e.arguments)).then((function(t){return e.result=t,r()}))})),(0,n.compose)(p).call(this,l)};return(0,i.copyFnProperties)(u,t),(0,i.copyProperties)(u,t),(0,o.setManager)(u,r),Object.assign(u,{original:a(t),Context:r.getContextClass(),createContext:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new u.Context(t)}})}e.getOriginal=a,e.functionHooks=u,e.objectHooks=function(t,e){if(Array.isArray(e))return(0,o.setMiddleware)(t,e);for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r],a="function"==typeof t[i]?t:t.prototype,c=a&&a[i];if("function"!=typeof c)throw new Error("Can not apply hooks. '".concat(i,"' is not a function"));var f=(0,o.convertOptions)(e[i]);a[i]=u(c,f.props({method:i}))}return t},e.hookDecorator=function(t){return function(e,r){var n=(0,o.convertOptions)(t);if("class"===r.kind)return(0,o.setManager)(e.prototype,n),e;if("method"===r.kind){var i=String(r.name);return u(e,n.props({method:i}))}throw new Error("Can not apply hooks.")}},e.legacyDecorator=function(t){return function(e,r,n){var i=(0,o.convertOptions)(t);if(!n)return(0,o.setManager)(e.prototype,i),e;var a=n.value;if("function"!=typeof a)throw new Error("Can not apply hooks. '".concat(r,"' is not a function"));return n.value=u(a,i.props({method:r})),n}}},2140:function(t){"use strict";t.exports=URIError},2387:function(t){"use strict";t.exports=Math.min},2408:function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWrapper=e.MemoryStorage=void 0;var u=function(){return i((function t(){n(this,t),this.store={}}),[{key:"getItem",value:function(t){return Promise.resolve(this.store[t])}},{key:"setItem",value:function(t,e){return Promise.resolve(this.store[t]=e)}},{key:"removeItem",value:function(t){var e=this.store[t];return delete this.store[t],Promise.resolve(e)}}])}();e.MemoryStorage=u;var c=function(){return i((function t(e){n(this,t),this.storage=e}),[{key:"getItem",value:function(t){var e;return Promise.resolve(null===(e=this.storage)||void 0===e?void 0:e.getItem(t))}},{key:"setItem",value:function(t,e){var r;return Promise.resolve(null===(r=this.storage)||void 0===r?void 0:r.setItem(t,e))}},{key:"removeItem",value:function(t){var e;return Promise.resolve(null===(e=this.storage)||void 0===e?void 0:e.removeItem(t))}}])}();e.StorageWrapper=c},2422:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},2452:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeServiceOptions=e.protectedMethods=e.defaultServiceEvents=e.defaultEventMap=e.defaultServiceMethods=e.defaultServiceArguments=e.SERVICE=void 0,e.getHookMethods=function(t,r){var n=r.methods;return e.defaultServiceMethods.filter((function(e){return"function"==typeof t[e]&&!n.includes(e)})).concat(n)},e.getServiceOptions=function(t){return t[e.SERVICE]},e.wrapService=function(t,r,n){if(r[e.SERVICE])return r;var i,a=Object.create(r),u=(0,e.normalizeServiceOptions)(r,n);if(0===Object.keys(u.methods).length&&![].concat((i=e.defaultServiceMethods,function(t){if(Array.isArray(t))return o(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(i)||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.")}()),["setup","teardown"]).some((function(t){return"function"==typeof r[t]})))throw new Error("Invalid service object passed for path `".concat(t,"`"));return Object.defineProperty(a,e.SERVICE,{value:u}),a};var c=r(46),f=r(4271);e.SERVICE=(0,f.createSymbol)("@feathersjs/service"),e.defaultServiceArguments={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]},e.defaultServiceMethods=["find","get","create","update","patch","remove"],e.defaultEventMap={create:"created",update:"updated",patch:"patched",remove:"removed"},e.defaultServiceEvents=Object.values(e.defaultEventMap),e.protectedMethods=Object.keys(Object.prototype).concat(Object.keys(c.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish"]),e.normalizeServiceOptions=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.methods,o=void 0===n?e.defaultServiceMethods.filter((function(e){return"function"==typeof t[e]})):n,i=r.events,u=void 0===i?t.events||[]:i,c=r.serviceEvents||e.defaultServiceEvents.concat(u);return a(a({},r),{},{events:u,methods:o,serviceEvents:c})}},2908:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},3067:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.SuperagentClient=e.FetchClient=e.AxiosClient=void 0,e.default=s;var o=r(7295),i=r(1030),a=r(7869);Object.defineProperty(e,"AxiosClient",{enumerable:!0,get:function(){return a.AxiosClient}});var u=r(8703);Object.defineProperty(e,"FetchClient",{enumerable:!0,get:function(){return u.FetchClient}});var c=r(351);Object.defineProperty(e,"SuperagentClient",{enumerable:!0,get:function(){return c.SuperagentClient}});var f={superagent:c.SuperagentClient,fetch:u.FetchClient,axios:a.AxiosClient};function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e={Base:i.Base};return Object.keys(f).forEach((function(r){e[r]=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f[r];if(!e)throw new Error("".concat(r," has to be provided to feathers-rest"));"function"==typeof a&&(u=a,a={});var c=function(r){return new u({base:t,name:r,connection:e,options:a})},s=function(t){if(void 0!==t.rest)throw new Error("Only one default client provider can be configured");t.rest=e,t.defaultService=c,t.mixins.unshift((function(t,e,r){if(r&&r.methods&&t instanceof i.Base){var a=r.methods.filter((function(t){return!o.defaultServiceMethods.includes(t)}));t.methods.apply(t,function(t){if(Array.isArray(t))return n(t)}(u=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(u)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(u)||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.")}())}var u}))};return s.Service=u,s.service=c,s}})),e}t.exports=Object.assign(s,t.exports)},3346:function(t,e,r){"use strict";var n=r(8660),o=r(3468),i=function(t,e,r){for(var n,o=t;null!=(n=o.next);o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return i(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=i(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},3468:function(t){"use strict";t.exports=TypeError},3558:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(2908);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3830:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=r(1156),i=r(7295);function a(t,e){if(!t)throw new Error("Socket.io connection needs to be provided");var r=function(r){var n=Object.values(i.defaultEventMap),a=Object.assign({},e,{events:n,name:r,connection:t,method:"emit"});return new o.Service(a)},a=function(e){if(void 0!==e.io)throw new Error("Only one default client provider can be configured");e.io=t,e.defaultService=r,e.mixins.unshift((function(t,e,r){if(r&&r.methods&&t instanceof o.Service){var a=r.methods.filter((function(t){return!i.defaultServiceMethods.includes(t)}));t.methods.apply(t,function(t){if(Array.isArray(t))return n(t)}(u=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(u)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(u)||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.")}())}var u}))};return a.Service=o.Service,a.service=r,a}t.exports=Object.assign(a,t.exports)},4271:function(t,e,r){"use strict";function n(t,e,r){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),c=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||u(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e._=void 0,e.stripSlashes=function(t){return t.replace(/^(\/+)|(\/+)$/g,"")},e.isPromise=function(t){return e._.isObject(t)&&"function"==typeof t.then},e.createSymbol=function(t){return"undefined"!=typeof Symbol?Symbol.for(t):t},e._={each:function(t,r){t&&"function"==typeof t.forEach?t.forEach(r):e._.isObject(t)&&Object.keys(t).forEach((function(e){return r(t[e],e)}))},some:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).some((function(t){var r=i(t,2),n=r[0],o=r[1];return e(n,o)}))},every:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).every((function(t){var r=i(t,2),n=r[0],o=r[1];return e(n,o)}))},keys:function(t){return Object.keys(t)},values:function(t){return e._.keys(t).map((function(e){return t[e]}))},isMatch:function(t,r){return e._.keys(r).every((function(e){return t[e]===r[e]}))},isEmpty:function(t){return 0===e._.keys(t).length},isObject:function(t){return"object"===o(t)&&!Array.isArray(t)&&null!==t},isObjectOrArray:function(t){return"object"===o(t)&&null!==t},extend:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Object.assign.apply(Object,[t].concat(r))},omit:function(t){for(var r=e._.extend({},t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.forEach((function(t){return delete r[t]})),r},pick:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e}),{})},merge:function(t,r){return e._.isObject(t)&&e._.isObject(r)&&Object.keys(r).forEach((function(o){e._.isObject(r[o])?(t[o]||Object.assign(t,n({},o,{})),e._.merge(t[o],r[o])):Object.assign(t,n({},o,r[o]))})),t}},c(r(5792),e)},4531:function(t){"use strict";t.exports=Function.prototype.call},4607:function(t,e,r){"use strict";var n=r(528),o=r(9903),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},4884:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;var a=r(6380),u=(0,r(4271).createDebug)("@feathersjs/transport-commons/client"),c=["addListener","addEventListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeEventListener","removeListener"],f=["eventNames","getMaxListeners","setMaxListeners"],s=function(){return t=function t(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.events=e.events,this.path=e.name,this.connection=e.connection,this.method=e.method,r=this,f.forEach((function(t){r[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)}})),c.forEach((function(t){r[t]=function(e){var r;if("function"!=typeof this.connection[t])throw new Error("Can not call '".concat(t,"' on the client service connection"));var n="".concat(this.path," ").concat(e);u("Calling emitter method ".concat(t," with ")+"namespaced event '".concat(n,"'"));for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var c=(r=this.connection)[t].apply(r,[n].concat(i));return c===this.connection?this:c}}))},e=[{key:"send",value:function(t){for(var e=this,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new Promise((function(r,o){var i,c,f,s=n.pop(),l=e.path;s&&Object.keys(s).forEach((function(t){l=l.replace(":".concat(t),s[t])})),n.unshift(t,l),void 0!==((null===(c=e.connection.flags)||void 0===c?void 0:c.timeout)||(null===(f=e.connection._opts)||void 0===f?void 0:f.ackTimeout))?n.push((function(t,e,n){return t||e?o((0,a.convert)(t||e)):r(n)})):n.push((function(t,e){return t?o((0,a.convert)(t)):r(e)})),u("Sending socket.".concat(e.method),n),(i=e.connection)[e.method].apply(i,n)}))}},{key:"methods",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){var r="_".concat(e);t[r]=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send(e,t,r.query||{},r.route||{})},t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this[r](t,e,e.route||{})}})),this}},{key:"_find",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.send("find",t.query||{},t.route||{})}},{key:"find",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._find(t)}},{key:"_get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("get",t,e.query||{},e.route||{})}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._get(t,e)}},{key:"_create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("create",t,e.query||{},e.route||{})}},{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._create(t,e)}},{key:"_update",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===t?Promise.reject(new Error("id for 'update' can not be undefined")):this.send("update",t,e,r.query||{},r.route||{})}},{key:"update",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._update(t,e,r)}},{key:"_patch",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.send("patch",t,e,r.query||{},r.route||{})}},{key:"patch",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._patch(t,e,r)}},{key:"_remove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("remove",t,e.query||{},e.route||{})}},{key:"remove",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._remove(t,e)}},{key:"off",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if("function"==typeof this.connection.off){var o,i=(o=this.connection).off.apply(o,["".concat(this.path," ").concat(t)].concat(r));return i===this.connection?this:i}return 0===r.length?this.removeAllListeners(t):this.removeListener.apply(this,[t].concat(r))}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();e.Service=s},4940:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},4943:function(t){"use strict";t.exports=ReferenceError},5054:function(t,e){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.compose=void 0,e.compose=function(t){if(!Array.isArray(t))throw new TypeError("Middleware stack must be an array!");var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}(t);try{for(n.s();!(e=n.n()).done;)if("function"!=typeof e.value)throw new TypeError("Middleware must be composed of functions!")}catch(t){n.e(t)}finally{n.f()}return function(e,r){var n=-1;return function o(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;var a=t[i];if(i===t.length&&(a=r),!a)return Promise.resolve();try{return Promise.resolve(a.call(this,e,o.bind(this,i+1)))}catch(t){return Promise.reject(t)}}.call(this,0)}}},5302:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e,r){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.collect=e.fromErrorHook=e.fromAfterHook=e.fromBeforeHook=e.runHooks=e.runHook=void 0;var c=r(5054);function f(t){return function(r,n){return(0,e.runHook)(t,r,"before").then(n)}}function s(t){return function(r,n){return n().then((function(){return(0,e.runHook)(t,r,"after")}))}}function l(t){return function(r,n){return n().catch((function(n){return r.error===n&&void 0===r.result||(r.original=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r),r.error=n,delete r.result),(0,e.runHook)(t,r,"error").then((function(){if(void 0===r.result&&void 0!==r.error)throw r.error})).catch((function(t){throw r.error=t,r.error}))}))}}e.runHook=function(t,e,r){var n=e.type;return r&&(e.type=r),Promise.resolve(t.call(e.self,e)).then((function(t){r&&(e.type=n),t&&t!==e&&Object.assign(e,t)}))},e.runHooks=function(t){return function(r){return t.reduce((function(t,n){return t.then((function(){return(0,e.runHook)(n,r)}))}),Promise.resolve(r))}},e.fromBeforeHook=f,e.fromAfterHook=s,e.fromErrorHook=l,e.collect=function(t){var r=t.before,n=void 0===r?[]:r,i=t.after,a=void 0===i?[]:i,u=t.error,p=void 0===u?[]:u,y=n.map(f),h=o(a).reverse().map(s),d=p.length?[l((0,e.runHooks)(p))]:[];return(0,c.compose)([].concat(d,o(y),o(h)))}},5699:function(t,e,r){"use strict";var n,o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)},u=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),a=0;a<r.length;a++)"default"!==r[a]&&o(e,t,r[a]);return i(e,t),e}),c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.socketio=e.rest=e.authentication=e.errors=void 0;const f=r(7295),s=c(r(6981));e.authentication=s.default;const l=c(r(3067));e.rest=l.default;const p=c(r(3830));e.socketio=p.default,a(r(7295),e),e.errors=u(r(6380)),e.default=f.feathers,t.exports=Object.assign(f.feathers,t.exports)},5731:function(t){"use strict";t.exports=SyntaxError},5751:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function a(t,e,r,n){var o=u(c(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(null,arguments)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.FeathersHookManager=void 0,e.convertHookData=b,e.collectHooks=m,e.enableHooks=g,e.createContext=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t[e].createContext;if("function"!=typeof n)throw new Error("Can not create context for method ".concat(e));return n(r)},e.hookMixin=function(t,e,r){var n=this;if("function"==typeof t.hooks)return t;var o=(0,h.getHookMethods)(t,r).reduce((function(r,o){var i,a=h.defaultServiceArguments[o]||["data","params"];return r[o]=(i=new w(n,o)).params.apply(i,s(a)).props({app:n,path:e,method:o,service:t,event:null,type:"around",get statusCode(){var t;return null===(t=this.http)||void 0===t?void 0:t.status},set statusCode(t){this.http=this.http||{},this.http.status=t}}),r}),{}),i=g(t);return(0,y.hooks)(t,o),t.hooks=function(t){var e=this;return t.before||t.after||t.error||t.around?i.call(this,t):Array.isArray(t)?(0,y.hooks)(this,t):(Object.keys(t).forEach((function(r){var n=(0,y.getManager)(e[r]);if(!(n instanceof w))throw new Error("Method ".concat(r," is not a Feathers hooks enabled service method"));n.middleware(t[r])})),this)},t};var y=r(7226),h=r(2452),d=["before","after","error","around"],v=function(t){return d.includes(t)};function b(t){var e={};if(Array.isArray(t))e.all=t;else if("object"!==p(t))e.all=[t];else for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r],i=t[o];e[o]=Array.isArray(i)?i:[i]}return e}function m(t,e){var r=t.__hooks,n=r.collected,o=r.collectedAll,i=r.around;return[].concat(s(i.all||[]),s(i[e]||[]),s(o.before||[]),s(n[e]||[]),s(o.after||[]))}function g(t){return Object.defineProperty(t,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(t){var e=this.__hooks,r=Object.keys(t).reduce((function(e,r){if(!v(r))throw new Error("'".concat(r,"' is not a valid hook type"));return e[r]=b(t[r]),e}),{});return Object.keys(r).forEach((function(t){return Object.keys(r[t]).forEach((function(n){var o,i=r[t][n],a=(o=e[t])[n]||(o[n]=[]);if(a.push.apply(a,s(i)),"all"===n){if(e.before[n]||e.error[n]){var u=(0,y.collect)({before:e.before[n]||[],error:e.error[n]||[]});e.collectedAll.before=[u]}if(e.after[n]){var c=(0,y.collect)({after:e.after[n]||[]});e.collectedAll.after=[c]}}else if(e.before[n]||e.after[n]||e.error[n]){var f=(0,y.collect)({before:e.before[n]||[],after:e.after[n]||[],error:e.error[n]||[]});e.collected[n]=[f]}}))})),this}}var w=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,r){return e=c(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,i()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}(this,e)).app=t,n.method=r,n._middleware=[],n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),r=e,(o=[{key:"collectMiddleware",value:function(t,r){var n=m(this.app,this.method),o=a(e,"collectMiddleware",this,3)([t,r]),i=m(t,this.method);return[].concat(s(n),s(o),s(i))}},{key:"initializeContext",value:function(t,r,n){var o=a(e,"initializeContext",this,3)([t,r,n]);return o.params=o.params||{},o}},{key:"middleware",value:function(t){var e;return(e=this._middleware).push.apply(e,s(t)),this}}])&&n(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(y.HookManager);e.FeathersHookManager=w},5792:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noopDebug=n,e.setDebug=function(t){o=t,Object.keys(r).forEach((function(e){r[e]=t(e)}))},e.createDebug=function(t){return r[t]||(r[t]=o(t)),function(){return r[t].apply(r,arguments)}};var r={};function n(){return function(){}}var o=n},5865:function(t){"use strict";t.exports=Math.pow},5871:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="development"},6095:function(t){"use strict";t.exports=Function.prototype.apply},6348:function(t,e,r){"use strict";var n=r(528),o=r(4607),i=r(8660),a=r(7004),u=r(3468),c=n("%WeakMap%",!0),f=o("WeakMap.prototype.get",!0),s=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);t.exports=c?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new u("Side channel does not contain "+i(t))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?f(t,r):e&&e.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?l(t,r):!!e&&e.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),s(t,r,n)):a&&(e||(e=a()),e.set(r,n))}};return r}:a},6369:function(t,e,r){"use strict";var n=r(7859),o=r(7345),i=r(6423);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},6380:function(t,e){"use strict";var r=["message","errors"];function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function c(t,e,r){return e=y(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&p(o,r.prototype),o}(t,arguments,y(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)},s(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.errors=e.Unavailable=e.BadGateway=e.NotImplemented=e.GeneralError=e.TooManyRequests=e.Unprocessable=e.LengthRequired=e.Gone=e.Conflict=e.Timeout=e.NotAcceptable=e.MethodNotAllowed=e.NotFound=e.Forbidden=e.PaymentError=e.NotAuthenticated=e.BadRequest=e.FeathersError=void 0,e.convert=function(t){if(!t)return t;var r=e.errors[t.name],o=r?new r(t.message,t.data):new Error(t.message||t);return"object"===n(t)&&Object.assign(o,t),o};var h=function(t){function e(t,i,a,u,f){var s;o(this,e);var l="string"==typeof t?t:"Error",p={name:i,code:a,className:u,type:"FeathersError"};if(Array.isArray(f))p.data=f;else if("object"===n(t)||void 0!==f){var y=null!==t&&"object"===n(t)?t:f,h=y.message,d=y.errors,v=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(y,r);l=h||l,p.errors=d,p.data=v}return s=c(this,e,[l]),Object.assign(s,p),s}return f(e,t),a(e,[{key:"toJSON",value:function(){var t={name:this.name,message:this.message,code:this.code,className:this.className};return void 0!==this.data&&(t.data=this.data),void 0!==this.errors&&(t.errors=this.errors),t}}])}(s(Error));e.FeathersError=h;var d=function(t){function e(t,r){return o(this,e),c(this,e,[t,"BadRequest",400,"bad-request",r])}return f(e,t),a(e)}(h);e.BadRequest=d;var v=function(t){function e(t,r){return o(this,e),c(this,e,[t,"NotAuthenticated",401,"not-authenticated",r])}return f(e,t),a(e)}(h);e.NotAuthenticated=v;var b=function(t){function e(t,r){return o(this,e),c(this,e,[t,"PaymentError",402,"payment-error",r])}return f(e,t),a(e)}(h);e.PaymentError=b;var m=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Forbidden",403,"forbidden",r])}return f(e,t),a(e)}(h);e.Forbidden=m;var g=function(t){function e(t,r){return o(this,e),c(this,e,[t,"NotFound",404,"not-found",r])}return f(e,t),a(e)}(h);e.NotFound=g;var w=function(t){function e(t,r){return o(this,e),c(this,e,[t,"MethodNotAllowed",405,"method-not-allowed",r])}return f(e,t),a(e)}(h);e.MethodNotAllowed=w;var O=function(t){function e(t,r){return o(this,e),c(this,e,[t,"NotAcceptable",406,"not-acceptable",r])}return f(e,t),a(e)}(h);e.NotAcceptable=O;var j=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Timeout",408,"timeout",r])}return f(e,t),a(e)}(h);e.Timeout=j;var S=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Conflict",409,"conflict",r])}return f(e,t),a(e)}(h);e.Conflict=S;var P=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Gone",410,"gone",r])}return f(e,t),a(e)}(h);e.Gone=P;var _=function(t){function e(t,r){return o(this,e),c(this,e,[t,"LengthRequired",411,"length-required",r])}return f(e,t),a(e)}(h);e.LengthRequired=_;var E=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Unprocessable",422,"unprocessable",r])}return f(e,t),a(e)}(h);e.Unprocessable=E;var A=function(t){function e(t,r){return o(this,e),c(this,e,[t,"TooManyRequests",429,"too-many-requests",r])}return f(e,t),a(e)}(h);e.TooManyRequests=A;var k=function(t){function e(t,r){return o(this,e),c(this,e,[t,"GeneralError",500,"general-error",r])}return f(e,t),a(e)}(h);e.GeneralError=k;var x=function(t){function e(t,r){return o(this,e),c(this,e,[t,"NotImplemented",501,"not-implemented",r])}return f(e,t),a(e)}(h);e.NotImplemented=x;var M=function(t){function e(t,r){return o(this,e),c(this,e,[t,"BadGateway",502,"bad-gateway",r])}return f(e,t),a(e)}(h);e.BadGateway=M;var T=function(t){function e(t,r){return o(this,e),c(this,e,[t,"Unavailable",503,"unavailable",r])}return f(e,t),a(e)}(h);e.Unavailable=T,e.errors={FeathersError:h,BadRequest:d,NotAuthenticated:v,PaymentError:b,Forbidden:m,NotFound:g,MethodNotAllowed:w,NotAcceptable:O,Timeout:j,Conflict:S,LengthRequired:_,Unprocessable:E,TooManyRequests:A,GeneralError:k,NotImplemented:x,BadGateway:M,Unavailable:T,400:d,401:v,402:b,403:m,404:g,405:w,406:O,408:j,409:S,410:P,411:_,422:E,429:A,500:k,501:x,502:M,503:T}},6423:function(t,e,r){"use strict";var n,o=r(9903),i=r(9336);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&i&&i(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;t.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(t){return c(null==t?t:u(t))}},6882:function(t,e,r){"use strict";var n=r(2422);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},6889:function(t,e,r){"use strict";var n=r(1712),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),u=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},c=1024;t.exports={arrayToObject:u,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],u=Object.keys(a),c=0;c<u.length;++c){var f=u[c],s=a[f];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(e.push({obj:a,prop:f}),r.push(s))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var u=t;if("symbol"==typeof t?u=Symbol.prototype.toString.call(t):"string"!=typeof t&&(u=String(t)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var f="",s=0;s<u.length;s+=c){for(var l=u.length>=c?u.slice(s,s+c):u,p=[],y=0;y<l.length;++y){var h=l.charCodeAt(y);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===n.RFC1738&&(40===h||41===h)?p[p.length]=l.charAt(y):h<128?p[p.length]=a[h]:h<2048?p[p.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?p[p.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(y+=1,h=65536+((1023&h)<<10|1023&l.charCodeAt(y)),p[p.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}f+=p.join("")}return f},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=u(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},6973:function(){},6981:function(t,e,r){"use strict";var n,o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),a=0;a<r.length;a++)"default"!==r[a]&&o(e,t,r[a]);return i(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.defaults=e.defaultStorage=e.hooks=e.MemoryStorage=e.AuthenticationClient=e.getDefaultStorage=void 0;var u=r(522);Object.defineProperty(e,"AuthenticationClient",{enumerable:!0,get:function(){return u.AuthenticationClient}});var c=a(r(1146));e.hooks=c;var f=r(2408);Object.defineProperty(e,"MemoryStorage",{enumerable:!0,get:function(){return f.MemoryStorage}}),e.getDefaultStorage=function(){try{return new f.StorageWrapper(window.localStorage)}catch(t){}return new f.MemoryStorage},e.defaultStorage=(0,e.getDefaultStorage)(),e.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:u.AuthenticationClient,storage:e.defaultStorage};var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign({},e.defaults,t),n=r.Authentication;return function(t){var e=new n(t,r);t.authentication=e,t.authenticate=e.authenticate.bind(e),t.reAuthenticate=e.reAuthenticate.bind(e),t.logout=e.logout.bind(e),t.hooks([c.authentication(),c.populateHeader()])}};e.default=s,t.exports=Object.assign(s,t.exports)},7004:function(t,e,r){"use strict";var n=r(528),o=r(4607),i=r(8660),a=r(3468),u=n("%Map%",!0),c=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),s=o("Map.prototype.has",!0),l=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);t.exports=!!u&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=l(t,e);return 0===p(t)&&(t=void 0),r}return!1},get:function(e){if(t)return c(t,e)},has:function(e){return!!t&&s(t,e)},set:function(e,r){t||(t=new u),f(t,e,r)}};return e}},7196:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7226:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||o(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hooks=e.middleware=void 0;var a=r(745),u=r(2110);i(r(2110),e),i(r(5054),e),i(r(745),e),i(r(5302),e),e.middleware=function(t,e){var r,o=(new a.HookManager).middleware(t);return e&&(e.params&&o.params.apply(o,function(t){if(Array.isArray(t))return n(t)}(r=e.params)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(r)||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.")}()),e.defaults&&o.defaults(e.defaults),e.props&&o.props(e.props)),o},e.hooks=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1];return"function"==typeof n&&(o instanceof a.HookManager||Array.isArray(o)||1===e.length)?(0,u.functionHooks)(n,o):2===e.length?(0,u.objectHooks)(n,o):(0,u.hookDecorator)(n)}},7295:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Feathers=e.version=void 0,e.feathers=f;var a=r(4271),u=i(r(5871));e.version=u.default;var c=r(9205);function f(){return new c.Feathers}Object.defineProperty(e,"Feathers",{enumerable:!0,get:function(){return c.Feathers}}),f.setDebug=a.setDebug,o(r(5751),e),o(r(1986),e),o(r(2452),e),t.exports=Object.assign(f,t.exports)},7345:function(t,e,r){"use strict";var n=r(9629);t.exports=n.getPrototypeOf||null},7575:function(t,e,r){"use strict";var n=r(3468),o=r(8660),i=r(3346),a=r(7004),u=r(6348)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=u()),t.set(e,r)}};return e}},7859:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},7869:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AxiosClient=void 0;var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(i=[{key:"request",value:function(t,e){var r=Object.assign({url:t.url,method:t.method,data:t.body,headers:Object.assign({Accept:"application/json"},this.options.headers,t.headers)},e.connection);return this.connection.request(r).then((function(t){return t.data})).catch((function(t){var e=t.response||t;throw e instanceof Error?e:e.data||e}))}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);e.AxiosClient=f},8129:function(t){"use strict";t.exports=Math.max},8165:function(t,e,r){"use strict";var n=r(9138),o=r(6095),i=r(4531),a=r(7196);t.exports=a||n.call(i,o)},8355:function(t,e,r){"use strict";var n=r(6889),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},f=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/g,f=r.depth>0&&/(\[[^[\]]*])/.exec(a),s=f?a.slice(0,f.index):a,l=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var p=0;r.depth>0&&null!==(f=u.exec(a))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,f[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(f[1])}if(f){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(f.index)+"]")}return function(t,e,r,o){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var u=o?e:c(e,r,i),f=t.length-1;f>=0;--f){var s,l=t[f];if("[]"===l&&r.parseArrays)s=r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u);else{s=r.plainObjects?{__proto__:null}:{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,y=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(y,10);r.parseArrays||""!==y?!isNaN(h)&&l!==y&&String(h)===y&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(s=[])[h]=u:"__proto__"!==y&&(s[y]=u):s={0:u}}u=s}return u}(l,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var s="string"==typeof t?function(t,e){var r={__proto__:null},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,e.throwOnLimitExceeded?s+1:s);if(e.throwOnLimitExceeded&&l.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(1===s?"":"s")+" allowed.");var p,y=-1,h=e.charset;if(e.charsetSentinel)for(p=0;p<l.length;++p)0===l[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[p]?h="utf-8":"utf8=%26%2310003%3B"===l[p]&&(h="iso-8859-1"),y=p,p=l.length);for(p=0;p<l.length;++p)if(p!==y){var d,v,b=l[p],m=b.indexOf("]="),g=-1===m?b.indexOf("="):m+1;-1===g?(d=e.decoder(b,a.decoder,h,"key"),v=e.strictNullHandling?null:""):(d=e.decoder(b.slice(0,g),a.decoder,h,"key"),v=n.maybeMap(c(b.slice(g+1),e,i(r[d])?r[d].length:0),(function(t){return e.decoder(t,a.decoder,h,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===h&&(v=u(String(v))),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v);var w=o.call(r,d);w&&"combine"===e.duplicates?r[d]=n.combine(r[d],v):w&&"last"!==e.duplicates||(r[d]=v)}return r}(t,r):t,l=r.plainObjects?{__proto__:null}:{},p=Object.keys(s),y=0;y<p.length;++y){var h=p[y],d=f(h,s[h],r,"string"==typeof t);l=n.merge(l,d,r)}return!0===r.allowSparse?l:n.compact(l)}},8449:function(t){"use strict";t.exports=Math.floor},8479:function(t){"use strict";t.exports=Math.abs},8554:function(t,e,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(9138);t.exports=i.call(n,o)},8660:function(t,e,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,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&c&&"function"==typeof c.get?c.get:null,s=u&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,v=Function.prototype.toString,b=String.prototype.match,m=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,j=RegExp.prototype.test,S=Array.prototype.concat,P=Array.prototype.join,_=Array.prototype.slice,E=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-E(-t):E(t);if(n!==t){var o=String(n),i=m.call(e,o.length+1);return g.call(o,r,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(e,r,"$&_")}var L=r(6973),D=L.custom,F=G(D)?D:null,N={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(t,e,r){var n=r.quoteStyle||e,o=N[n];return o+t+o}function H(t){return g.call(String(t),/"/g,"&quot;")}function q(t){return!("[object Array]"!==z(t)||T&&"object"==typeof t&&T in t)}function W(t){return!("[object RegExp]"!==z(t)||T&&"object"==typeof t&&T in t)}function G(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!x)return!1;try{return x.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,u){var c=n||{};if($(c,"quoteStyle")&&!$(N,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!$(c,"customInspect")||c.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return J(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var j=String(e);return w?R(e,j):j}if("bigint"==typeof e){var E=String(e)+"n";return w?R(e,E):E}var k=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=k&&k>0&&"object"==typeof e)return q(e)?"[Array]":"[Object]";var D,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=P.call(Array(t.indent+1)," ")}return{base:r,prev:P.call(Array(e+1),r)}}(c,o);if(void 0===u)u=[];else if(V(u,e)>=0)return"[Circular]";function K(e,r,n){if(r&&(u=_.call(u)).push(r),n){var i={depth:c.depth};return $(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,o+1,u)}return t(e,c,o+1,u)}if("function"==typeof e&&!W(e)){var Q=function(t){if(t.name)return t.name;var e=b.call(v.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),rt=et(e,K);return"[Function"+(Q?": "+Q:" (anonymous)")+"]"+(rt.length>0?" { "+P.call(rt,", ")+" }":"")}if(G(e)){var nt=M?g.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(e);return"object"!=typeof e||M?nt:Y(nt)}if((D=e)&&"object"==typeof D&&("undefined"!=typeof HTMLElement&&D instanceof HTMLElement||"string"==typeof D.nodeName&&"function"==typeof D.getAttribute)){for(var ot="<"+O.call(String(e.nodeName)),it=e.attributes||[],at=0;at<it.length;at++)ot+=" "+it[at].name+"="+U(H(it[at].value),"double",c);return ot+=">",e.childNodes&&e.childNodes.length&&(ot+="..."),ot+"</"+O.call(String(e.nodeName))+">"}if(q(e)){if(0===e.length)return"[]";var ut=et(e,K);return B&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(ut)?"["+tt(ut,B)+"]":"[ "+P.call(ut,", ")+" ]"}if(function(t){return!("[object Error]"!==z(t)||T&&"object"==typeof t&&T in t)}(e)){var ct=et(e,K);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===ct.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(ct,", ")+" }":"{ ["+String(e)+"] "+P.call(S.call("[cause]: "+K(e.cause),ct),", ")+" }"}if("object"==typeof e&&d){if(F&&"function"==typeof e[F]&&L)return L(e,{depth:k-o});if("symbol"!==d&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{f.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ft=[];return a&&a.call(e,(function(t,r){ft.push(K(r,e,!0)+" => "+K(t,e))})),Z("Map",i.call(e),ft,B)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return s&&s.call(e,(function(t){st.push(K(t,e))})),Z("Set",f.call(e),st,B)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if(function(t){return!("[object Number]"!==z(t)||T&&"object"==typeof t&&T in t)}(e))return Y(K(Number(e)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}(e))return Y(K(A.call(e)));if(function(t){return!("[object Boolean]"!==z(t)||T&&"object"==typeof t&&T in t)}(e))return Y(h.call(e));if(function(t){return!("[object String]"!==z(t)||T&&"object"==typeof t&&T in t)}(e))return Y(K(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==z(t)||T&&"object"==typeof t&&T in t)}(e)&&!W(e)){var lt=et(e,K),pt=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,yt=e instanceof Object?"":"null prototype",ht=!pt&&T&&Object(e)===e&&T in e?m.call(z(e),8,-1):yt?"Object":"",dt=(pt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||yt?"["+P.call(S.call([],ht||[],yt||[]),": ")+"] ":"");return 0===lt.length?dt+"{}":B?dt+"{"+tt(lt,B)+"}":dt+"{ "+P.call(lt,", ")+" }"}return String(e)};var K=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return K.call(t,e)}function z(t){return d.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(m.call(t,0,e.maxStringLength),e)+n}var o=B[e.quoteStyle||"single"];return o.lastIndex=0,U(g.call(g.call(t,o,"\\$1"),/[\x00-\x1f]/g,Q),"single",e)}function Q(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Y(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function Z(t,e,r,n){return t+" ("+e+") {"+(n?tt(r,n):P.call(r,", "))+"}"}function tt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+P.call(t,","+r)+"\n"+e.prev}function et(t,e){var r=q(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var i,a="function"==typeof k?k(t):[];if(M){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in t)$(t,c)&&(r&&String(Number(c))===c&&c<t.length||M&&i["$"+c]instanceof Symbol||(j.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if("function"==typeof k)for(var f=0;f<a.length;f++)I.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}},8703:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FetchClient=void 0;var f=r(6380),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(i=[{key:"request",value:function(t,e){var r=Object.assign({},t,e.connection);return r.headers=Object.assign({Accept:"application/json"},this.options.headers,r.headers),t.body&&(r.body=JSON.stringify(t.body)),this.connection(t.url,r).then(this.checkStatus).then((function(t){return 204===t.status?null:t.json()}))}},{key:"checkStatus",value:function(t){return t.ok?t:t.json().catch((function(){return new(f.errors[t.status]||Error)("JSON parsing error")})).then((function(e){throw e.response=t,e}))}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);e.FetchClient=s},8794:function(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),u=r(0,o.length-a.length),c=[],f=0;f<u;f++)c[f]="$"+f;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,n(a,arguments));return Object(e)===e?e:this}return o.apply(t,n(a,arguments))})),o.prototype){var s=function(){};s.prototype=o.prototype,i.prototype=new s,s.prototype=null}return i}},8928:function(t,e,r){"use strict";var n=r(237),o=r(8355),i=r(1712);t.exports={formats:i,parse:o,stringify:n}},9110:function(t){"use strict";t.exports=EvalError},9138:function(t,e,r){"use strict";var n=r(8794);t.exports=Function.prototype.bind||n},9205:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),u=new I(n||[]);return a(i,"_invoke",{value:k(t,r,u)}),i}function y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h="suspendedStart",d="suspendedYield",v="executing",b="completed",m={};function g(){}function w(){}function O(){}var j={};l(j,c,(function(){return this}));var S=Object.getPrototypeOf,P=S&&S(S(C([])));P&&P!==r&&i.call(P,c)&&(j=P);var _=O.prototype=g.prototype=Object.create(j);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,a,u,c){var f=y(t[o],t,a);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var f=y(e,r,n);if("normal"===f.type){if(o=n.done?b:d,f.arg===m)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=b,n.method="throw",n.arg=f.arg)}}}function x(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=y(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=O,a(_,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:w,configurable:!0}),w.displayName=l(O,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(A.prototype),l(A.prototype,f,(function(){return this})),e.AsyncIterator=A,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new A(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),l(_,s,"Generator"),l(_,c,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function i(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var p=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Feathers=void 0;var y=p(r(5871)),h=r(46),d=r(4271),v=r(7226),b=r(694),m=r(5751),g=r(2452),w=r(5751),O=(0,d.createDebug)("@feathersjs/feathers"),j=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=s(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}(this,e)).services={},t.settings={},t.mixins=[m.hookMixin,b.eventMixin],t.version=y.default,t._isSetup=!1,t.registerHooks=(0,w.enableHooks)(t),t.registerHooks({around:[b.eventHook]}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),r=e,c=[{key:"get",value:function(t){return this.settings[t]}},{key:"set",value:function(t,e){return this.settings[t]=e,this}},{key:"configure",value:function(t){return t.call(this,this),this}},{key:"defaultService",value:function(t){throw new Error("Can not find service '".concat(t,"'"))}},{key:"service",value:function(t){var e=(0,d.stripSlashes)(t)||"/",r=this.services.hasOwnProperty(e)?this.services[e]:void 0;return void 0===r?(this.use(e,this.defaultService(e)),this.service(e)):r}},{key:"_setup",value:function(){var t=this;return this._isSetup=!0,Object.keys(this.services).reduce((function(e,r){return e.then((function(){var e=t.service(r);if("function"==typeof e.setup)return O("Setting up service for `".concat(r,"`")),e.setup(t,r)}))}),Promise.resolve()).then((function(){return t}))}},{key:"setup",get:function(){return this._setup},set:function(t){this._setup=t[v.HOOKS]?t:(0,v.hooks)(t,(0,v.middleware)().params("server").props({app:this}))}},{key:"_teardown",value:function(){var t=this;return this._isSetup=!1,Object.keys(this.services).reduce((function(e,r){return e.then((function(){var e=t.service(r);if("function"==typeof e.teardown)return O("Tearing down service for `".concat(r,"`")),e.teardown(t,r)}))}),Promise.resolve()).then((function(){return t}))}},{key:"teardown",get:function(){return this._teardown},set:function(t){this._teardown=t[v.HOOKS]?t:(0,v.hooks)(t,(0,v.middleware)().params("server").props({app:this}))}},{key:"use",value:function(t,e,r){var n=this;if("string"!=typeof t)throw new Error("'".concat(t,"' is not a valid service path."));var o=(0,d.stripSlashes)(t)||"/",i=e;if("function"==typeof i.service&&i.services)return Object.keys(i.services).forEach((function(t){return n.use("".concat(o,"/").concat(t),i.service(t))})),this;var u,c=(0,g.wrapService)(o,e,r),f=(0,g.getServiceOptions)(c),s=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(g.protectedMethods);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(f.methods.includes(l))throw new Error("'".concat(l,"' on service '").concat(o,"' is not allowed as a custom method name"))}}catch(t){s.e(t)}finally{s.f()}return O("Registering new service at `".concat(o,"`")),this.mixins.forEach((function(t){return t.call(n,c,o,f)})),this.services[o]=c,this._isSetup&&"function"==typeof c.setup&&(O("Setting up service for `".concat(o,"`")),c.setup(this,o)),this}},{key:"unuse",value:(p=o().mark((function t(e){var r,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(0,d.stripSlashes)(e)||"/",!(n=this.services[r])||"function"!=typeof n.teardown){t.next=5;break}return t.next=5,n.teardown(this,r);case 5:return delete this.services[r],t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})),h=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=p.apply(t,e);function a(t){i(o,r,n,a,u,"next",t)}function u(t){i(o,r,n,a,u,"throw",t)}a(void 0)}))},function(t){return h.apply(this,arguments)})},{key:"hooks",value:function(t){var e=t;return e.before||e.after||e.error||e.around?this.registerHooks(e):e.setup||e.teardown?(0,v.hooks)(this,e):this.registerHooks({around:e}),this}}],c&&u(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,c,p,h}(h.EventEmitter);e.Feathers=j},9336:function(t,e,r){"use strict";var n=r(1292);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},9629:function(t){"use strict";t.exports=Object},9838:function(t){"use strict";t.exports=Error},9903:function(t,e,r){"use strict";var n=r(9138),o=r(3468),i=r(4531),a=r(8165);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return a(n,i,t)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(5699)}()}));
2
+ !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 function(){var e={46:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var 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))}h(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&h(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var o,i,a,f;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,f=s,console&&console.warn&&console.warn(f)}return e}function s(){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)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=s.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]: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}(o):d(o,o.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(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 c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var f=c.length,s=d(c,f);for(r=0;r<f;++r)n(s[r],this,t)}return!0},i.prototype.addListener=function(e,t){return f(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return f(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(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;i>=0;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.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))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){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);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(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},i.prototype.listenerCount=y,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},220:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authentication=void 0;var n=r(4271);t.authentication=function(){return function(e,t){var r=e.app,o=e.params,i=e.path,a=e.method,u=e.app.authentication;return(0,n.stripSlashes)(u.options.path)===i&&"create"===a?t():Promise.resolve(r.get("authentication")).then(function(t){t&&(e.params=Object.assign({},t,o))}).then(t)}}},351: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},n(e)}function o(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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.SuperagentClient=void 0;var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=u(t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&c(e,t)}(t,e),r=t,(i=[{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)})})}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);t.SuperagentClient=f},522: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},n(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,u=[],c=!0,f=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){f=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===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=Array(t);r<t;r++)n[r]=e[r];return n}function a(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,c(n.key),n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationClient=void 0;var y=r(6380),d=r(2408),h=function(e){function t(e,r){return f(this,t),o=this,a=[e,"OauthError",401,"oauth-error",r],i=l(i=t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(o,s()?Reflect.construct(i,a||[],l(o).constructor):i.apply(o,a));var o,i,a}return 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&&p(e,t)}(t,e),u(t)}(y.FeathersError),v=function(e,t){var r=new RegExp("(?:&?)".concat(t,"=([^&]*)")),n=e.hash?e.hash.match(r):null;return null!==n?[o(n,2)[1],r]:[null,r]},b=function(){return u(function e(t,r){f(this,e);var n=t.io,o=new d.StorageWrapper(t.get("storage")||r.storage);this.app=t,this.options=r,this.authenticated=!1,this.app.set("storage",o),n&&this.handleSocket(n)},[{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;e.on("disconnect",function(){t.authenticated&&t.reAuthenticate(!0)})}},{key:"getFromLocation",value:function(e){var t=o(v(e,this.options.locationKey),2),r=t[0],n=t[1];if(null!==r)return e.hash=e.hash.replace(n,""),Promise.resolve(r);var i=o(v(e,this.options.locationErrorKey),2),a=i[0],u=i[1];return null!==a?(e.hash=e.hash.replace(u,""),Promise.reject(new h(decodeURIComponent(a)))):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(e.code>400&&e.code<408){var n=this.removeAccessToken().then(function(){return r.reset()});return"logout"===t?n:n.then(function(){return Promise.reject(e)})}return this.reset().then(function(){return Promise.reject(e)})}},{key:"reAuthenticate",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=this.app.get("authentication");return o&&!0!==t||(o=this.getAccessToken().then(function(t){return t?e.authenticate({strategy:r||e.options.jwtStrategy,accessToken:t},n):e.handleError(new y.NotAuthenticated("No accessToken found in storage"),"authenticate")}),this.app.set("authentication",o)),o}},{key:"authenticate",value:function(e,t){var r=this;if(!e)return this.reAuthenticate();var n=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")});return this.app.set("authentication",n),n}},{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")})}}])}();t.AuthenticationClient=b},528:function(e,t,r){"use strict";var n,o=r(9629),i=r(9838),a=r(9110),u=r(1155),c=r(4943),f=r(5731),s=r(3468),l=r(2140),p=r(8479),y=r(8449),d=r(8129),h=r(2387),v=r(5865),b=r(1319),m=r(6882),g=Function,w=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},O=r(9336),j=r(4940),S=function(){throw new s},P=O?function(){try{return S}catch(e){try{return O(arguments,"callee").get}catch(e){return S}}}():S,_=r(3558)(),A=r(6369),E=r(7345),k=r(7859),x=r(6095),M=r(4531),T={},I="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&A?A(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":f,"%ThrowTypeError%":P,"%TypedArray%":I,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":x,"%Object.defineProperty%":j,"%Object.getPrototypeOf%":E,"%Math.abs%":p,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":v,"%Math.round%":b,"%Math.sign%":m,"%Reflect.getPrototypeOf%":k};if(A)try{null.error}catch(e){var R=A(A(e));C["%Error.prototype%"]=R}var D=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return C[t]=r,r},F={__proto__:null,"%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"]},L=r(9138),N=r(8554),B=L.call(M,Array.prototype.concat),U=L.call(x,Array.prototype.splice),H=L.call(M,String.prototype.replace),q=L.call(M,String.prototype.slice),W=L.call(M,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,$=function(e,t){var r,n=e;if(N(F,n)&&(n="%"+(r=F[n])[0]+"%"),N(C,n)){var o=C[n];if(o===T&&(o=D(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new f("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var n=[];return H(e,K,function(e,t,r,o){n[n.length]=r?H(o,G,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=$("%"+n+"%",t),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],U(r,B([0,1],c)));for(var l=1,p=!0;l<r.length;l+=1){var y=r[l],d=q(y,0,1),h=q(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new f("property names with quotes must have matching quotes");if("constructor"!==y&&p||(u=!0),N(C,i="%"+(n+="."+y)+"%"))a=C[i];else if(null!=a){if(!(y in a)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(O&&l+1>=r.length){var v=O(a,y);a=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[y]}else p=N(a,y),a=a[y];p&&!u&&(C[i]=a)}}return a}},539:function(e,t){"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.copyFnProperties=t.copyProperties=void 0,t.copyProperties=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var i=0,a=n;i<a.length;i++){var u,c=a[i],f=r(Object.keys(c).concat(Object.getOwnPropertySymbols(c)));try{for(f.s();!(u=f.n()).done;){var s=u.value,l=Object.getOwnPropertyDescriptor(c,s);l&&!Object.prototype.hasOwnProperty.call(e,s)&&Object.defineProperty(e,s,l)}}catch(e){f.e(e)}finally{f.f()}}return e},t.copyFnProperties=function(e,t){try{for(var r=0,n=["name","length"];r<n.length;r++){var o=n[r],i=t[o];Object.defineProperty(e,o,{value:i})}}catch(e){}return e}},694:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventHook=function(e,t){var r=(0,o.getServiceOptions)(e.self).events,n=o.defaultEventMap[e.method]||null;return e.event=n,t().then(function(){"string"!=typeof e.event||r.includes(e.event)||(Array.isArray(e.result)?e.result:[e.result]).forEach(function(t){return e.self.emit(e.event,t,e)})})},t.eventMixin=function(e){return"function"==typeof e.on&&"function"==typeof e.emit||Object.assign(e,n.EventEmitter.prototype),e};var n=r(46),o=r(2452)},745:function(e,t,r){"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){return a="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},a(e)}function u(e){return function(e){if(Array.isArray(e))return c(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 c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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,p(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.setMiddleware=t.getMiddleware=t.setManager=t.getManager=t.convertOptions=t.HookManager=t.BaseHookContext=t.HOOKS=void 0;var y=r(539);t.HOOKS=Symbol.for("@feathersjs/hooks");var d=function(){return l(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),Object.defineProperty(this,"self",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,t)},[{key:"toJSON",value:function(){for(var e=this,t=Object.keys(this),r=Object.getPrototypeOf(this);r;)t.push.apply(t,u(Object.keys(r))),r=Object.getPrototypeOf(r);return t.reduce(function(t,r){return t[r]=e[r],t},{})}}])}();t.BaseHookContext=d;var h=function(){return l(function e(){f(this,e),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_middleware",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_props",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_defaults",{enumerable:!0,configurable:!0,writable:!0,value:void 0})},[{key:"parent",value:function(e){return this._parent=e,this}},{key:"middleware",value:function(e){return this._middleware=null!=e&&e.length?e:null,this}},{key:"getMiddleware",value:function(){var e,t=null===(e=this._parent)||void 0===e?void 0:e.getMiddleware();return t&&this._middleware?t.concat(this._middleware):t||this._middleware}},{key:"collectMiddleware",value:function(e,t){var r=m(e),n=this.getMiddleware();return r&&n?r.concat(n):r||n||[]}},{key:"props",value:function(e){return this._props||(this._props={}),(0,y.copyProperties)(this._props,e),this}},{key:"getProps",value:function(){var e,t=null===(e=this._parent)||void 0===e?void 0:e.getProps();return t&&this._props?(0,y.copyProperties)({},t,this._props):t||this._props||null}},{key:"params",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._params=t,this}},{key:"getParams",value:function(){var e,t=null===(e=this._parent)||void 0===e?void 0:e.getParams();return t&&this._params?t.concat(this._params):t||this._params}},{key:"defaults",value:function(e){return this._defaults=e,this}},{key:"getDefaults",value:function(e,t,r){var n,o="function"==typeof this._defaults?this._defaults(e,t,r):null,i=null===(n=this._parent)||void 0===n?void 0:n.getDefaults(e,t,r);return i&&o?Object.assign({},i,o):i||o}},{key:"getContextClass",value:function(){var e=function(e){function t(e){return f(this,t),r=this,u=[e],i=o(i=t),function(e,t){if(t&&("object"==a(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(r,n()?Reflect.construct(i,u||[],o(r).constructor):i.apply(r,u));var r,i,u}return 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&&i(e,t)}(t,e),l(t)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d),t=this.getParams(),r=this.getProps();return t&&t.forEach(function(t,n){if(void 0!==(null==r?void 0:r[t]))throw new Error("Hooks can not have a property and param named '".concat(t,"'. Use .defaults instead."));Object.defineProperty(e.prototype,t,{enumerable:!0,get:function(){return null==this?void 0:this.arguments[n]},set:function(e){this.arguments[n]=e}})}),r&&(0,y.copyProperties)(e.prototype,r),e}},{key:"initializeContext",value:function(e,t,r){var n=this._parent?this._parent.initializeContext(e,t,r):r,o=this.getDefaults(e,t,n);if(e&&(n.self=e),n.arguments=t,o)for(var i=0,a=Object.keys(o);i<a.length;i++){var u=a[i];void 0===n[u]&&(n[u]=o[u])}return n}}])}();function v(e){return e&&e[t.HOOKS]||null}function b(e,r){var n=v(e);return e[t.HOOKS]=r.parent(n),e}function m(e){var t=v(e);return t?t.getMiddleware():null}t.HookManager=h,t.convertOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Array.isArray(e)?(new h).middleware(e):e:new h},t.getManager=v,t.setManager=b,t.getMiddleware=m,t.setMiddleware=function(e,t){return b(e,(new h).middleware(t))}},1030: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},n(e)}function o(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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Base=void 0;var u=a(r(5810)),c=r(6380),f=r(4271);function s(e){if("ECONNREFUSED"===e.code)throw new c.Unavailable(e.message,f._.pick(e,"address","port","config"));throw(0,c.convert)(e)}var l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=(0,f.stripSlashes)(t.name),this.options=t.options,this.connection=t.connection,this.base="".concat(t.base,"/").concat(this.name)},t=[{key:"makeUrl",value:function(e,t,r){var n=this.base;return r&&Object.keys(r).forEach(function(e){n=n.replace(":".concat(e),r[e])}),e=e||{},null!=t&&(n+="/".concat(encodeURIComponent(t))),n+this.getQuery(e)}},{key:"getQuery",value:function(e){if(0!==Object.keys(e).length){var t=u.default.stringify(e);return"?".concat(t)}return""}},{key:"methods",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){var r="_".concat(t);e[r]=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request({body:e,url:this.makeUrl(r.query,null,r.route),method:"POST",headers:Object.assign({"Content-Type":"application/json","X-Service-Method":t},r.headers)},r).catch(s)},e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this[r](e,t)}}),this}},{key:"_find",value:function(e){return this.request({url:this.makeUrl(e.query,null,e.route),method:"GET",headers:Object.assign({},e.headers)},e).catch(s)}},{key:"find",value:function(e){return this._find(e)}},{key:"_get",value:function(e,t){return void 0===e?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(t.query,e,t.route),method:"GET",headers:Object.assign({},t.headers)},t).catch(s)}},{key:"get",value:function(e,t){return this._get(e,t)}},{key:"_create",value:function(e,t){return this.request({url:this.makeUrl(t.query,null,t.route),body:e,method:"POST",headers:Object.assign({"Content-Type":"application/json"},t.headers)},t).catch(s)}},{key:"create",value:function(e,t){return this._create(e,t)}},{key:"_update",value:function(e,t,r){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,r.route),body:t,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"update",value:function(e,t,r){return this._update(e,t,r)}},{key:"_patch",value:function(e,t,r){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,r.route),body:t,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"patch",value:function(e,t,r){return this._patch(e,t,r)}},{key:"_remove",value:function(e,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(t.query,e,t.route),method:"DELETE",headers:Object.assign({},t.headers)},t).catch(s)}},{key:"remove",value:function(e,t){return this._remove(e,t)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.Base=l},1146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=t.authentication=void 0;var n=r(220);Object.defineProperty(t,"authentication",{enumerable:!0,get:function(){return n.authentication}});var o=r(1742);Object.defineProperty(t,"populateHeader",{enumerable:!0,get:function(){return o.populateHeader}})},1155:function(e){"use strict";e.exports=RangeError},1156:function(e,t,r){e.exports=r(4884)},1292:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},1319:function(e){"use strict";e.exports=Math.round},1539:function(e,t,r){"use strict";var n=r(1830),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},c=1024;e.exports={arrayToObject:u,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],a=o.obj[o.prop],u=Object.keys(a),c=0;c<u.length;++c){var f=u[c],s=a[f];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:a,prop:f}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(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){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var f="",s=0;s<u.length;s+=c){for(var l=u.length>=c?u.slice(s,s+c):u,p=[],y=0;y<l.length;++y){var d=l.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?p[p.length]=l.charAt(y):d<128?p[p.length]=a[d]:d<2048?p[p.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?p[p.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&l.charCodeAt(y)),p[p.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}f+=p.join("")}return f},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 r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r)?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},1742:function(e,t){"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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.populateHeader=void 0,t.populateHeader=function(){return function(e,t){var n,o,i,a=e.app,u=e.params.accessToken,c=a.authentication;if(a.rest&&u){var f=c.options,s=f.scheme,l=f.header,p="".concat(s," ").concat(u);e.params.headers=Object.assign({},(n={},i=p,(o=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(o=l))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n),e.params.headers)}return t()}}},1830: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}},1986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2110:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legacyDecorator=t.hookDecorator=t.objectHooks=t.functionHooks=t.getOriginal=void 0;var n=r(5054),o=r(745),i=r(539);function a(e){return"function"==typeof e.original?a(e.original):e}function u(e,t){if("function"!=typeof e)throw new Error("Can not apply hooks to non-function");var r=(0,o.convertOptions)(t),u=function(){for(var e=this,t=u.Context,o=u.original,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[a.length-1]instanceof t,s=f?a.pop():new t,l=r.initializeContext(this,a,s),p=[function(e,t){return t().then(function(){return f?e:e.result})}],y=r.collectMiddleware(this,a);return y&&Array.prototype.push.apply(p,y),p.push(function(t,r){return Object.prototype.hasOwnProperty.call(l,"result")?r():Promise.resolve(o.apply(e,t.arguments)).then(function(e){return t.result=e,r()})}),(0,n.compose)(p).call(this,l)};return(0,i.copyFnProperties)(u,e),(0,i.copyProperties)(u,e),(0,o.setManager)(u,r),Object.assign(u,{original:a(e),Context:r.getContextClass(),createContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new u.Context(e)}})}t.getOriginal=a,t.functionHooks=u,t.objectHooks=function(e,t){if(Array.isArray(t))return(0,o.setMiddleware)(e,t);for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r],a="function"==typeof e[i]?e:e.prototype,c=a&&a[i];if("function"!=typeof c)throw new Error("Can not apply hooks. '".concat(i,"' is not a function"));var f=(0,o.convertOptions)(t[i]);a[i]=u(c,f.props({method:i}))}return e},t.hookDecorator=function(e){return function(t,r){var n=(0,o.convertOptions)(e);if("class"===r.kind)return(0,o.setManager)(t.prototype,n),t;if("method"===r.kind){var i=String(r.name);return u(t,n.props({method:i}))}throw new Error("Can not apply hooks.")}},t.legacyDecorator=function(e){return function(t,r,n){var i=(0,o.convertOptions)(e);if(!n)return(0,o.setManager)(t.prototype,i),t;var a=n.value;if("function"!=typeof a)throw new Error("Can not apply hooks. '".concat(r,"' is not a function"));return n.value=u(a,i.props({method:r})),n}}},2140:function(e){"use strict";e.exports=URIError},2387:function(e){"use strict";e.exports=Math.min},2408:function(e,t){"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},r(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.StorageWrapper=t.MemoryStorage=void 0;var u=function(){return i(function e(){n(this,e),this.store={}},[{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)}}])}();t.MemoryStorage=u;var c=function(){return i(function e(t){n(this,e),this.storage=t},[{key:"getItem",value:function(e){var t;return Promise.resolve(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))}},{key:"setItem",value:function(e,t){var r;return Promise.resolve(null===(r=this.storage)||void 0===r?void 0:r.setItem(e,t))}},{key:"removeItem",value:function(e){var t;return Promise.resolve(null===(t=this.storage)||void 0===t?void 0:t.removeItem(e))}}])}();t.StorageWrapper=c},2422:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2452: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},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeServiceOptions=t.protectedMethods=t.defaultServiceEvents=t.defaultEventMap=t.defaultServiceMethods=t.defaultServiceArguments=t.SERVICE=void 0,t.getHookMethods=function(e,r){var n=r.methods;return t.defaultServiceMethods.filter(function(t){return"function"==typeof e[t]&&!n.includes(t)}).concat(n)},t.getServiceOptions=function(e){return e[t.SERVICE]},t.wrapService=function(e,r,n){if(r[t.SERVICE])return r;var i,a=Object.create(r),u=(0,t.normalizeServiceOptions)(r,n);if(0===Object.keys(u.methods).length&&![].concat((i=t.defaultServiceMethods,function(e){if(Array.isArray(e))return o(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(i)||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.")}()),["setup","teardown"]).some(function(e){return"function"==typeof r[e]}))throw new Error("Invalid service object passed for path `".concat(e,"`"));return Object.defineProperty(a,t.SERVICE,{value:u}),a};var c=r(46),f=r(4271);t.SERVICE=(0,f.createSymbol)("@feathersjs/service"),t.defaultServiceArguments={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]},t.defaultServiceMethods=["find","get","create","update","patch","remove"],t.defaultEventMap={create:"created",update:"updated",patch:"patched",remove:"removed"},t.defaultServiceEvents=Object.values(t.defaultEventMap),t.protectedMethods=Object.keys(Object.prototype).concat(Object.keys(c.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish"]),t.normalizeServiceOptions=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.methods,o=void 0===n?t.defaultServiceMethods.filter(function(t){return"function"==typeof e[t]}):n,i=r.events,u=void 0===i?e.events||[]:i,c=r.serviceEvents||t.defaultServiceEvents.concat(u);return a(a({},r),{},{events:u,methods:o,serviceEvents:c})}},2908: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(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},3067:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.SuperagentClient=t.FetchClient=t.AxiosClient=void 0,t.default=s;var o=r(7295),i=r(1030),a=r(7869);Object.defineProperty(t,"AxiosClient",{enumerable:!0,get:function(){return a.AxiosClient}});var u=r(8703);Object.defineProperty(t,"FetchClient",{enumerable:!0,get:function(){return u.FetchClient}});var c=r(351);Object.defineProperty(t,"SuperagentClient",{enumerable:!0,get:function(){return c.SuperagentClient}});var f={superagent:c.SuperagentClient,fetch:u.FetchClient,axios:a.AxiosClient};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={Base:i.Base};return Object.keys(f).forEach(function(r){t[r]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f[r];if(!t)throw new Error("".concat(r," has to be provided to feathers-rest"));"function"==typeof a&&(u=a,a={});var c=function(r){return new u({base:e,name:r,connection:t,options:a})},s=function(e){if(void 0!==e.rest)throw new Error("Only one default client provider can be configured");e.rest=t,e.defaultService=c,e.mixins.unshift(function(e,t,r){if(r&&r.methods&&e instanceof i.Base){var a=r.methods.filter(function(e){return!o.defaultServiceMethods.includes(e)});e.methods.apply(e,function(e){if(Array.isArray(e))return n(e)}(u=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(u)||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.")}())}var u})};return s.Service=u,s.service=c,s}}),t}e.exports=Object.assign(s,e.exports)},3346:function(e,t,r){"use strict";var n=r(8660),o=r(3468),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return i(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},3468:function(e){"use strict";e.exports=TypeError},3558:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(2908);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3830:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=r(1156),i=r(7295);function a(e,t){if(!e)throw new Error("Socket.io connection needs to be provided");var r=function(r){var n=Object.values(i.defaultEventMap),a=Object.assign({},t,{events:n,name:r,connection:e,method:"emit"});return new o.Service(a)},a=function(t){if(void 0!==t.io)throw new Error("Only one default client provider can be configured");t.io=e,t.defaultService=r,t.mixins.unshift(function(e,t,r){if(r&&r.methods&&e instanceof o.Service){var a=r.methods.filter(function(e){return!i.defaultServiceMethods.includes(e)});e.methods.apply(e,function(e){if(Array.isArray(e))return n(e)}(u=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(u)||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.")}())}var u})};return a.Service=o.Service,a.service=r,a}e.exports=Object.assign(a,e.exports)},4271:function(e,t,r){"use strict";function n(e,t,r){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return o="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},o(e)}function i(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,u=[],c=!0,f=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){f=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),c=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||u(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t._=void 0,t.stripSlashes=function(e){return e.replace(/^(\/+)|(\/+)$/g,"")},t.isPromise=function(e){return t._.isObject(e)&&"function"==typeof e.then},t.createSymbol=function(e){return"undefined"!=typeof Symbol?Symbol.for(e):e},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){var r=i(e,2),n=r[0],o=r[1];return t(n,o)})},every:function(e,t){return Object.keys(e).map(function(t){return[e[t],t]}).every(function(e){var r=i(e,2),n=r[0],o=r[1];return t(n,o)})},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"===o(e)&&!Array.isArray(e)&&null!==e},isObjectOrArray:function(e){return"object"===o(e)&&null!==e},extend:function(e){for(var t=arguments.length,r=new Array(t>1?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(n>1?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(t>1?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,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}},c(r(5792),t)},4531:function(e){"use strict";e.exports=Function.prototype.call},4607:function(e,t,r){"use strict";var n=r(528),o=r(9903),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},4884: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},n(e)}function o(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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.Service=void 0;var a=r(6380),u=(0,r(4271).createDebug)("@feathersjs/transport-commons/client"),c=["addListener","addEventListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeEventListener","removeListener"],f=["eventNames","getMaxListeners","setMaxListeners"],s=function(){return e=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,r=this,f.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)}}),c.forEach(function(e){r[e]=function(t){var r;if("function"!=typeof this.connection[e])throw new Error("Can not call '".concat(e,"' on the client service connection"));var n="".concat(this.path," ").concat(t);u("Calling emitter method ".concat(e," with ")+"namespaced event '".concat(n,"'"));for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var c=(r=this.connection)[e].apply(r,[n].concat(i));return c===this.connection?this:c}})},t=[{key:"send",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new Promise(function(r,o){var i,c,f,s=n.pop(),l=t.path;s&&Object.keys(s).forEach(function(e){l=l.replace(":".concat(e),s[e])}),n.unshift(e,l),void 0!==((null===(c=t.connection.flags)||void 0===c?void 0:c.timeout)||(null===(f=t.connection._opts)||void 0===f?void 0:f.ackTimeout))?n.push(function(e,t,n){return e||t?o((0,a.convert)(e||t)):r(n)}):n.push(function(e,t){return e?o((0,a.convert)(e)):r(t)}),u("Sending socket.".concat(t.method),n),(i=t.connection)[t.method].apply(i,n)})}},{key:"methods",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){var r="_".concat(t);e[r]=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send(t,e,r.query||{},r.route||{})},e[t]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this[r](e,t,t.route||{})}}),this}},{key:"_find",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.send("find",e.query||{},e.route||{})}},{key:"find",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._find(e)}},{key:"_get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("get",e,t.query||{},t.route||{})}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._get(e,t)}},{key:"_create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("create",e,t.query||{},t.route||{})}},{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._create(e,t)}},{key:"_update",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return void 0===e?Promise.reject(new Error("id for 'update' can not be undefined")):this.send("update",e,t,r.query||{},r.route||{})}},{key:"update",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._update(e,t,r)}},{key:"_patch",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.send("patch",e,t,r.query||{},r.route||{})}},{key:"patch",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._patch(e,t,r)}},{key:"_remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.send("remove",e,t.query||{},t.route||{})}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._remove(e,t)}},{key:"off",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if("function"==typeof this.connection.off){var o,i=(o=this.connection).off.apply(o,["".concat(this.path," ").concat(e)].concat(r));return i===this.connection?this:i}return 0===r.length?this.removeAllListeners(e):this.removeListener.apply(this,[e].concat(r))}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.Service=s},4940:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},4943:function(e){"use strict";e.exports=ReferenceError},5054:function(e,t){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.compose=void 0,t.compose=function(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}(e);try{for(n.s();!(t=n.n()).done;)if("function"!=typeof t.value)throw new TypeError("Middleware must be composed of functions!")}catch(e){n.e(e)}finally{n.f()}return function(t,r){var n=-1;return function o(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;var a=e[i];if(i===e.length&&(a=r),!a)return Promise.resolve();try{return Promise.resolve(a.call(this,t,o.bind(this,i+1)))}catch(e){return Promise.reject(e)}}.call(this,0)}}},5302: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},n(e)}function o(e){return function(e){if(Array.isArray(e))return i(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 i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.collect=t.fromErrorHook=t.fromAfterHook=t.fromBeforeHook=t.runHooks=t.runHook=void 0;var c=r(5054);function f(e){return function(r,n){return(0,t.runHook)(e,r,"before").then(n)}}function s(e){return function(r,n){return n().then(function(){return(0,t.runHook)(e,r,"after")})}}function l(e){return function(r,n){return n().catch(function(n){return r.error===n&&void 0===r.result||(r.original=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r),r.error=n,delete r.result),(0,t.runHook)(e,r,"error").then(function(){if(void 0===r.result&&void 0!==r.error)throw r.error}).catch(function(e){throw r.error=e,r.error})})}}t.runHook=function(e,t,r){var n=t.type;return r&&(t.type=r),Promise.resolve(e.call(t.self,t)).then(function(e){r&&(t.type=n),e&&e!==t&&Object.assign(t,e)})},t.runHooks=function(e){return function(r){return e.reduce(function(e,n){return e.then(function(){return(0,t.runHook)(n,r)})},Promise.resolve(r))}},t.fromBeforeHook=f,t.fromAfterHook=s,t.fromErrorHook=l,t.collect=function(e){var r=e.before,n=void 0===r?[]:r,i=e.after,a=void 0===i?[]:i,u=e.error,p=void 0===u?[]:u,y=n.map(f),d=o(a).reverse().map(s),h=p.length?[l((0,t.runHooks)(p))]:[];return(0,c.compose)([].concat(h,o(y),o(d)))}},5699:function(e,t,r){"use strict";var n,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)},u=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),a=0;a<r.length;a++)"default"!==r[a]&&o(t,e,r[a]);return i(t,e),t}),c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.socketio=t.rest=t.authentication=t.errors=void 0;const f=r(7295),s=c(r(6981));t.authentication=s.default;const l=c(r(3067));t.rest=l.default;const p=c(r(3830));t.socketio=p.default,a(r(7295),t),t.errors=u(r(6380)),t.default=f.feathers,e.exports=Object.assign(f.feathers,e.exports)},5731:function(e){"use strict";e.exports=SyntaxError},5751:function(e,t,r){"use strict";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,o(n.key),n)}}function o(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function a(e,t,r,n){var o=u(c(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},u.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function s(e){return function(e){if(Array.isArray(e))return l(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 l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e){return p="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},p(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FeathersHookManager=void 0,t.convertHookData=b,t.collectHooks=m,t.enableHooks=g,t.createContext=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e[t].createContext;if("function"!=typeof n)throw new Error("Can not create context for method ".concat(t));return n(r)},t.hookMixin=function(e,t,r){var n=this;if("function"==typeof e.hooks)return e;var o=(0,d.getHookMethods)(e,r).reduce(function(r,o){var i,a=d.defaultServiceArguments[o]||["data","params"];return r[o]=(i=new w(n,o)).params.apply(i,s(a)).props({app:n,path:t,method:o,service:e,event:null,type:"around",get statusCode(){var e;return null===(e=this.http)||void 0===e?void 0:e.status},set statusCode(e){this.http=this.http||{},this.http.status=e}}),r},{}),i=g(e);return(0,y.hooks)(e,o),e.hooks=function(e){var t=this;return e.before||e.after||e.error||e.around?i.call(this,e):Array.isArray(e)?(0,y.hooks)(this,e):(Object.keys(e).forEach(function(r){var n=(0,y.getManager)(t[r]);if(!(n instanceof w))throw new Error("Method ".concat(r," is not a Feathers hooks enabled service method"));n.middleware(e[r])}),this)},e};var y=r(7226),d=r(2452),h=["before","after","error","around"],v=function(e){return h.includes(e)};function b(e){var t={};if(Array.isArray(e))t.all=e;else if("object"!==p(e))t.all=[e];else for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r],i=e[o];t[o]=Array.isArray(i)?i:[i]}return t}function m(e,t){var r=e.__hooks,n=r.collected,o=r.collectedAll,i=r.around;return[].concat(s(i.all||[]),s(i[t]||[]),s(o.before||[]),s(n[t]||[]),s(o.after||[]))}function g(e){return Object.defineProperty(e,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(e){var t=this.__hooks,r=Object.keys(e).reduce(function(t,r){if(!v(r))throw new Error("'".concat(r,"' is not a valid hook type"));return t[r]=b(e[r]),t},{});return Object.keys(r).forEach(function(e){return Object.keys(r[e]).forEach(function(n){var o,i=r[e][n],a=(o=t[e])[n]||(o[n]=[]);if(a.push.apply(a,s(i)),"all"===n){if(t.before[n]||t.error[n]){var u=(0,y.collect)({before:t.before[n]||[],error:t.error[n]||[]});t.collectedAll.before=[u]}if(t.after[n]){var c=(0,y.collect)({after:t.after[n]||[]});t.collectedAll.after=[c]}}else if(t.before[n]||t.after[n]||t.error[n]){var f=(0,y.collect)({before:t.before[n]||[],after:t.after[n]||[],error:t.error[n]||[]});t.collected[n]=[f]}})}),this}}var w=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==p(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).app=e,n.method=r,n._middleware=[],n}return 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&&f(e,t)}(t,e),r=t,(o=[{key:"collectMiddleware",value:function(e,r){var n=m(this.app,this.method),o=a(t,"collectMiddleware",this,3)([e,r]),i=m(e,this.method);return[].concat(s(n),s(o),s(i))}},{key:"initializeContext",value:function(e,r,n){var o=a(t,"initializeContext",this,3)([e,r,n]);return o.params=o.params||{},o}},{key:"middleware",value:function(e){var t;return(t=this._middleware).push.apply(t,s(e)),this}}])&&n(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(y.HookManager);t.FeathersHookManager=w},5792:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noopDebug=n,t.setDebug=function(e){o=e,Object.keys(r).forEach(function(t){r[t]=e(t)})},t.createDebug=function(e){return r[e]||(r[e]=o(e)),function(){return r[e].apply(r,arguments)}};var r={};function n(){return function(){}}var o=n},5810:function(e,t,r){"use strict";var n=r(6623),o=r(6193),i=r(1830);e.exports={formats:i,parse:o,stringify:n}},5865:function(e){"use strict";e.exports=Math.pow},5871:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="development"},6095:function(e){"use strict";e.exports=Function.prototype.apply},6193:function(e,t,r){"use strict";var n=r(1539),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},u=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},f=function(e,t,r,i){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/g,f=r.depth>0&&/(\[[^[\]]*])/.exec(a),s=f?a.slice(0,f.index):a,l=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var p=0;r.depth>0&&null!==(f=u.exec(a))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,f[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(f[1])}if(f){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(f.index)+"]")}return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var u=o?t:c(t,r,i),f=e.length-1;f>=0;--f){var s,l=e[f];if("[]"===l&&r.parseArrays)s=r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u);else{s=r.plainObjects?{__proto__:null}:{};var p="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,y=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&l!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(s=[])[d]=u:"__proto__"!==y&&(s[y]=u):s={0:u}}u=s}return u}(l,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var s="string"==typeof e?function(e,t){var r={__proto__:null},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=t.parameterLimit===1/0?void 0:t.parameterLimit,l=f.split(t.delimiter,t.throwOnLimitExceeded?s+1:s);if(t.throwOnLimitExceeded&&l.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(1===s?"":"s")+" allowed.");var p,y=-1,d=t.charset;if(t.charsetSentinel)for(p=0;p<l.length;++p)0===l[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[p]?d="utf-8":"utf8=%26%2310003%3B"===l[p]&&(d="iso-8859-1"),y=p,p=l.length);for(p=0;p<l.length;++p)if(p!==y){var h,v,b=l[p],m=b.indexOf("]="),g=-1===m?b.indexOf("="):m+1;-1===g?(h=t.decoder(b,a.decoder,d,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,g),a.decoder,d,"key"),v=n.maybeMap(c(b.slice(g+1),t,i(r[h])?r[h].length:0),function(e){return t.decoder(e,a.decoder,d,"value")})),v&&t.interpretNumericEntities&&"iso-8859-1"===d&&(v=u(String(v))),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v);var w=o.call(r,h);w&&"combine"===t.duplicates?r[h]=n.combine(r[h],v):w&&"last"!==t.duplicates||(r[h]=v)}return r}(e,r):e,l=r.plainObjects?{__proto__:null}:{},p=Object.keys(s),y=0;y<p.length;++y){var d=p[y],h=f(d,s[d],r,"string"==typeof e);l=n.merge(l,h,r)}return!0===r.allowSparse?l:n.compact(l)}},6348:function(e,t,r){"use strict";var n=r(528),o=r(4607),i=r(8660),a=r(7004),u=r(3468),c=n("%WeakMap%",!0),f=o("WeakMap.prototype.get",!0),s=o("WeakMap.prototype.set",!0),l=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new u("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),s(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},6369:function(e,t,r){"use strict";var n=r(7859),o=r(7345),i=r(6423);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},6380:function(e,t){"use strict";var r=["message","errors"];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},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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,u(n.key),n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(e,t,r){return t=y(t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],y(e).constructor):t.apply(e,r))}function f(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&&p(e,t)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(l())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&p(o,r.prototype),o}(e,arguments,y(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},s(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.errors=t.Unavailable=t.BadGateway=t.NotImplemented=t.GeneralError=t.TooManyRequests=t.Unprocessable=t.LengthRequired=t.Gone=t.Conflict=t.Timeout=t.NotAcceptable=t.MethodNotAllowed=t.NotFound=t.Forbidden=t.PaymentError=t.NotAuthenticated=t.BadRequest=t.FeathersError=void 0,t.convert=function(e){if(!e)return e;var r=t.errors[e.name],o=r?new r(e.message,e.data):new Error(e.message||e);return"object"===n(e)&&Object.assign(o,e),o};var d=function(e){function t(e,i,a,u,f){var s;o(this,t);var l="string"==typeof e?e:"Error",p={name:i,code:a,className:u,type:"FeathersError"};if(Array.isArray(f))p.data=f;else if("object"===n(e)||void 0!==f){var y=null!==e&&"object"===n(e)?e:f,d=y.message,h=y.errors,v=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(y,r);l=d||l,p.errors=h,p.data=v}return s=c(this,t,[l]),Object.assign(s,p),s}return f(t,e),a(t,[{key:"toJSON",value:function(){var e={name:this.name,message:this.message,code:this.code,className:this.className};return void 0!==this.data&&(e.data=this.data),void 0!==this.errors&&(e.errors=this.errors),e}}])}(s(Error));t.FeathersError=d;var h=function(e){function t(e,r){return o(this,t),c(this,t,[e,"BadRequest",400,"bad-request",r])}return f(t,e),a(t)}(d);t.BadRequest=h;var v=function(e){function t(e,r){return o(this,t),c(this,t,[e,"NotAuthenticated",401,"not-authenticated",r])}return f(t,e),a(t)}(d);t.NotAuthenticated=v;var b=function(e){function t(e,r){return o(this,t),c(this,t,[e,"PaymentError",402,"payment-error",r])}return f(t,e),a(t)}(d);t.PaymentError=b;var m=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Forbidden",403,"forbidden",r])}return f(t,e),a(t)}(d);t.Forbidden=m;var g=function(e){function t(e,r){return o(this,t),c(this,t,[e,"NotFound",404,"not-found",r])}return f(t,e),a(t)}(d);t.NotFound=g;var w=function(e){function t(e,r){return o(this,t),c(this,t,[e,"MethodNotAllowed",405,"method-not-allowed",r])}return f(t,e),a(t)}(d);t.MethodNotAllowed=w;var O=function(e){function t(e,r){return o(this,t),c(this,t,[e,"NotAcceptable",406,"not-acceptable",r])}return f(t,e),a(t)}(d);t.NotAcceptable=O;var j=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Timeout",408,"timeout",r])}return f(t,e),a(t)}(d);t.Timeout=j;var S=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Conflict",409,"conflict",r])}return f(t,e),a(t)}(d);t.Conflict=S;var P=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Gone",410,"gone",r])}return f(t,e),a(t)}(d);t.Gone=P;var _=function(e){function t(e,r){return o(this,t),c(this,t,[e,"LengthRequired",411,"length-required",r])}return f(t,e),a(t)}(d);t.LengthRequired=_;var A=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Unprocessable",422,"unprocessable",r])}return f(t,e),a(t)}(d);t.Unprocessable=A;var E=function(e){function t(e,r){return o(this,t),c(this,t,[e,"TooManyRequests",429,"too-many-requests",r])}return f(t,e),a(t)}(d);t.TooManyRequests=E;var k=function(e){function t(e,r){return o(this,t),c(this,t,[e,"GeneralError",500,"general-error",r])}return f(t,e),a(t)}(d);t.GeneralError=k;var x=function(e){function t(e,r){return o(this,t),c(this,t,[e,"NotImplemented",501,"not-implemented",r])}return f(t,e),a(t)}(d);t.NotImplemented=x;var M=function(e){function t(e,r){return o(this,t),c(this,t,[e,"BadGateway",502,"bad-gateway",r])}return f(t,e),a(t)}(d);t.BadGateway=M;var T=function(e){function t(e,r){return o(this,t),c(this,t,[e,"Unavailable",503,"unavailable",r])}return f(t,e),a(t)}(d);t.Unavailable=T,t.errors={FeathersError:d,BadRequest:h,NotAuthenticated:v,PaymentError:b,Forbidden:m,NotFound:g,MethodNotAllowed:w,NotAcceptable:O,Timeout:j,Conflict:S,LengthRequired:_,Unprocessable:A,TooManyRequests:E,GeneralError:k,NotImplemented:x,BadGateway:M,Unavailable:T,400:h,401:v,402:b,403:m,404:g,405:w,406:O,408:j,409:S,410:P,411:_,422:A,429:E,500:k,501:x,502:M,503:T}},6423:function(e,t,r){"use strict";var n,o=r(9903),i=r(9336);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:u(e))}},6623:function(e,t,r){"use strict";var n=r(7575),o=r(1539),i=r(1830),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,f=Array.prototype.push,s=function(e,t){f.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,p=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,u,f,l,p,h,v,b,m,g,w,O,j,S,P){for(var _,A=t,E=P,k=0,x=!1;void 0!==(E=E.get(d))&&!x;){var M=E.get(t);if(k+=1,void 0!==M){if(M===k)throw new RangeError("Cyclic object value");x=!0}void 0===E.get(d)&&(k=0)}if("function"==typeof v?A=v(r,A):A instanceof Date?A=g(A):"comma"===i&&c(A)&&(A=o.maybeMap(A,function(e){return e instanceof Date?g(e):e})),null===A){if(f)return h&&!j?h(r,y.encoder,S,"key",w):r;A=""}if("string"==typeof(_=A)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||o.isBuffer(A))return h?[O(j?r:h(r,y.encoder,S,"key",w))+"="+O(h(A,y.encoder,S,"value",w))]:[O(r)+"="+O(String(A))];var T,I=[];if(void 0===A)return I;if("comma"===i&&c(A))j&&h&&(A=o.maybeMap(A,h)),T=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(v))T=v;else{var C=Object.keys(A);T=b?C.sort(b):C}var R=p?String(r).replace(/\./g,"%2E"):String(r),D=a&&c(A)&&1===A.length?R+"[]":R;if(u&&c(A)&&0===A.length)return D+"[]";for(var F=0;F<T.length;++F){var L=T[F],N="object"==typeof L&&L&&void 0!==L.value?L.value:A[L];if(!l||null!==N){var B=m&&p?String(L).replace(/\./g,"%2E"):String(L),U=c(A)?"function"==typeof i?i(D,B):D:D+(m?"."+B:"["+B+"]");P.set(t,k);var H=n();H.set(d,P),s(I,e(N,U,i,a,u,f,l,p,"comma"===i&&j&&c(A)?null:h,v,b,m,g,w,O,j,S,H))}}return I};e.exports=function(e,t){var r,o=e,f=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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||y.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=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],f=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(f=e.filter),n=e.arrayFormat in u?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:s,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:f,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof f.filter?o=(0,f.filter)("",o):c(f.filter)&&(r=f.filter);var l=[];if("object"!=typeof o||null===o)return"";var p=u[f.arrayFormat],d="comma"===p&&f.commaRoundTrip;r||(r=Object.keys(o)),f.sort&&r.sort(f.sort);for(var v=n(),b=0;b<r.length;++b){var m=r[b],g=o[m];f.skipNulls&&null===g||s(l,h(g,m,p,d,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,v))}var w=l.join(f.delimiter),O=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?O+="utf8=%26%2310003%3B&":O+="utf8=%E2%9C%93&"),w.length>0?O+w:""}},6882:function(e,t,r){"use strict";var n=r(2422);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},6973:function(){},6981:function(e,t,r){"use strict";var n,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),a=0;a<r.length;a++)"default"!==r[a]&&o(t,e,r[a]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=t.defaultStorage=t.hooks=t.MemoryStorage=t.AuthenticationClient=t.getDefaultStorage=void 0;var u=r(522);Object.defineProperty(t,"AuthenticationClient",{enumerable:!0,get:function(){return u.AuthenticationClient}});var c=a(r(1146));t.hooks=c;var f=r(2408);Object.defineProperty(t,"MemoryStorage",{enumerable:!0,get:function(){return f.MemoryStorage}}),t.getDefaultStorage=function(){try{return new f.StorageWrapper(window.localStorage)}catch(e){}return new f.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:u.AuthenticationClient,storage:t.defaultStorage};var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign({},t.defaults,e),n=r.Authentication;return function(e){var t=new n(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([c.authentication(),c.populateHeader()])}};t.default=s,e.exports=Object.assign(s,e.exports)},7004:function(e,t,r){"use strict";var n=r(528),o=r(4607),i=r(8660),a=r(3468),u=n("%Map%",!0),c=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),s=o("Map.prototype.has",!0),l=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!u&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=l(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&s(e,t)},set:function(t,r){e||(e=new u),f(e,t,r)}};return t}},7196:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7226:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hooks=t.middleware=void 0;var a=r(745),u=r(2110);i(r(2110),t),i(r(5054),t),i(r(745),t),i(r(5302),t),t.middleware=function(e,t){var r,o=(new a.HookManager).middleware(e);return t&&(t.params&&o.params.apply(o,function(e){if(Array.isArray(e))return n(e)}(r=t.params)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(r)||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.")}()),t.defaults&&o.defaults(t.defaults),t.props&&o.props(t.props)),o},t.hooks=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1];return"function"==typeof n&&(o instanceof a.HookManager||Array.isArray(o)||1===t.length)?(0,u.functionHooks)(n,o):2===t.length?(0,u.objectHooks)(n,o):(0,u.hookDecorator)(n)}},7295:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Feathers=t.version=void 0,t.feathers=f;var a=r(4271),u=i(r(5871));t.version=u.default;var c=r(9205);function f(){return new c.Feathers}Object.defineProperty(t,"Feathers",{enumerable:!0,get:function(){return c.Feathers}}),f.setDebug=a.setDebug,o(r(5751),t),o(r(1986),t),o(r(2452),t),e.exports=Object.assign(f,e.exports)},7345:function(e,t,r){"use strict";var n=r(9629);e.exports=n.getPrototypeOf||null},7575:function(e,t,r){"use strict";var n=r(3468),o=r(8660),i=r(3346),a=r(7004),u=r(6348)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=u()),e.set(t,r)}};return t}},7859:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},7869: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},n(e)}function o(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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosClient=void 0;var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=u(t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&c(e,t)}(t,e),r=t,(i=[{key:"request",value:function(e,t){var r=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(r).then(function(e){return e.data}).catch(function(e){var t=e.response||e;throw t instanceof Error?t:t.data||t})}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);t.AxiosClient=f},8129:function(e){"use strict";e.exports=Math.max},8165:function(e,t,r){"use strict";var n=r(9138),o=r(6095),i=r(4531),a=r(7196);e.exports=a||n.call(i,o)},8449:function(e){"use strict";e.exports=Math.floor},8479:function(e){"use strict";e.exports=Math.abs},8554:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(9138);e.exports=i.call(n,o)},8660: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,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=u&&c&&"function"==typeof c.get?c.get:null,s=u&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,b=String.prototype.match,m=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,O=String.prototype.toLowerCase,j=RegExp.prototype.test,S=Array.prototype.concat,P=Array.prototype.join,_=Array.prototype.slice,A=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf: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&&e>-1e3&&e<1e3||j.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=m.call(t,o.length+1);return g.call(o,r,"$&_")+"."+g.call(g.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,r,"$&_")}var D=r(6973),F=D.custom,L=G(F)?F:null,N={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,o=N[n];return o+e+o}function H(e){return g.call(String(e),/"/g,"&quot;")}function q(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function W(e){return"[object Array]"===V(e)&&q(e)}function K(e){return"[object RegExp]"===V(e)&&q(e)}function G(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,u){var c=n||{};if(z(c,"quoteStyle")&&!z(N,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!z(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.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 Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var j=String(t);return w?R(t,j):j}if("bigint"==typeof t){var A=String(t)+"n";return w?R(t,A):A}var k=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=k&&k>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var F,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=P.call(Array(e.indent+1)," ")}return{base:r,prev:P.call(Array(t+1),r)}}(c,o);if(void 0===u)u=[];else if(J(u,t)>=0)return"[Circular]";function $(t,r,n){if(r&&(u=_.call(u)).push(r),n){var i={depth:c.depth};return z(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,u)}return e(t,c,o+1,u)}if("function"==typeof t&&!K(t)){var X=function(e){if(e.name)return e.name;var t=b.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,$);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+P.call(ne,", ")+" }":"")}if(G(t)){var oe=M?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||M?oe:Y(oe)}if((F=t)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var ie="<"+O.call(String(t.nodeName)),ae=t.attributes||[],ue=0;ue<ae.length;ue++)ie+=" "+ae[ue].name+"="+U(H(ae[ue].value),"double",c);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+O.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ce=re(t,$);return B&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,B)+"]":"[ "+P.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&q(e)}(t)){var fe=re(t,$);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===fe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(fe,", ")+" }":"{ ["+String(t)+"] "+P.call(S.call("[cause]: "+$(t.cause),fe),", ")+" }"}if("object"==typeof t&&h){if(L&&"function"==typeof t[L]&&D)return D(t,{depth:k-o});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{f.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return a&&a.call(t,function(e,r){se.push($(r,t,!0)+" => "+$(e,t))}),ee("Map",i.call(t),se,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,function(e){le.push($(e,t))}),ee("Set",f.call(t),le,B)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===V(e)&&q(e)}(t))return Y($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Y($(E.call(t)));if(function(e){return"[object Boolean]"===V(e)&&q(e)}(t))return Y(d.call(t));if(function(e){return"[object String]"===V(e)&&q(e)}(t))return Y($(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&q(e)}(t)&&!K(t)){var pe=re(t,$),ye=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!ye&&T&&Object(t)===t&&T in t?m.call(V(t),8,-1):de?"Object":"",ve=(ye||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+P.call(S.call([],he||[],de||[]),": ")+"] ":"");return 0===pe.length?ve+"{}":B?ve+"{"+te(pe,B)+"}":ve+"{ "+P.call(pe,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return $.call(e,t)}function V(e){return h.call(e)}function J(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,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(m.call(e,0,t.maxStringLength),t)+n}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,U(g.call(g.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Y(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):P.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof k?k(e):[];if(M){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||M&&i["$"+c]instanceof Symbol||(j.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof k)for(var f=0;f<a.length;f++)I.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}},8703: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},n(e)}function o(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,i(n.key),n)}}function i(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.FetchClient=void 0;var f=r(6380),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=u(t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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&&c(e,t)}(t,e),r=t,(i=[{key:"request",value:function(e,t){var r=Object.assign({},e,t.connection);return r.headers=Object.assign({Accept:"application/json"},this.options.headers,r.headers),e.body&&(r.body=JSON.stringify(e.body)),this.connection(e.url,r).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(f.errors[e.status]||Error)("JSON parsing error")}).then(function(t){throw t.response=e,t})}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(1030).Base);t.FetchClient=s},8794:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),u=r(0,o.length-a.length),c=[],f=0;f<u;f++)c[f]="$"+f;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))}),o.prototype){var s=function(){};s.prototype=o.prototype,i.prototype=new s,s.prototype=null}return i}},9110:function(e){"use strict";e.exports=EvalError},9138:function(e,t,r){"use strict";var n=r(8794);e.exports=Function.prototype.bind||n},9205: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},n(e)}function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,o,a){var u=n&&n.prototype instanceof f?n:f,s=Object.create(u.prototype);return i(s,"_invoke",function(r,n,o){var i,a,u,f=0,s=o||[],l=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,c}};function y(r,n){for(a=r,u=n,t=0;!l&&f&&!o&&t<s.length;t++){var o,i=s[t],y=p.p,d=i[2];r>3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=r<2&&y<i[1])?(a=0,p.v=n,p.n=i[1]):y<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return c;throw l=!0,n}return function(o,s,d){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&y(s,d),a=s,u=d;(t=a<2?e:u)||!l;){i||(a?a<3?(a>1&&(p.n=-1),y(a,u)):p.n=u:p.v=u);try{if(f=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(l=p.n<0)?u:r.call(n,p))!==c)break}catch(t){i=e,a=1,u=t}finally{f=1}}return{value:t,done:l}}}(r,o,a),!0),s}var c={};function f(){}function s(){}function l(){}t=Object.getPrototypeOf;var p=[][n]?t(t([][n]())):(i(t={},n,function(){return this}),t),y=l.prototype=f.prototype=Object.create(p);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,i(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e}return s.prototype=l,i(y,"constructor",l),i(l,"constructor",s),s.displayName="GeneratorFunction",i(l,a,"GeneratorFunction"),i(y),i(y,a,"Generator"),i(y,n,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:u,m:d}})()}function i(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,r,n){function a(t,r){i(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},i(e,t,r,n)}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(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,f(n.key),n)}}function f(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Feathers=void 0;var d=y(r(5871)),h=r(46),v=r(4271),b=r(7226),m=r(694),g=r(5751),w=r(2452),O=r(5751),j=(0,v.createDebug)("@feathersjs/feathers"),S=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).services={},e.settings={},e.mixins=[g.hookMixin,m.eventMixin],e.version=d.default,e._isSetup=!1,e.registerHooks=(0,O.enableHooks)(e),e.registerHooks({around:[m.eventHook]}),e}return 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&&p(e,t)}(t,e),r=t,i=[{key:"get",value:function(e){return this.settings[e]}},{key:"set",value:function(e,t){return this.settings[e]=t,this}},{key:"configure",value:function(e){return e.call(this,this),this}},{key:"defaultService",value:function(e){throw new Error("Can not find service '".concat(e,"'"))}},{key:"service",value:function(e){var t=(0,v.stripSlashes)(e)||"/",r=this.services.hasOwnProperty(t)?this.services[t]:void 0;return void 0===r?(this.use(t,this.defaultService(t)),this.service(t)):r}},{key:"_setup",value:function(){var e=this;return this._isSetup=!0,Object.keys(this.services).reduce(function(t,r){return t.then(function(){var t=e.service(r);if("function"==typeof t.setup)return j("Setting up service for `".concat(r,"`")),t.setup(e,r)})},Promise.resolve()).then(function(){return e})}},{key:"setup",get:function(){return this._setup},set:function(e){this._setup=e[b.HOOKS]?e:(0,b.hooks)(e,(0,b.middleware)().params("server").props({app:this}))}},{key:"_teardown",value:function(){var e=this;return this._isSetup=!1,Object.keys(this.services).reduce(function(t,r){return t.then(function(){var t=e.service(r);if("function"==typeof t.teardown)return j("Tearing down service for `".concat(r,"`")),t.teardown(e,r)})},Promise.resolve()).then(function(){return e})}},{key:"teardown",get:function(){return this._teardown},set:function(e){this._teardown=e[b.HOOKS]?e:(0,b.hooks)(e,(0,b.middleware)().params("server").props({app:this}))}},{key:"use",value:function(e,t,r){var n=this;if("string"!=typeof e)throw new Error("'".concat(e,"' is not a valid service path."));var o=(0,v.stripSlashes)(e)||"/",i=t;if("function"==typeof i.service&&i.services)return Object.keys(i.services).forEach(function(e){return n.use("".concat(o,"/").concat(e),i.service(e))}),this;var a,c=(0,w.wrapService)(o,t,r),f=(0,w.getServiceOptions)(c),s=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(w.protectedMethods);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(f.methods.includes(l))throw new Error("'".concat(l,"' on service '").concat(o,"' is not allowed as a custom method name"))}}catch(e){s.e(e)}finally{s.f()}return j("Registering new service at `".concat(o,"`")),this.mixins.forEach(function(e){return e.call(n,c,o,f)}),this.services[o]=c,this._isSetup&&"function"==typeof c.setup&&(j("Setting up service for `".concat(o,"`")),c.setup(this,o)),this}},{key:"unuse",value:(f=o().m(function e(t){var r,n;return o().w(function(e){for(;;)switch(e.n){case 0:if(r=(0,v.stripSlashes)(t)||"/",!(n=this.services[r])||"function"!=typeof n.teardown){e.n=1;break}return e.n=1,n.teardown(this,r);case 1:return delete this.services[r],e.a(2,n)}},e,this)}),y=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=f.apply(e,t);function i(e){a(o,r,n,i,u,"next",e)}function u(e){a(o,r,n,i,u,"throw",e)}i(void 0)})},function(e){return y.apply(this,arguments)})},{key:"hooks",value:function(e){var t=e;return t.before||t.after||t.error||t.around?this.registerHooks(t):t.setup||t.teardown?(0,b.hooks)(this,t):this.registerHooks({around:t}),this}}],i&&c(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,f,y}(h.EventEmitter);t.Feathers=S},9336:function(e,t,r){"use strict";var n=r(1292);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9629:function(e){"use strict";e.exports=Object},9838:function(e){"use strict";e.exports=Error},9903:function(e,t,r){"use strict";var n=r(9138),o=r(3468),i=r(4531),a=r(8165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(5699)}()});