@feathersjs/client 5.0.39 → 6.0.0-pre.0

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 @@
1
- /*! For license information please see feathers.min.js.LICENSE.txt */
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=r(7575),i=Object.prototype.hasOwnProperty,a=Array.isArray,u=o(),c=function(e,t){return u.set(e,t),e},f=function(e){return u.has(e)},s=function(e){return u.get(e)},l=function(e,t){u.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),y=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},d=1024;e.exports={arrayToObject:y,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(f(e)){var o=s(e)+1;return e[o]=t,l(e,o),e}var i=[].concat(e,t);return i.length>r?c(y(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],u=Object.keys(i),c=0;c<u.length;++c){var f=u[c],s=i[f];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:i,prop:f}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){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 a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",c=0;c<a.length;c+=d){for(var f=a.length>=d?a.slice(c,c+d):a,s=[],l=0;l<f.length;++l){var y=f.charCodeAt(l);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?s[s.length]=f.charAt(l):y<128?s[s.length]=p[y]:y<2048?s[s.length]=p[192|y>>6]+p[128|63&y]:y<55296||y>=57344?s[s.length]=p[224|y>>12]+p[128|y>>6&63]+p[128|63&y]:(l+=1,y=65536+((1023&y)<<10|1023&f.charCodeAt(l)),s[s.length]=p[240|y>>18]+p[128|y>>12&63]+p[128|y>>6&63]+p[128|63&y])}u+=s.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:f,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];if(f(t)){var o=s(t)+1;t[o]=r,l(t,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(f(r)){for(var u=Object.keys(r),p=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},d=0;d<u.length;d++)p[parseInt(u[d],10)+1]=r[u[d]];return c(p,s(r)+1)}return[t].concat(r)}var h=t;return a(t)&&!a(r)&&(h=y(t,n)),a(t)&&a(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},h)}}},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="5.0.38"},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=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),a=i?r.slice(0,i.index):r,u=[];if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;u.push(a)}for(var c=0;null!==(i=n.exec(r))&&c<t.depth;){c+=1;var f=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,f)&&!t.allowPrototypes)return;u.push(i[1])}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");u.push("["+r.slice(i.index)+"]")}return u}(e,r);if(a)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=n.isOverflow(u)?u:r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u,r.arrayLimit,r.plainObjects);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}(a,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;if(-1===g?(h=t.decoder(b,a.decoder,d,"key"),v=t.strictNullHandling?null:""):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),null!==h){var w=o.call(r,h);w&&"combine"===t.duplicates?r[h]=n.combine(r[h],v,t.arrayLimit,t.plainObjects):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)}()});
1
+ var e={4:function(e,t,r){var n=r(528),o=r(607),i=r(660),a=r(468),s=n("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),l=o("Map.prototype.has",!0),f=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&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=f(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&&l(e,t)},set:function(t,r){e||(e=new s),u(e,t,r)}};return t}},46:function(e){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))}d(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&d(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 s(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 u(e,t,r,n){var o,i,a,u;if(s(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 l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.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):h(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 h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function d(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 s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=h(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(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):[]}},95:function(e){e.exports=Function.prototype.apply},110:function(e){e.exports=EvalError},129:function(e){e.exports=Math.max},138:function(e,t,r){var n=r(794);e.exports=Function.prototype.bind||n},140:function(e){e.exports=URIError},155:function(e){e.exports=RangeError},165:function(e,t,r){var n=r(138),o=r(95),i=r(531),a=r(196);e.exports=a||n.call(i,o)},193:function(e,t,r){var n=r(539),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},s=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},u=function(e,t,r,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),a=i?r.slice(0,i.index):r,s=[];if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;s.push(a)}for(var c=0;null!==(i=n.exec(r))&&c<t.depth;){c+=1;var u=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,u)&&!t.allowPrototypes)return;s.push(i[1])}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s.push("["+r.slice(i.index)+"]")}return s}(e,r);if(a)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 s=o?t:c(t,r,i),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&r.parseArrays)l=n.isOverflow(s)?s:r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,y=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(y,10);r.parseArrays||""!==y?!isNaN(h)&&f!==y&&String(h)===y&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[])[h]=s:"__proto__"!==y&&(l[y]=s):l={0:s}}s=l}return s}(a,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 l="string"==typeof e?function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var p,y=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<f.length;++p)0===f[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[p]?h="utf-8":"utf8=%26%2310003%3B"===f[p]&&(h="iso-8859-1"),y=p,p=f.length);for(p=0;p<f.length;++p)if(p!==y){var d,v,m=f[p],b=m.indexOf("]="),g=-1===b?m.indexOf("="):b+1;if(-1===g?(d=t.decoder(m,a.decoder,h,"key"),v=t.strictNullHandling?null:""):null!==(d=t.decoder(m.slice(0,g),a.decoder,h,"key"))&&(v=n.maybeMap(c(m.slice(g+1),t,i(r[d])?r[d].length:0),function(e){return t.decoder(e,a.decoder,h,"value")})),v&&t.interpretNumericEntities&&"iso-8859-1"===h&&(v=s(String(v))),m.indexOf("[]=")>-1&&(v=i(v)?[v]:v),null!==d){var w=o.call(r,d);w&&"combine"===t.duplicates?r[d]=n.combine(r[d],v,t.arrayLimit,t.plainObjects):w&&"last"!==t.duplicates||(r[d]=v)}}return r}(e,r):e,f=r.plainObjects?{__proto__:null}:{},p=Object.keys(l),y=0;y<p.length;++y){var h=p[y],d=u(h,l[h],r,"string"==typeof e);f=n.merge(f,d,r)}return!0===r.allowSparse?f:n.compact(f)}},196:function(e){e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},292:function(e){e.exports=Object.getOwnPropertyDescriptor},319:function(e){e.exports=Math.round},336:function(e,t,r){var n=r(292);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},345:function(e,t,r){var n=r(629);e.exports=n.getPrototypeOf||null},346:function(e,t,r){var n=r(660),o=r(468),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}},348:function(e,t,r){var n=r(528),o=r(607),i=r(660),a=r(4),s=r(468),c=n("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=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 s("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?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},369:function(e,t,r){var n=r(859),o=r(345),i=r(423);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},387:function(e){e.exports=Math.min},422:function(e){e.exports=Number.isNaN||function(e){return e!=e}},423:function(e,t,r){var n,o=r(903),i=r(336);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__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},449:function(e){e.exports=Math.floor},468:function(e){e.exports=TypeError},479:function(e){e.exports=Math.abs},528:function(e,t,r){var n,o=r(629),i=r(838),a=r(110),s=r(155),c=r(943),u=r(731),l=r(468),f=r(140),p=r(479),y=r(449),h=r(129),d=r(387),v=r(865),m=r(319),b=r(882),g=Function,w=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},j=r(336),O=r(940),S=function(){throw new l},E=j?function(){try{return S}catch(e){try{return j(arguments,"callee").get}catch(e){return S}}}():S,P=r(558)(),A=r(369),_=r(345),x=r(859),k=r(95),T=r(531),I={},R="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":P&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&A?A(""[Symbol.iterator]()):n,"%Symbol%":P?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":E,"%TypedArray%":R,"%TypeError%":l,"%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%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":k,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":_,"%Math.abs%":p,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":v,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":x};if(A)try{null.error}catch(e){var C=A(A(e));L["%Error.prototype%"]=C}var M=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 L[t]=r,r},N={__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(138),D=r(554),U=F.call(T,Array.prototype.concat),B=F.call(k,Array.prototype.splice),q=F.call(T,String.prototype.replace),$=F.call(T,String.prototype.slice),W=F.call(T,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,H=function(e,t){var r,n=e;if(D(N,n)&&(n="%"+(r=N[n])[0]+"%"),D(L,n)){var o=L[n];if(o===I&&(o=M(n)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,K,function(e,t,r,o){n[n.length]=r?q(o,G,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=H("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],B(r,U([0,1],c)));for(var f=1,p=!0;f<r.length;f+=1){var y=r[f],h=$(y,0,1),d=$(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new u("property names with quotes must have matching quotes");if("constructor"!==y&&p||(s=!0),D(L,i="%"+(n+="."+y)+"%"))a=L[i];else if(null!=a){if(!(y in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(j&&f+1>=r.length){var v=j(a,y);a=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[y]}else p=D(a,y),a=a[y];p&&!s&&(L[i]=a)}}return a}},531:function(e){e.exports=Function.prototype.call},539:function(e,t,r){var n=r(830),o=r(575),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=o(),c=function(e,t){return s.set(e,t),e},u=function(e){return s.has(e)},l=function(e){return s.get(e)},f=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),y=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},h=1024;e.exports={arrayToObject:y,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var o=l(e)+1;return e[o]=t,f(e,o),e}var i=[].concat(e,t);return i.length>r?c(y(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],s=Object.keys(i),c=0;c<s.length;++c){var u=s[c],l=i[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:u}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){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 a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;c+=h){for(var u=a.length>=h?a.slice(c,c+h):a,l=[],f=0;f<u.length;++f){var y=u.charCodeAt(f);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?l[l.length]=u.charAt(f):y<128?l[l.length]=p[y]:y<2048?l[l.length]=p[192|y>>6]+p[128|63&y]:y<55296||y>=57344?l[l.length]=p[224|y>>12]+p[128|y>>6&63]+p[128|63&y]:(f+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(f)),l[l.length]=p[240|y>>18]+p[128|y>>12&63]+p[128|y>>6&63]+p[128|63&y])}s+=l.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];if(u(t)){var o=l(t)+1;t[o]=r,f(t,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(u(r)){for(var s=Object.keys(r),p=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<s.length;h++)p[parseInt(s[h],10)+1]=r[s[h]];return c(p,l(r)+1)}return[t].concat(r)}var d=t;return a(t)&&!a(r)&&(d=y(t,n)),a(t)&&a(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},d)}}},554:function(e,t,r){var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(138);e.exports=i.call(n,o)},558:function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,o=r(908);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},575:function(e,t,r){var n=r(468),o=r(660),i=r(346),a=r(4),s=r(348)||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=s()),e.set(t,r)}};return t}},607:function(e,t,r){var n=r(528),o=r(903),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}},623:function(e,t,r){var n=r(575),o=r(539),i=r(830),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=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 f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},d=function e(t,r,i,a,s,u,f,p,d,v,m,b,g,w,j,O,S,E){for(var P,A=t,_=E,x=0,k=!1;void 0!==(_=_.get(h))&&!k;){var T=_.get(t);if(x+=1,void 0!==T){if(T===x)throw new RangeError("Cyclic object value");k=!0}void 0===_.get(h)&&(x=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(u)return d&&!O?d(r,y.encoder,S,"key",w):r;A=""}if("string"==typeof(P=A)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||o.isBuffer(A))return d?[j(O?r:d(r,y.encoder,S,"key",w))+"="+j(d(A,y.encoder,S,"value",w))]:[j(r)+"="+j(String(A))];var I,R=[];if(void 0===A)return R;if("comma"===i&&c(A))O&&d&&(A=o.maybeMap(A,d)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(v))I=v;else{var L=Object.keys(A);I=m?L.sort(m):L}var C=p?String(r).replace(/\./g,"%2E"):String(r),M=a&&c(A)&&1===A.length?C+"[]":C;if(s&&c(A)&&0===A.length)return M+"[]";for(var N=0;N<I.length;++N){var F=I[N],D="object"==typeof F&&F&&void 0!==F.value?F.value:A[F];if(!f||null!==D){var U=b&&p?String(F).replace(/\./g,"%2E"):String(F),B=c(A)?"function"==typeof i?i(M,U):M:M+(b?"."+U:"["+U+"]");E.set(t,x);var q=n();q.set(h,E),l(R,e(D,B,i,a,s,u,f,p,"comma"===i&&O&&c(A)?null:d,v,m,b,g,w,j,O,S,q))}}return R};e.exports=function(e,t){var r,o=e,u=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],u=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),n=e.arrayFormat in s?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 l=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:l,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:u,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 u.filter?o=(0,u.filter)("",o):c(u.filter)&&(r=u.filter);var f=[];if("object"!=typeof o||null===o)return"";var p=s[u.arrayFormat],h="comma"===p&&u.commaRoundTrip;r||(r=Object.keys(o)),u.sort&&r.sort(u.sort);for(var v=n(),m=0;m<r.length;++m){var b=r[m],g=o[b];u.skipNulls&&null===g||l(f,d(g,b,p,h,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,v))}var w=f.join(u.delimiter),j=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),w.length>0?j+w:""}},629:function(e){e.exports=Object},660: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,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="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,m=String.prototype.match,b=String.prototype.slice,g=String.prototype.replace,w=String.prototype.toUpperCase,j=String.prototype.toLowerCase,O=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,P=Array.prototype.slice,A=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||O.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=b.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 M=r(973),N=M.custom,F=G(N)?N:null,D={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,r){var n=r.quoteStyle||t,o=D[n];return o+e+o}function q(e){return g.call(String(e),/"/g,"&quot;")}function $(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function W(e){return"[object Array]"===V(e)&&$(e)}function K(e){return"[object RegExp]"===V(e)&&$(e)}function G(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(z(c,"quoteStyle")&&!z(D,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 d=!z(c,"customInspect")||c.customInspect;if("boolean"!=typeof d&&"symbol"!==d)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 O=String(t);return w?C(t,O):O}if("bigint"==typeof t){var A=String(t)+"n";return w?C(t,A):A}var x=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var N,U=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function H(t,r,n){if(r&&(s=P.call(s)).push(r),n){var i={depth:c.depth};return z(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!K(t)){var X=function(e){if(e.name)return e.name;var t=m.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,H);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+E.call(ne,", ")+" }":"")}if(G(t)){var oe=T?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||T?oe:Y(oe)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var ie="<"+j.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)ie+=" "+ae[se].name+"="+B(q(ae[se].value),"double",c);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+j.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ce=re(t,H);return U&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,U)+"]":"[ "+E.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&$(e)}(t)){var ue=re(t,H);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ue.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ue,", ")+" }":"{ ["+String(t)+"] "+E.call(S.call("[cause]: "+H(t.cause),ue),", ")+" }"}if("object"==typeof t&&d){if(F&&"function"==typeof t[F]&&M)return M(t,{depth:x-o});if("symbol"!==d&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,function(e,r){le.push(H(r,t,!0)+" => "+H(e,t))}),ee("Map",i.call(t),le,U)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return l&&l.call(t,function(e){fe.push(H(e,t))}),ee("Set",u.call(t),fe,U)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);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{f.call(e,f)}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)&&$(e)}(t))return Y(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return Y(H(_.call(t)));if(function(e){return"[object Boolean]"===V(e)&&$(e)}(t))return Y(h.call(t));if(function(e){return"[object String]"===V(e)&&$(e)}(t))return Y(H(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)&&$(e)}(t)&&!K(t)){var pe=re(t,H),ye=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",de=!ye&&I&&Object(t)===t&&I in t?b.call(V(t),8,-1):he?"Object":"",ve=(ye||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||he?"["+E.call(S.call([],de||[],he||[]),": ")+"] ":"");return 0===pe.length?ve+"{}":U?ve+"{"+te(pe,U)+"}":ve+"{ "+E.call(pe,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return H.call(e,t)}function V(e){return d.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(b.call(e,0,t.maxStringLength),t)+n}var o=U[t.quoteStyle||"single"];return o.lastIndex=0,B(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):E.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.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 x?x(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(O.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof x)for(var u=0;u<a.length;u++)R.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},731:function(e){e.exports=SyntaxError},794:function(e){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),s=r(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;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 l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},810:function(e,t,r){var n=r(623),o=r(193),i=r(830);e.exports={formats:i,parse:o,stringify:n}},830:function(e){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}},838:function(e){e.exports=Error},859:function(e){e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},865:function(e){e.exports=Math.pow},882:function(e,t,r){var n=r(422);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},903:function(e,t,r){var n=r(138),o=r(468),i=r(531),a=r(165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},908:function(e){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}},940:function(e){var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},943:function(e){e.exports=ReferenceError},973:function(){}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{ALL_EVENTS:function(){return ae},CHANNELS:function(){return oe},PUBLISHERS:function(){return ie},channelServiceMixin:function(){return ce}});var o={};r.r(o),r.d(o,{BadGateway:function(){return Ie},BadRequest:function(){return ve},Conflict:function(){return Ee},FeathersError:function(){return de},Forbidden:function(){return ge},GeneralError:function(){return ke},Gone:function(){return Pe},LengthRequired:function(){return Ae},MethodNotAllowed:function(){return je},NotAcceptable:function(){return Oe},NotAuthenticated:function(){return me},NotFound:function(){return we},NotImplemented:function(){return Te},PaymentError:function(){return be},Timeout:function(){return Se},TooManyRequests:function(){return xe},Unavailable:function(){return Re},Unprocessable:function(){return _e},convert:function(){return Ce},errors:function(){return Le}});const i={};function a(){return function(){}}let s=a;function c(e){s=e,Object.keys(i).forEach(t=>{i[t]=e(t)})}function u(e){return i[e]||(i[e]=s(e)),(...t)=>i[e](...t)}var l="6.0.0-pre.7",f=r(46);function p(e,...t){for(const r of t){const t=Object.keys(r).concat(Object.getOwnPropertySymbols(r));for(const n of t){const t=Object.getOwnPropertyDescriptor(r,n);t&&!Object.prototype.hasOwnProperty.call(e,n)&&Object.defineProperty(e,n,t)}}return e}const y=Symbol.for("@feathersjs/hooks");class h{constructor(e={}){Object.assign(this,e)}toJSON(){const e=Object.keys(this);let t=Object.getPrototypeOf(this);for(;t;)e.push(...Object.keys(t)),t=Object.getPrototypeOf(t);return e.reduce((e,t)=>(e[t]=this[t],e),{})}}class d{constructor(){this._parent=null,this._params=null,this._middleware=null,this._props=null}parent(e){return this._parent=e,this}middleware(e){return this._middleware=e?.length?e:null,this}getMiddleware(){const e=this._parent?.getMiddleware();return e&&this._middleware?e.concat(this._middleware):e||this._middleware}collectMiddleware(e,t){const r=function(e){const t=m(e);return t?t.getMiddleware():null}(e),n=this.getMiddleware();return r&&n?r.concat(n):r||n||[]}props(e){return this._props||(this._props={}),p(this._props,e),this}getProps(){const e=this._parent?.getProps();return e&&this._props?p({},e,this._props):e||this._props||null}params(...e){return this._params=e,this}getParams(){const e=this._parent?.getParams();return e&&this._params?e.concat(this._params):e||this._params}defaults(e){return this._defaults=e,this}getDefaults(e,t,r){const n="function"==typeof this._defaults?this._defaults(e,t,r):null,o=this._parent?.getDefaults(e,t,r);return o&&n?Object.assign({},o,n):o||n}getContextClass(e=h){const t=class extends e{constructor(e){super(e)}},r=this.getParams(),n=this.getProps();return r&&r.forEach((e,r)=>{if(void 0!==n?.[e])throw new Error(`Hooks can not have a property and param named '${e}'. Use .defaults instead.`);Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this?.arguments[r]},set(e){this.arguments[r]=e}})}),n&&p(t.prototype,n),t}initializeContext(e,t,r){const 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(const e of Object.keys(o))void 0===n[e]&&(n[e]=o[e]);return n}}function v(e=null){return e?Array.isArray(e)?(new d).middleware(e):e:new d}function m(e){return e&&e[y]||null}function b(e,t){const r=m(e);return e[y]=t.parent(r),e}function g(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const t of e)if("function"!=typeof t)throw new TypeError("Middleware must be composed of functions!");return function(t,r){let n=-1;return function o(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;let 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)}}function w(e){return"function"==typeof e.original?w(e.original):e}function j(e,t){if("function"!=typeof e)throw new Error("Can not apply hooks to non-function");const r=v(t),n=function(...e){const{Context:t,original:o}=n,i=e[e.length-1]instanceof t,a=i?e.pop():new t,s=r.initializeContext(this,e,a),c=[(e,t)=>t().then(()=>i?e:e.result)],u=r.collectMiddleware(this,e);return u&&Array.prototype.push.apply(c,u),c.push((e,t)=>{if(!Object.prototype.hasOwnProperty.call(s,"result")){const r=o.apply(this,e.arguments);if(r[Symbol.asyncIterator])throw new Error("Function must return a Promise that resolves to an async iterable, not the iterable directly");return Promise.resolve(r).then(r=>(e.result=r,t()))}return t()}),g(c).call(this,s)};return function(e,t){const r=["name","length"];try{for(const n of r){const r=t[n];Object.defineProperty(e,n,{value:r})}}catch(e){}}(n,e),p(n,e),b(n,r),Object.assign(n,{original:w(e),Context:r.getContextClass(),createContext:(e={})=>new n.Context(e)})}const O=(e,t,r)=>{const n=t.type;return r&&(t.type=r),Promise.resolve(e.call(t.self,t)).then(e=>{r&&(t.type=n),e&&e!==t&&Object.assign(t,e)})},S=e=>t=>e.reduce((e,r)=>e.then(()=>O(r,t)),Promise.resolve(t));function E(e){return(t,r)=>O(e,t,"before").then(r)}function P(e){return(t,r)=>r().then(()=>O(e,t,"after"))}function A({before:e=[],after:t=[],error:r=[]}){const n=e.map(E),o=[...t].reverse().map(P),i=r.length?[(a=S(r),(e,t)=>t().catch(t=>(e.error===t&&void 0===e.result||(e.original={...e},e.error=t,delete e.result),O(a,e,"error").then(()=>{if(void 0===e.result&&void 0!==e.error)throw e.error}).catch(t=>{throw e.error=t,e.error}))))]:[];var a;return g([...i,...n,...o])}function _(e,t){const r=(new d).middleware(e);return t&&(t.params&&r.params(...t.params),t.defaults&&r.defaults(t.defaults),t.props&&r.props(t.props)),r}function x(...e){const[t,r]=e;return"function"==typeof t&&(r instanceof d||Array.isArray(r)||1===e.length)?j(t,r):2===e.length?function(e,t){if(Array.isArray(t))return function(e,t){return b(e,(new d).middleware(t))}(e,t);for(const r of Object.keys(t)){const n="function"==typeof e[r]?e:e.prototype,o=n&&n[r];if("function"!=typeof o)throw new Error(`Can not apply hooks. '${r}' is not a function`);const i=v(t[r]);n[r]=j(o,i.props({method:r}))}return e}(t,r):(n=t,(e,t)=>{const r=v(n);if("class"===t.kind)return b(e.prototype,r),e;if("method"===t.kind){const n=String(t.name);return j(e,r.props({method:n}))}throw new Error("Can not apply hooks.")});var n}function k(e){return e.replace(/^(\/+)|(\/+)$/g,"")}const T={each(e,t){e&&"function"==typeof e.forEach?e.forEach(t):T.isObject(e)&&Object.keys(e).forEach(r=>t(e[r],r))},some(e,t){return Object.keys(e).map(t=>[e[t],t]).some(([e,r])=>t(e,r))},every(e,t){return Object.keys(e).map(t=>[e[t],t]).every(([e,r])=>t(e,r))},keys(e){return Object.keys(e)},values(e){return T.keys(e).map(t=>e[t])},isMatch(e,t){return T.keys(t).every(r=>e[r]===t[r])},isEmpty(e){return 0===T.keys(e).length},isObject(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e},isObjectOrArray(e){return"object"==typeof e&&null!==e},extend(e,...t){return Object.assign(e,...t)},omit(e,...t){const r=T.extend({},e);return t.forEach(e=>delete r[e]),r},pick(e,...t){return t.reduce((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t),{})},merge(e,t){return T.isObject(e)&&T.isObject(t)&&Object.keys(t).forEach(r=>{T.isObject(t[r])?(e[r]||Object.assign(e,{[r]:{}}),T.merge(e[r],t[r])):Object.assign(e,{[r]:t[r]})}),e}},I=(R="@feathersjs/service","undefined"!=typeof Symbol?Symbol.for(R):R);var R;const L={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]},C=["find","get","create","update","patch","remove"],M={create:"created",update:"updated",patch:"patched",remove:"removed"},N=Object.values(M),F=Object.keys(Object.prototype).concat(Object.keys(f.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish","registerPublisher"]),D=F.concat(["service","events","id"]);function U(e,t){const{methods:r}=t;return C.filter(t=>"function"==typeof e[t]&&!r.includes(t)).concat(r)}function B(e){return e[I]}const q=(e,t={})=>{const{methods:r=C.filter(t=>"function"==typeof e[t]),events:n=e.events||[]}=t,o=t.serviceEvents||N.concat(n);return{...t,events:n,methods:r,serviceEvents:o}};function $(e,t,r){if(t[I])return t;const n=Object.create(t),o=q(t,r);if(0===Object.keys(o.methods).length&&![...C,"setup","teardown"].some(e=>"function"==typeof t[e]))throw new Error(`Invalid service object passed for path \`${e}\``);return Object.defineProperty(n,I,{value:o}),n}async function W(e,t){const{events:r}=B(e.self),n=M[e.method]||null;e.event=n,await t(),"string"!=typeof e.event||r.includes(e.event)||(Array.isArray(e.result)?e.result:[e.result]).forEach(t=>e.self.emit(e.event,t,e))}function K(e){return"function"==typeof e.on&&"function"==typeof e.emit||Object.assign(e,f.EventEmitter.prototype),e}const G=["before","after","error","around"];function H(e){const t={};if(Array.isArray(e))t.all=e;else if("object"!=typeof e)t.all=[e];else for(const r of Object.keys(e)){const n=e[r];t[r]=Array.isArray(n)?n:[n]}return t}function z(e,t){const{collected:r,collectedAll:n,around:o}=e.__hooks;return[...o.all||[],...o[t]||[],...n.before||[],...r[t]||[],...n.after||[]]}function V(e){return Object.defineProperty(e,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(e){const t=this.__hooks,r=Object.keys(e).reduce((t,r)=>{if(n=r,!G.includes(n))throw new Error(`'${r}' is not a valid hook type`);var n;return t[r]=H(e[r]),t},{});return Object.keys(r).forEach(e=>Object.keys(r[e]).forEach(n=>{var o;const i=r[e][n];if(((o=t[e])[n]||(o[n]=[])).push(...i),"all"===n){if(t.before[n]||t.error[n]){const e=A({before:t.before[n]||[],error:t.error[n]||[]});t.collectedAll.before=[e]}if(t.after[n]){const e=A({after:t.after[n]||[]});t.collectedAll.after=[e]}}else if(t.before[n]||t.after[n]||t.error[n]){const e=A({before:t.before[n]||[],after:t.after[n]||[],error:t.error[n]||[]});t.collected[n]=[e]}})),this}}function J(e,t,r={}){const n=e[t].createContext;if("function"!=typeof n)throw new Error(`Can not create context for method ${t}`);return n(r)}class Q extends d{constructor(e,t){super(),this.app=e,this.method=t,this._middleware=[]}collectMiddleware(e,t){return[...z(this.app,this.method),...super.collectMiddleware(e,t),...z(e,this.method)]}initializeContext(e,t,r){const n=super.initializeContext(e,t,r);return n.params=n.params||{},n}middleware(e){return this._middleware.push(...e),this}}function X(e,t,r){if("function"==typeof e.hooks)return e;const n=U(e,r).reduce((r,n)=>{const o=L[n]||["data","params"];return r[n]=new Q(this,n).params(...o).props({app:this,path:t,method:n,service:e,event:null,type:"around",get statusCode(){return this.http?.status},set statusCode(e){this.http=this.http||{},this.http.status=e}}),r},{}),o=V(e);return x(e,n),e.hooks=function(e){return e.before||e.after||e.error||e.around?o.call(this,e):Array.isArray(e)?x(this,e):(Object.keys(e).forEach(t=>{const r=m(this[t]);if(!(r instanceof Q))throw new Error(`Method ${t} is not a Feathers hooks enabled service method`);r.middleware(e[t])}),this)},e}class Y{constructor(e,t){this.name=e,this.depth=t,this.children={},this.placeholders=[]}get hasChildren(){return 0!==Object.keys(this.children).length||0!==this.placeholders.length}insert(e,t){if(this.depth===e.length){if(void 0!==this.data)throw new Error(`Path ${e.join("/")} already exists`);return this.data=t,this}const r=e[this.depth],n=this.depth+1;if(r.startsWith(":")){const o=r.substring(1);let i=this.placeholders.find(e=>e.name===o);return i||(i=new Y(o,n),this.placeholders.push(i)),i.insert(e,t)}const o=this.children[r]||new Y(r,n);return this.children[r]=o,o.insert(e,t)}remove(e){if(e.length===this.depth)return void delete this.data;const t=e[this.depth];if(t.startsWith(":")){const r=t.substring(1),n=this.placeholders.find(e=>e.name===r);n.remove(e),this.placeholders=this.placeholders.filter(e=>e!==n)}else if(this.children[t]){const r=this.children[t];r.remove(e),r.hasChildren||delete this.children[t]}}lookup(e,t){if(e.length===this.depth)return void 0===this.data?null:{...t,data:this.data};const r=e[this.depth],n=this.children[r];if(n){const r=n.lookup(e,t);if(null!==r)return r}for(const n of this.placeholders){const o=n.lookup(e,t);if(null!==o)return o.params[n.name]=r,o}return null}}class Z{constructor(e=new Y("",0)){this.root=e,this.caseSensitive=!0}getPath(e){const t=k(e).split("/");return this.caseSensitive?t:t.map(e=>e.startsWith(":")?e:e.toLowerCase())}insert(e,t){return this.root.insert(this.getPath(e),t)}remove(e){return this.root.remove(this.getPath(e))}lookup(e){return"string"!=typeof e?null:this.root.lookup(this.getPath(e),{params:{}})}}class ee extends f.EventEmitter{constructor(e=[],t=null){super(),this.connections=e,this.data=t}get length(){return this.connections.length}leave(...e){return e.forEach(e=>{if("function"==typeof e){const t=e;this.leave(...this.connections.filter(t))}else{const t=this.connections.indexOf(e);-1!==t&&this.connections.splice(t,1)}}),0===this.length&&this.emit("empty"),this}join(...e){return e.forEach(e=>{e&&-1===this.connections.indexOf(e)&&this.connections.push(e)}),this}filter(e){return new ee(this.connections.filter(e),this.data)}send(e){return new ee(this.connections,e)}}function te(e){const t=new WeakMap,r=[];return e.forEach(e=>{e.connections.forEach(n=>{t.has(n)||(r.push(n),t.set(n,e.data))})}),{connections:r,mappings:t}}class re extends ee{constructor(e,t=null){const{mappings:r,connections:n}=te(e);super(n,t),this.children=e,this.mappings=r}refresh(){const e=te(this.children);return Object.assign(this,e)}leave(...e){return this.callChildren("leave",e)}join(...e){return this.callChildren("join",e)}dataFor(e){return this.mappings.get(e)}callChildren(e,t){return this.children.forEach(r=>r[e](...t)),this.refresh(),this}}const ne=u("@feathersjs/transport-commons/channels"),oe=Symbol.for("@feathersjs/transport-commons/channels"),ie=Symbol.for("@feathersjs/transport-commons/publishers"),ae=Symbol.for("@feathersjs/transport-commons/all-events");function se(e){return e.reduce((e,t)=>e.concat(Array.isArray(t)?se(t):t),[])}function ce(e){return(t,r,n)=>{const{serviceEvents:o}=n;"function"!=typeof t.publish&&(t[ie]={},t.publish=function(e,r){return t.registerPublisher(e,r)},t.registerPublisher=function(e,r){if(ne("Registering service publisher",e),r||"function"!=typeof e||(r=e,e=ae),e!==ae&&!o.includes(e))throw new Error(`'${e.toString()}' is not a valid service event`);return t[ie][e]=r,t},o.forEach(n=>{t.on(n,(o,i)=>{i||(i={path:r,service:t,app:e,result:o}),ne("Publishing event",n,i.path);const a=e=>ne(`Error in '${i.path} ${n}' publisher`,e),s=t[ie],c=e[ie],u=s[n]||s[ae]||c[n]||c[ae]||(()=>{});try{Promise.resolve(u(o,i)).then(t=>{if(!t)return;const r=Array.isArray(t)?se(t).filter(Boolean):[t],a=new re(r);a&&a.length>0?e.emit("publish",n,a,i,o):ne("No connections to publish to")}).catch(a)}catch(e){a(e)}})}))}}var ue,le;const fe=u("@feathersjs/feathers"),pe=u("@feathersjs/transport-commons/channels");class ye extends f.EventEmitter{constructor(){super(),this.services={},this.settings={},this.mixins=[X,K],this.version=l,this.routes=new Z,this._isSetup=!1,this[ue]={},this[le]={},this.registerHooks=V(this),this.registerHooks({around:[W]})}get channels(){return Object.keys(this[oe])}channel(...e){if(pe("Returning channels",e),0===e.length)throw new Error("app.channel needs at least one channel name");if(1===e.length){const[t]=e;if(Array.isArray(t))return this.channel(...t);if(!this[oe][t]){const e=new ee;e.once("empty",()=>{e.removeAllListeners(),delete this[oe][t]}),this[oe][t]=e}return this[oe][t]}const t=e.map(e=>this.channel(e));return new re(t)}publish(e,t){return this.registerPublisher(e,t)}registerPublisher(e,t){pe("Registering publisher",e),t||"function"!=typeof e||(t=e,e=ae);const{serviceEvents:r=N}=B(this)||{};if(e!==ae&&!r.includes(e))throw new Error(`'${e.toString()}' is not a valid service event`);return this[ie][e]=t,this}get(e){return this.settings[e]}set(e,t){return this.settings[e]=t,this}configure(e){return e.call(this,this),this}defaultService(e){throw new Error(`Can not find service '${e}'`)}service(e){const t=k(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}lookup(e){const t=this.routes.lookup(e);if(null===t)return null;const{params:r,data:{service:n,params:o}}=t;return{service:n,params:o?{...o,...r}:r}}_setup(){return this._isSetup=!0,Object.keys(this.services).reduce((e,t)=>e.then(()=>{const e=this.service(t);if("function"==typeof e.setup)return fe(`Setting up service for \`${t}\``),e.setup(this,t)}),Promise.resolve()).then(()=>this)}get setup(){return this._setup}set setup(e){this._setup=e[y]?e:x(e,_().params("server").props({app:this}))}_teardown(){return this._isSetup=!1,Object.keys(this.services).reduce((e,t)=>e.then(()=>{const e=this.service(t);if("function"==typeof e.teardown)return fe(`Tearing down service for \`${t}\``),e.teardown(this,t)}),Promise.resolve()).then(()=>this)}get teardown(){return this._teardown}set teardown(e){this._teardown=e[y]?e:x(e,_().params("server").props({app:this}))}use(e,t,r){if("string"!=typeof e)throw new Error(`'${e}' is not a valid service path.`);const n=k(e)||"/",o=t;if("function"==typeof o.service&&o.services)return Object.keys(o.services).forEach(e=>this.use(`${n}/${e}`,o.service(e))),this;const i=$(n,t,r),a=B(i),s={service:i,params:a.routeParams||{}};for(const e of F)if(a.methods.includes(e))throw new Error(`'${e}' on service '${n}' is not allowed as a custom method name`);return fe(`Registering new service at \`${n}\``),this.mixins.forEach(e=>e.call(this,i,n,a)),ce(this)(i,n,a),this.routes.insert(e,s),this.routes.insert(`${e}/:__id`,s),this.services[n]=i,this._isSetup&&"function"==typeof i.setup&&(fe(`Setting up service for \`${n}\``),i.setup(this,n)),this}async unuse(e){const t=k(e)||"/",r=this.services[t];return r&&"function"==typeof r.teardown&&await r.teardown(this,t),delete this.services[t],this.routes.remove(t),this.routes.remove(`${t}/:__id`),r}hooks(e){const t=e;return t.before||t.after||t.error||t.around?this.registerHooks(t):t.setup||t.teardown?x(this,t):this.registerHooks({around:t}),this}}function he(){return new ye}ue=oe,le=ie,he.setDebug=c;class de extends Error{constructor(e,t,r,n,o){let i="string"==typeof e?e:"Error";const a={name:t,code:r,className:n,type:"FeathersError"};if(Array.isArray(o))a.data=o;else if("object"==typeof e||void 0!==o){const{message:t,errors:r,...n}=null!==e&&"object"==typeof e?e:o;i=t||i,a.errors=r,a.data=n}super(i),Object.assign(this,a)}toJSON(){const 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}}class ve extends de{constructor(e,t){super(e,"BadRequest",400,"bad-request",t)}}class me extends de{constructor(e,t){super(e,"NotAuthenticated",401,"not-authenticated",t)}}class be extends de{constructor(e,t){super(e,"PaymentError",402,"payment-error",t)}}class ge extends de{constructor(e,t){super(e,"Forbidden",403,"forbidden",t)}}class we extends de{constructor(e,t){super(e,"NotFound",404,"not-found",t)}}class je extends de{constructor(e,t){super(e,"MethodNotAllowed",405,"method-not-allowed",t)}}class Oe extends de{constructor(e,t){super(e,"NotAcceptable",406,"not-acceptable",t)}}class Se extends de{constructor(e,t){super(e,"Timeout",408,"timeout",t)}}class Ee extends de{constructor(e,t){super(e,"Conflict",409,"conflict",t)}}class Pe extends de{constructor(e,t){super(e,"Gone",410,"gone",t)}}class Ae extends de{constructor(e,t){super(e,"LengthRequired",411,"length-required",t)}}class _e extends de{constructor(e,t){super(e,"Unprocessable",422,"unprocessable",t)}}class xe extends de{constructor(e,t){super(e,"TooManyRequests",429,"too-many-requests",t)}}class ke extends de{constructor(e,t){super(e,"GeneralError",500,"general-error",t)}}class Te extends de{constructor(e,t){super(e,"NotImplemented",501,"not-implemented",t)}}class Ie extends de{constructor(e,t){super(e,"BadGateway",502,"bad-gateway",t)}}class Re extends de{constructor(e,t){super(e,"Unavailable",503,"unavailable",t)}}const Le={FeathersError:de,BadRequest:ve,NotAuthenticated:me,PaymentError:be,Forbidden:ge,NotFound:we,MethodNotAllowed:je,NotAcceptable:Oe,Timeout:Se,Conflict:Ee,LengthRequired:Ae,Unprocessable:_e,TooManyRequests:xe,GeneralError:ke,NotImplemented:Te,BadGateway:Ie,Unavailable:Re,400:ve,401:me,402:be,403:ge,404:we,405:je,406:Oe,408:Se,409:Ee,410:Pe,411:Ae,422:_e,429:xe,500:ke,501:Te,502:Ie,503:Re};function Ce(e,t){if(!e)return e;const r=Le[t||e.name],n=r?new r(e.message,e.data):new Error(e.message||e);return"object"==typeof e&&Object.assign(n,e),n}function Me(e){return Me="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},Me(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(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,Ue(n.key),n)}}function De(e,t,r){return t&&Fe(e.prototype,t),r&&Fe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ue(e){var t=function(e){if("object"!=Me(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Me(t)?t:t+""}var Be=function(){return De(function e(){Ne(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)}}])}(),qe=function(){return De(function e(t){Ne(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))}}])}();function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function We(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,s=[],c=!0,u=!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)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ke(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)?Ke(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 Ke(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 Ge(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,ze(n.key),n)}}function He(e,t,r){return t&&Ge(e.prototype,t),r&&Ge(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(e){var t=function(e){if("object"!=$e(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$e(t)?t:t+""}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Je=function(){return!!e})()}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qe(e)}function Xe(e,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xe(e,t)}var Ye=function(){function e(t,r){return Ve(this,e),n=this,i=[t,"OauthError",401,"oauth-error",r],o=Qe(o=e),function(e,t){if(t&&("object"==$e(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)}(n,Je()?Reflect.construct(o,i||[],Qe(n).constructor):o.apply(n,i));var n,o,i}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&&Xe(e,t)}(e,de),He(e)}(),Ze=function(e,t){var r=new RegExp("(?:&?)".concat(t,"=([^&]*)")),n=e.hash?e.hash.match(r):null;return null!==n?[We(n,2)[1],r]:[null,r]};function et(e){return et="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},et(e)}var tt={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:function(){return He(function e(t,r){Ve(this,e);var n=t.io,o=new qe(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=We(Ze(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 o=We(Ze(e,this.options.locationErrorKey),2),i=o[0],a=o[1];return null!==i?(e.hash=e.hash.replace(a,""),Promise.reject(new Ye(decodeURIComponent(i)))):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 me("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")})}}])}(),storage:function(){try{return new qe(window.localStorage)}catch(e){}return new Be}()},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},tt,e),r=t.Authentication;return function(e){var n=new r(e,t);e.authentication=n,e.authenticate=n.authenticate.bind(n),e.reAuthenticate=n.reAuthenticate.bind(n),e.logout=n.logout.bind(n),e.hooks([function(e,t){var r=e.app,n=e.params,o=e.path,i=e.method;return k(e.app.authentication.options.path)===o&&"create"===i?t():Promise.resolve(r.get("authentication")).then(function(t){t&&(e.params=Object.assign({},t,n))}).then(t)},function(e,t){var r,n,o,i=e.app,a=e.params.accessToken,s=i.authentication;if(i.rest&&a){var c=s.options,u=c.scheme,l=c.header,f="".concat(u," ").concat(a);e.params.headers=Object.assign({},(r={},o=f,(n=function(e){var t=function(e){if("object"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}(n=l))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r),e.params.headers)}return t()}])}},nt=rt;"undefined"!=typeof module&&(module.exports=Object.assign(rt,module.exports));var ot=r(810);function it(e){return it="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},it(e)}function at(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,st(n.key),n)}}function st(e){var t=function(e){if("object"!=it(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}function ct(e){if("ECONNREFUSED"===e.code)throw new Re(e.message,T.pick(e,"address","port","config"));throw Ce(e)}var ut=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=k(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=ot.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(ct)},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(ct)}},{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(ct)}},{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(ct)}},{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(ct)}},{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(ct)}},{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(ct)}},{key:"remove",value:function(e,t){return this._remove(e,t)}}],t&&at(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function lt(e){return lt="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},lt(e)}function ft(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,pt(n.key),n)}}function pt(e){var t=function(e){if("object"!=lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lt(t)?t:t+""}function yt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yt=function(){return!!e})()}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}function dt(e,t){return dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dt(e,t)}var vt=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){return t=ht(t),function(e,t){if(t&&("object"==lt(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,yt()?Reflect.construct(t,r||[],ht(e).constructor):t.apply(e,r))}(this,e,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&&dt(e,t)}(e,ut),t=e,(r=[{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})}}])&&ft(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function mt(e){return mt="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},mt(e)}function bt(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,gt(n.key),n)}}function gt(e){var t=function(e){if("object"!=mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mt(t)?t:t+""}function wt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wt=function(){return!!e})()}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}function Ot(e,t){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ot(e,t)}var St=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){return t=jt(t),function(e,t){if(t&&("object"==mt(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,wt()?Reflect.construct(t,r||[],jt(e).constructor):t.apply(e,r))}(this,e,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&&Ot(e,t)}(e,ut),t=e,(r=[{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(Le[e.status]||Error)("JSON parsing error")}).then(function(t){throw t.response=e,t})}}])&&bt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function Et(e){return Et="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},Et(e)}function Pt(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,At(n.key),n)}}function At(e){var t=function(e){if("object"!=Et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Et(t)?t:t+""}function _t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_t=function(){return!!e})()}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Tt(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 It={superagent:function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,r){return t=xt(t),function(e,t){if(t&&("object"==Et(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,_t()?Reflect.construct(t,r||[],xt(e).constructor):t.apply(e,r))}(this,e,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&&kt(e,t)}(e,ut),t=e,(r=[{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)})})}}])&&Pt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(),fetch:St,axios:vt};function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={Base:ut};return Object.keys(It).forEach(function(r){t[r]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It[r];if(!t)throw new Error("".concat(r," has to be provided to feathers-rest"));"function"==typeof n&&(o=n,n={});var i=function(r){return new o({base:e,name:r,connection:t,options:n})},a=function(e){if(void 0!==e.rest)throw new Error("Only one default client provider can be configured");e.rest=t,e.defaultService=i,e.mixins.unshift(function(e,t,r){if(r&&r.methods&&e instanceof ut){var n=r.methods.filter(function(e){return!C.includes(e)});e.methods.apply(e,function(e){if(Array.isArray(e))return Tt(e)}(o=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Tt(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)?Tt(e,t):void 0}}(o)||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 o})};return a.Service=o,a.service=i,a}}),t}function Lt(e){return Lt="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},Lt(e)}function Ct(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,Mt(n.key),n)}}function Mt(e){var t=function(e){if("object"!=Lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lt(t)?t:t+""}"undefined"!=typeof module&&(module.exports=Object.assign(Rt,module.exports));var Nt=u("@feathersjs/transport-commons/client"),Ft=["addListener","addEventListener","emit","listenerCount","listeners","on","once","prependListener","prependOnceListener","removeAllListeners","removeEventListener","removeListener"],Dt=["eventNames","getMaxListeners","setMaxListeners"],Ut=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,Dt.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)}}),Ft.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);Nt("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 s=(r=this.connection)[e].apply(r,[n].concat(i));return s===this.connection?this:s}})},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,a,s,c=n.pop(),u=t.path;c&&Object.keys(c).forEach(function(e){u=u.replace(":".concat(e),c[e])}),n.unshift(e,u),void 0!==((null===(a=t.connection.flags)||void 0===a?void 0:a.timeout)||(null===(s=t.connection._opts)||void 0===s?void 0:s.ackTimeout))?n.push(function(e,t,n){return e||t?o(Ce(e||t)):r(n)}):n.push(function(e,t){return e?o(Ce(e)):r(t)}),Nt("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&&Ct(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Bt(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 qt(e,t){if(!e)throw new Error("Socket.io connection needs to be provided");var r=function(r){var n=Object.values(M),o=Object.assign({},t,{events:n,name:r,connection:e,method:"emit"});return new Ut(o)},n=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 Ut){var n=r.methods.filter(function(e){return!C.includes(e)});e.methods.apply(e,function(e){if(Array.isArray(e))return Bt(e)}(o=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Bt(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)?Bt(e,t):void 0}}(o)||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 o})};return n.Service=Ut,n.service=r,n}"undefined"!=typeof module&&(module.exports=Object.assign(qt,module.exports));var $t=he;export{ee as Channel,re as CombinedChannel,ye as Feathers,Q as FeathersHookManager,Y as RouteNode,Z as Router,I as SERVICE,nt as authentication,n as channelUtils,z as collectHooks,H as convertHookData,J as createContext,u as createDebug,$t as default,M as defaultEventMap,L as defaultServiceArguments,N as defaultServiceEvents,C as defaultServiceMethods,V as enableHooks,o as errors,he as feathers,U as getHookMethods,B as getServiceOptions,X as hookMixin,a as noopDebug,q as normalizeServiceOptions,F as protectedMethods,D as protectedProperties,Rt as rest,c as setDebug,qt as socketio,l as version,$ as wrapService};