1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1809],{1991:function(e,r){var t,n,o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),(t=n=r.Device||(r.Device={})).Browser="browser",t.Server="server",t.Native="native";var u=n.Browser,i=n.Server,a=n.Native,c=!!("u">typeof window&&window.document&&window.document.createElement),s="u">typeof navigator&&"ReactNative"==navigator.product?a:c?u:i,l={isBrowser:s===u,isServer:s===i,isNative:s===a,device:s,canUseWorkers:"u">typeof Worker,canUseEventListeners:s===u&&!!window.addEventListener,canUseViewport:s===u&&!!window.screen},f=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.reduce(function(e,r){return o(o({},e),r)},{})},p=function(){return f((Object.keys(l).map(function(e){return l[e]}),l))},d=p();r.weAreServer=function(){l.isServer=!0,d=p()},r.useSSR=function(){return d},r.default=r.useSSR},65373:(e,r,t)=>{var n=t(14232),o=function(){var e=n.useRef(!1);return n.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e};r.Ay=function(e,r){void 0===r&&(r=!0);var t=o(),u=n.useState(e),i=u[0],a=u[1],c=n.useRef(i),s=n.useCallback(function(e){(t.current||!r)&&(c.current="function"==typeof e?e(c.current):e,a(c.current))},[]);return[c,s]}},81809:(e,r,t)=>{t.d(r,{Ay:()=>es});var n,o,u,i,a,c,s=t(14232),l=t(1991),f=t.n(l),p=t(65373);(n=i||(i={})).DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.PATCH="PATCH",n.POST="POST",n.PUT="PUT",n.CONNECT="CONNECT",n.TRACE="TRACE",(o=a||(a={})).CACHE_FIRST="cache-first",o.CACHE_AND_NETWORK="cache-and-network",o.NETWORK_ONLY="network-only",o.CACHE_ONLY="cache-only",o.NO_CACHE="no-cache",o.EXACT_CACHE_AND_NETWORK="exact-cache-and-network";var d=function(e,r,t,n){return new(t||(t=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(e){u(e)}}function a(e){try{c(n.throw(e))}catch(e){u(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,a)}c((n=n.apply(e,r||[])).next())})},h=function(e,r){var t,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){var c=[u,a];if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}};function v(e,r,t,n,o,u,i,a){if(void 0===t&&(t=""),void 0===n&&(n=""),void 0===o&&(o=""),void 0===u&&(u=""),void 0===i&&(i=""),void 0===a&&(a=""),!e){var c=void 0;if(void 0===r)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[t,n,o,u,i,a],l=0;(c=Error(r.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw c}}var y=function(e){return"string"==typeof e},b=function(e){return"[object Object]"===Object.prototype.toString.call(e)},w=function(e){return b(e)||Array.isArray(e)},g=function(e){return"function"==typeof e},m=function(e){return null==e};(u=c||(c={})).Browser="browser",u.Server="server",u.Native="native";var O=c.Browser,E=c.Server,T=c.Native,A=!!("u">typeof window&&window.document&&window.document.createElement),S=("u">typeof navigator&&"ReactNative"===navigator.product?T:A?O:E)===E,N=function(e,r,t){return void 0===t&&(t=0),d(void 0,void 0,void 0,function(){var n;return h(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.clone()[r[t]]()];case 1:return[2,o.sent()];case 2:if(n=o.sent(),r.length-1===t)throw n;return[2,N(e.clone(),r,++t)];case 3:return[2]}})})},P=["headers","ok","redirected","trailer","status","statusText","type","url","body","bodyUsed","data"],C=["clone","arrayBuffer","blob","formData","json","text"],x=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var n=Array(e),o=0,r=0;r<t;r++)for(var u=arguments[r],i=0,a=u.length;i<a;i++,o++)n[o]=u[i];return n}(P,C),k=function(e,r){return Object.defineProperties({},x.reduce(function(t,n){return P.includes(n)?t[n]={get:function(){var t=e instanceof Response?e:e&&e.current;if(t)return"data"===n?r.current:("clone"in t?t.clone():{})[n]},enumerable:!0}:C.includes(n)&&(t[n]={value:function(){var r=e instanceof Response?e:e&&e.current;if(r)return("clone"in r?r.clone():{})[n]()},enumerable:!0}),t},{}))};k();var j=function(e){var r={};return e.forEach(function(e,t){r[t]=e}),r},R=function(e,r){var t;return(0,s.useCallback)(e,(t=(0,s.useRef)(),JSON.stringify(r)!==JSON.stringify(t.current)&&(t.current=r),t.current))},D=function(e){return Number.isInteger(e)&&e>0},I=function(e,r){var t=Error(r);return t.name=e+"",t},L=function(e,r){return e?r?r.endsWith("/")&&e.startsWith("/")?e.substr(1):r.endsWith("/")||e.startsWith("/")||e.startsWith("?")||e.startsWith("&")||r.includes("?")?e:"/"+e:e.startsWith("?")||e.startsWith("&")||e.startsWith("/")?e:"/"+e:""},_=(0,s.createContext)({url:"",options:{},graphql:!1}),H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},q={host:"",path:void 0,customOptions:{cacheLife:0,cachePolicy:a.CACHE_FIRST,interceptors:{},onAbort:function(){},onError:function(){},onNewData:function(e,r){return r},onTimeout:function(){},perPage:0,persist:!1,responseType:["json","text","blob","arrayBuffer"],retries:0,retryDelay:1e3,retryOn:[],suspense:!1,timeout:0,data:void 0,loading:!1},requestInit:{headers:{Accept:"application/json, text/plain, */*"}},dependencies:void 0};let W=Object.entries(q).reduce(function(e,r){var t,n=r[0],o=r[1];return b(o)?H(H({},e),o):H(H({},e),((t={})[n]=o,t))},{});var M=function(){return(M=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function G(e,r,t){v(!(b(e)&&b(r)),"You cannot have a 2nd parameter of useFetch as object when your first argument is an object.");var n=(0,s.useContext)(_),o=(0,s.useMemo)(function(){return y(e)&&e.includes("://")?e:n.url?n.url:W.host},[n.url,e]),u=(0,s.useMemo)(function(){if(y(e)&&!e.includes("://"))return e},[e]),i=(0,s.useMemo)(function(){return g(e)?e:g(r)?r:void 0},[]),a=(0,s.useMemo)(function(){var t={headers:{}};b(e)?t=e:b(r)&&(t=r);var o=n.options,u=M(M(M(M({},W),o),t),{headers:M(M(M({},W.headers),o.headers),t.headers),interceptors:M(M(M({},W.interceptors),o.interceptors),t.interceptors)});return i?i(u):u},[e,i,n.options]),c=(0,s.useMemo)(function(){return a?["body","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"].reduce(function(e,r){return r in a&&(e[r]=a[r]),e},{}):{}},[a]),l=(0,s.useMemo)(function(){return Array.isArray(r)?r:Array.isArray(t)?t:W.dependencies},[r,t]),f=a.cacheLife,p=a.retries,d=a.retryDelay,h=a.retryOn;v(Number.isInteger(f)&&f>=0,"`cacheLife` must be a number >= 0"),v(Number.isInteger(p)&&p>=0,"`retries` must be a number >= 0"),v(g(d)||Number.isInteger(d)&&d>=0,"`retryDelay` must be a positive number or a function returning a positive number."),v(g(h)||Array.isArray(h)&&h.every(D),"`retryOn` must be an array of positive numbers or a function returning a boolean.");var w=a.loading||Array.isArray(l),m=(0,s.useMemo)(function(){var e={};return"request"in a.interceptors&&(e.request=a.interceptors.request),"response"in a.interceptors&&(e.response=a.interceptors.response),e},[a]);return{host:o,path:u,customOptions:(0,s.useMemo)(function(){var e=Object.keys(q.customOptions).reduce(function(e,r){return e[r]=a[r],e},{});return M(M({},e),{interceptors:m,loading:w})},[m,w]),requestInit:c,dependencies:l}}var U=function(){return(U=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},J=function(e,r,t,n){return new(t||(t=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(e){u(e)}}function a(e){try{c(n.throw(e))}catch(e){u(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,a)}c((n=n.apply(e,r||[])).next())})},Y=function(e,r){var t,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){var c=[u,a];if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},B=i.GET,F=function(e,r,t,n){return new(t||(t=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(e){u(e)}}function a(e){try{c(n.throw(e))}catch(e){u(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,a)}c((n=n.apply(e,r||[])).next())})},K=function(e,r){var t,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){var c=[u,a];if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},V="useHTTPcache",X=function(){try{return JSON.parse(localStorage.getItem(V)||"{}")}catch(e){return localStorage.removeItem(V),{}}};
1let z=function(e){var r=e.cacheLife,t=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return F(void 0,void 0,void 0,function(){var r;return K(this,function(t){return r=X(),e.forEach(function(e){return delete r[e]}),localStorage.setItem(V,JSON.stringify(r)),[2]})})},n=function(e){var r=X()[e]||{},n=r.expiration,o=r.response,u=n>0&&n<Date.now();return u&&t(e),u||!o};return Object.defineProperties(X(),{get:{value:function(e){return F(void 0,void 0,void 0,function(){var r,t,o;return K(this,function(u){return n(e)?[2]:(t=(r=X()[e].response).body,o=r.headers,[2,new Response(t,{status:r.status,statusText:r.statusText,headers:new Headers(o||{})})])})})},writable:!1},set:{value:function(e,t){return F(void 0,void 0,void 0,function(){var n,o,u,i;return K(this,function(a){switch(a.label){case 0:return o=n=X(),u=e,i={},[4,d(void 0,void 0,void 0,function(){var e;return h(this,function(r){switch(r.label){case 0:return[4,t.text()];case 1:return e=r.sent(),[2,{body:e,status:t.status,statusText:t.statusText,headers:j(t.headers)}]}})})];case 1:return o[u]=(i.response=a.sent(),i.expiration=Date.now()+r,i),localStorage.setItem(V,JSON.stringify(n)),[2]}})})},writable:!1},has:{value:function(e){return F(void 0,void 0,void 0,function(){return K(this,function(r){return[2,!n(e)]})})},writable:!1},delete:{value:t,writable:!1},clear:{value:function(){return F(void 0,void 0,void 0,function(){return K(this,function(e){return localStorage.setItem(V,JSON.stringify({})),[2]})})},writable:!1}})};var Q=function(e,r,t,n){return new(t||(t=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(e){u(e)}}function a(e){try{c(n.throw(e))}catch(e){u(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,a)}c((n=n.apply(e,r||[])).next())})},Z=function(e,r){var t,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){var c=[u,a];if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},$={};let ee=function(e){var r=e.cacheLife,t=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Q(void 0,void 0,void 0,function(){var r,t,n;return Z(this,function(o){for(r=0,t=e;r<t.length;r++)n=t[r],delete $[n],delete $[n+":ts"];return[2]})})},n=function(e){var r=$[e+":ts"],n=r>0&&r<Date.now();return n&&t(e),n||!$[e]};return Object.defineProperties($,{get:{value:function(e){return Q(void 0,void 0,void 0,function(){return Z(this,function(r){return n(e)?[2]:[2,$[e]]})})},writable:!1,configurable:!0},set:{value:function(e,t){return Q(void 0,void 0,void 0,function(){return Z(this,function(n){return $[e]=t,$[e+":ts"]=r>0?Date.now()+r:0,[2]})})},writable:!1,configurable:!0},has:{value:function(e){return Q(void 0,void 0,void 0,function(){return Z(this,function(r){return[2,!n(e)]})})},writable:!1,configurable:!0},delete:{value:t,writable:!1,configurable:!0},clear:{value:function(){return Q(void 0,void 0,void 0,function(){return Z(this,function(e){return $={},[2]})})},writable:!1,configurable:!0}})};var er=a.NETWORK_ONLY,et=a.NO_CACHE;let en=function(e){var r=e.persist,t=e.cacheLife,n=e.cachePolicy,o=f()(),u=o.isNative;return(v(!(o.isServer&&r),"There is no persistent storage on the Server currently! \uD83D\uDE45ââï¸"),v(!(u&&r),"React Native support for persistent cache is not yet implemented. \uD83D\uDE45ââï¸"),v(!(r&&[et,er].includes(n)),"You cannot use option 'persist' with cachePolicy: "+n+" \uD83D\uDE45ââï¸"),r)?z({cacheLife:t||864e5}):ee({cacheLife:t})};var eo=function(){return(eo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},eu=function(e,r,t,n){return new(t||(t=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(e){u(e)}}function a(e){try{c(n.throw(e))}catch(e){u(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof t?r:new t(function(e){e(r)})).then(i,a)}c((n=n.apply(e,r||[])).next())})},ei=function(e,r){var t,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){var c=[u,a];if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},ea=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>r.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t},ec=a.CACHE_FIRST;let es=function(){for(var e=this,r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=G.apply(void 0,r),o=n.host,u=n.path,a=n.customOptions,c=n.requestInit,l=n.dependencies,b=a.cacheLife,O=a.cachePolicy,E=a.interceptors,T=a.onAbort,A=a.onError,P=a.onNewData,C=a.onTimeout,x=a.perPage,j=a.persist,D=a.responseType,_=a.retries,H=a.retryDelay,q=a.retryOn,W=a.suspense,M=a.timeout,F=ea(a,["cacheLife","cachePolicy","interceptors","onAbort","onError","onNewData","onTimeout","perPage","persist","responseType","retries","retryDelay","retryOn","suspense","timeout"]),K=en({persist:j,
1cacheLife:b,cachePolicy:O}),V=f()().isServer,X=(0,s.useRef)(),z=(0,s.useRef)({}),Q=(0,s.useRef)(F.data),Z=(0,s.useRef)(!1),$=(0,s.useRef)(0),ee=(0,s.useRef)(),er=(0,s.useRef)(!0),et=(0,s.useRef)("pending"),es=(0,s.useRef)(),el=(0,s.useRef)(!1),ef=(0,p.Ay)(F.loading),ep=ef[0],ed=ef[1],eh=(0,s.useReducer)(function(){return{}},[])[1],ev=R(function(r){var t=function(t,a){return eu(e,void 0,void 0,function(){var e,s,l,f,p,b,k,j,R,H,G,et,en,eo,eu,ea;return ei(this,function(ei){switch(ei.label){case 0:if(V)return[2];return X.current=new AbortController,X.current.signal.onabort=T,[4,function(e,r,t,n,o,u,a,c,s){return J(this,void 0,void 0,function(){var l,f,p,d,h,b,g,m,O=this;return Y(this,function(E){switch(E.label){case 0:return v(!(w(a)&&w(c)),"If first argument of "+r.toLowerCase()+"() is an object, you cannot have a 2nd argument. \uD83D\uDE1C"),v(!(r===B&&w(a)),"You can only have query params as 1st argument of request.get()"),v(r!==B||void 0===c,"You can only have query params as 1st argument of request.get()"),l=!S&&a instanceof URLSearchParams?"?"+a:y(a)?a:"",f=""+o+L(u,o)+L(l),p=a instanceof FormData?a:w(a)?JSON.stringify(a):!S&&(c instanceof FormData||c instanceof URLSearchParams)?c:w(c)||y(c)?JSON.stringify(c):w(e.body)||y(c)?JSON.stringify(e.body):null,d=function(){var t=(e.headers||{})["Content-Type"],n=!!t||[i.POST,i.PUT,i.PATCH].includes(r)&&!(p instanceof FormData),o=U({},e.headers);if(n)o["Content-Type"]=t||"application/json";else if(0===Object.keys(o).length)return null;return o}(),[4,J(O,void 0,void 0,function(){var n;return Y(this,function(i){switch(i.label){case 0:if(n=U(U({},e),{method:r,signal:t.signal}),null!==d?n.headers=d:delete n.headers,null!==p&&(n.body=p),!s)return[3,2];return[4,s({options:n,url:o,path:u,route:l})];case 1:return[2,i.sent()];case 2:return[2,n]}})})];case 1:return h=E.sent(),b=Object.entries({url:f,method:r,body:h.body||""}).map(function(e){return e[0]+":"+e[1]}).join("||"),g={url:f,options:h},m={},[4,n.has(b)];case 2:return m.isCached=E.sent(),m.id=b,[4,n.get(b)];case 3:return[2,(g.response=(m.cached=E.sent(),m),g)]}})})}(c,r,e=X.current,K,o,u,t,a,E.request)];case 1:if(l=(s=ei.sent()).url,f=s.options,p=s.response,ee.current=void 0,x>0&&!er.current&&!ee.current)return[2,Q.current];W||ed(!0),b=M&&setTimeout(function(){Z.current=!0,e.abort(),C&&C()},M),ei.label=2;case 2:if(ei.trys.push([2,17,23,24]),!(p.isCached&&O===ec))return[3,3];return j=p.cached,[3,5];case 3:return[4,fetch(l,f)];case 4:j=ei.sent().clone(),ei.label=5;case 5:var es,el;return z.current=j.clone(),[4,(es=j,el=F.data,d(void 0,void 0,void 0,function(){var e,r;return h(this,function(t){switch(t.label){case 0:if(void 0===es)throw Error("Response cannot be undefined... \uD83D\uDE35");if(void 0===D)throw Error("responseType cannot be undefined... \uD83D\uDE35");if(null==(e=Array.isArray(D)?D:[D])[0])throw Error("could not parse data from response \uD83D\uDE35");
1return[4,N(es,e)];case 1:return r=t.sent(),[2,!m(el)&&m(r)?el:r]}})}))];case 6:if(k=ei.sent(),z.current.data=P(Q.current,k),R=z,!E.response)return[3,8];return[4,E.response({response:z.current,request:c})];case 7:return H=ei.sent(),[3,9];case 8:H=z.current,ei.label=9;case 9:if(R.current=H,v("data"in z.current,"You must have `data` field on the Response returned from your `interceptors.response`"),Q.current=z.current.data,G={attempt:$.current,response:j},et=!g(q)&&Array.isArray(q)&&q.length<1&&(null==j?void 0:j.ok)===!1||Array.isArray(q)&&q.includes(j.status))return[3,12];if(!(en=g(q)))return[3,11];return[4,q(G)];case 10:en=ei.sent(),ei.label=11;case 11:et=en,ei.label=12;case 12:if(!(et&&_>0&&_>$.current))return[3,14];return[4,n(G,t,a)];case 13:return[2,ei.sent()];case 14:if(!(O===ec&&!p.isCached))return[3,16];return[4,K.set(p.id,j.clone())];case 15:ei.sent(),ei.label=16;case 16:return Array.isArray(Q.current)&&Q.current.length%x&&(er.current=!1),[3,24];case 17:if(eo=ei.sent(),$.current>=_&&Z.current&&(ee.current=I("AbortError","Timeout Error")),G={attempt:$.current,error:eo},eu=!g(q)&&Array.isArray(q)&&q.length<1)return[3,20];if(!(ea=g(q)))return[3,19];return[4,q(G)];case 18:ea=ei.sent(),ei.label=19;case 19:eu=ea,ei.label=20;case 20:if(!(eu&&_>0&&_>$.current))return[3,22];return[4,n(G,t,a)];case 21:return[2,ei.sent()];case 22:return"AbortError"!==eo.name&&(ee.current=eo),[3,24];case 23:return Z.current=!1,b&&clearTimeout(b),X.current=void 0,[7];case 24:return!j||j.ok||ee.current||(ee.current=I(j.status,j.statusText)),W||ed(!1),$.current===_&&($.current=0),ee.current&&A({error:ee.current}),[2,Q.current]}})})},n=function(r,n,o){return eu(e,void 0,void 0,function(){var e;return ei(this,function(u){switch(u.label){case 0:if(Number.isInteger(e=g(H)?H(r):H)&&e>=0||console.error("retryDelay must be a number >= 0! If you're using it as a function, it must also return a number >= 0."),$.current++,!e)return[3,2];return[4,new Promise(function(r){return setTimeout(r,e)})];case 1:u.sent(),u.label=2;case 2:return[4,t(n,o)];case 3:return[2,u.sent()]}})})};return W?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return eu(e,void 0,void 0,function(){return ei(this,function(e){switch(e.label){case 0:return es.current=t.apply(void 0,r).then(function(e){return et.current="success",e},function(){et.current="error"}),eh(),[4,es.current];case 1:return[2,e.sent()]}})})}:t},[V,T,c,o,u,E,O,x,M,j,b,C,F.data,P,eh,W]),ey=(0,s.useCallback)(ev(i.POST),[ev]),eb=(0,s.useCallback)(ev(i.DELETE),[ev]),ew=(0,s.useMemo)(function(){return Object.defineProperties({get:ev(i.GET),post:ey,patch:ev(i.PATCH),put:ev(i.PUT),options:ev(i.OPTIONS),head:ev(i.HEAD),connect:ev(i.CONNECT),trace:ev(i.TRACE),del:eb,delete:eb,abort:function(){return X.current&&X.current.abort()},query:function(e,r){return ey({query:e,variables:r})},mutate:function(e,r){return ey({mutation:e,variables:r})},cache:K},{loading:{get:function(){return ep.current}},error:{get:function(){return ee.current}},data:{get:function(){return Q.current}}})},[ev]),eg=(0,s.useMemo)(function(){return k(z,Q)},[]);if((0,s.useEffect)(function(){return el.current=!0,Array.isArray(l)&&(0,ew[(c.method||i.GET).toLowerCase()])(),function(){return el.current=!1}},l),(0,s.useEffect)(function(){return ew.abort},[]),W&&es.current){if(V)throw Error("Suspense on server side is not yet supported! \uD83D\uDE45ââï¸");switch(et.current){case"pending":throw es.current;case"error":throw ee.current}}return Object.assign([ew,eg,ep.current,ee.current],eo(eo({request:ew,response:eg},ew),{loading:ep.current,data:Q.current,error:ee.current}))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.