@cyberskill/shared 1.192.0 → 1.194.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.
Files changed (60) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +121 -7
  2. package/dist/_tsup-dts-rollup.d.ts +121 -7
  3. package/dist/node/cli/cli.util.cjs +1 -1
  4. package/dist/node/cli/cli.util.js +1 -1
  5. package/dist/node/cli/index.cjs +1 -1
  6. package/dist/node/cli/index.js +1 -1
  7. package/dist/node/index.cjs +1 -1
  8. package/dist/node/index.d.cts +3 -0
  9. package/dist/node/index.d.ts +3 -0
  10. package/dist/node/index.js +1 -1
  11. package/dist/node/upload/index.cjs +1 -1
  12. package/dist/node/upload/index.d.cts +3 -0
  13. package/dist/node/upload/index.d.ts +3 -0
  14. package/dist/node/upload/index.js +1 -1
  15. package/dist/node/upload/upload.type.cjs +1 -1
  16. package/dist/node/upload/upload.type.d.cts +2 -0
  17. package/dist/node/upload/upload.type.d.ts +2 -0
  18. package/dist/node/upload/upload.type.js +1 -0
  19. package/dist/node/upload/upload.util.cjs +1 -1
  20. package/dist/node/upload/upload.util.d.cts +1 -0
  21. package/dist/node/upload/upload.util.d.ts +1 -0
  22. package/dist/node/upload/upload.util.js +1 -1
  23. package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
  24. package/dist/react/apollo-client/apollo-client.component.js +1 -1
  25. package/dist/react/apollo-client/apollo-client.context.cjs +1 -0
  26. package/dist/react/apollo-client/apollo-client.context.d.cts +2 -0
  27. package/dist/react/apollo-client/apollo-client.context.d.ts +2 -0
  28. package/dist/react/apollo-client/apollo-client.context.js +1 -0
  29. package/dist/react/apollo-client/apollo-client.hook.cjs +1 -0
  30. package/dist/react/apollo-client/apollo-client.hook.d.cts +1 -0
  31. package/dist/react/apollo-client/apollo-client.hook.d.ts +1 -0
  32. package/dist/react/apollo-client/apollo-client.hook.js +1 -0
  33. package/dist/react/apollo-client/apollo-client.type.d.cts +1 -0
  34. package/dist/react/apollo-client/apollo-client.type.d.ts +1 -0
  35. package/dist/react/apollo-client/apollo-client.util.cjs +1 -0
  36. package/dist/react/apollo-client/apollo-client.util.css +1 -0
  37. package/dist/react/apollo-client/apollo-client.util.d.cts +1 -0
  38. package/dist/react/apollo-client/apollo-client.util.d.ts +1 -0
  39. package/dist/react/apollo-client/apollo-client.util.js +1 -0
  40. package/dist/react/apollo-client/index.cjs +1 -1
  41. package/dist/react/apollo-client/index.d.cts +13 -0
  42. package/dist/react/apollo-client/index.d.ts +13 -0
  43. package/dist/react/apollo-client/index.js +1 -1
  44. package/dist/react/index.cjs +1 -1
  45. package/dist/react/index.d.cts +13 -0
  46. package/dist/react/index.d.ts +13 -0
  47. package/dist/react/index.js +1 -1
  48. package/dist/react/userback/index.cjs +1 -0
  49. package/dist/react/userback/index.d.cts +3 -0
  50. package/dist/react/userback/index.d.ts +3 -0
  51. package/dist/react/userback/index.js +1 -0
  52. package/dist/react/userback/userback.component.cjs +1 -0
  53. package/dist/react/userback/userback.component.d.cts +1 -0
  54. package/dist/react/userback/userback.component.d.ts +1 -0
  55. package/dist/react/userback/userback.component.js +1 -0
  56. package/dist/react/userback/userback.type.cjs +1 -0
  57. package/dist/react/userback/userback.type.d.cts +2 -0
  58. package/dist/react/userback/userback.type.d.ts +2 -0
  59. package/dist/react/userback/userback.type.js +0 -0
  60. package/package.json +14 -7
@@ -1,15 +1,28 @@
1
+ export { useApolloClient } from '../_tsup-dts-rollup.cjs';
2
+ export { useBackgroundQuery } from '../_tsup-dts-rollup.cjs';
3
+ export { useFragment } from '../_tsup-dts-rollup.cjs';
1
4
  export { useLazyQuery } from '../_tsup-dts-rollup.cjs';
5
+ export { useLoadableQuery } from '../_tsup-dts-rollup.cjs';
2
6
  export { useMutation } from '../_tsup-dts-rollup.cjs';
3
7
  export { useQuery } from '../_tsup-dts-rollup.cjs';
8
+ export { useQueryRefHandlers } from '../_tsup-dts-rollup.cjs';
9
+ export { useReactiveVar } from '../_tsup-dts-rollup.cjs';
10
+ export { useReadQuery } from '../_tsup-dts-rollup.cjs';
4
11
  export { useSubscription } from '../_tsup-dts-rollup.cjs';
12
+ export { useSuspenseFragment } from '../_tsup-dts-rollup.cjs';
13
+ export { useSuspenseQuery } from '../_tsup-dts-rollup.cjs';
5
14
  export { ApolloProvider } from '../_tsup-dts-rollup.cjs';
6
15
  export { GRAPHQL_URI_DEFAULT } from '../_tsup-dts-rollup.cjs';
16
+ export { ApolloClientProvider } from '../_tsup-dts-rollup.cjs';
17
+ export { ApolloClientContext } from '../_tsup-dts-rollup.cjs';
7
18
  export { I_ApolloOptions } from '../_tsup-dts-rollup.cjs';
8
19
  export { I_ApolloProviderProps } from '../_tsup-dts-rollup.cjs';
20
+ export { I_RegisteredApolloClient } from '../_tsup-dts-rollup.cjs';
9
21
  export { ApolloCache } from '../_tsup-dts-rollup.cjs';
10
22
  export { ApolloClient } from '../_tsup-dts-rollup.cjs';
11
23
  export { ApolloClientOptions } from '../_tsup-dts-rollup.cjs';
12
24
  export { NormalizedCacheObject } from '../_tsup-dts-rollup.cjs';
25
+ export { getClient } from '../_tsup-dts-rollup.cjs';
13
26
  export { ApolloErrorComponent } from '../_tsup-dts-rollup.cjs';
14
27
  export { ApolloErrorContext } from '../_tsup-dts-rollup.cjs';
15
28
  export { useApolloError } from '../_tsup-dts-rollup.cjs';
@@ -1,15 +1,28 @@
1
+ export { useApolloClient } from '../_tsup-dts-rollup.js';
2
+ export { useBackgroundQuery } from '../_tsup-dts-rollup.js';
3
+ export { useFragment } from '../_tsup-dts-rollup.js';
1
4
  export { useLazyQuery } from '../_tsup-dts-rollup.js';
5
+ export { useLoadableQuery } from '../_tsup-dts-rollup.js';
2
6
  export { useMutation } from '../_tsup-dts-rollup.js';
3
7
  export { useQuery } from '../_tsup-dts-rollup.js';
8
+ export { useQueryRefHandlers } from '../_tsup-dts-rollup.js';
9
+ export { useReactiveVar } from '../_tsup-dts-rollup.js';
10
+ export { useReadQuery } from '../_tsup-dts-rollup.js';
4
11
  export { useSubscription } from '../_tsup-dts-rollup.js';
12
+ export { useSuspenseFragment } from '../_tsup-dts-rollup.js';
13
+ export { useSuspenseQuery } from '../_tsup-dts-rollup.js';
5
14
  export { ApolloProvider } from '../_tsup-dts-rollup.js';
6
15
  export { GRAPHQL_URI_DEFAULT } from '../_tsup-dts-rollup.js';
16
+ export { ApolloClientProvider } from '../_tsup-dts-rollup.js';
17
+ export { ApolloClientContext } from '../_tsup-dts-rollup.js';
7
18
  export { I_ApolloOptions } from '../_tsup-dts-rollup.js';
8
19
  export { I_ApolloProviderProps } from '../_tsup-dts-rollup.js';
20
+ export { I_RegisteredApolloClient } from '../_tsup-dts-rollup.js';
9
21
  export { ApolloCache } from '../_tsup-dts-rollup.js';
10
22
  export { ApolloClient } from '../_tsup-dts-rollup.js';
11
23
  export { ApolloClientOptions } from '../_tsup-dts-rollup.js';
12
24
  export { NormalizedCacheObject } from '../_tsup-dts-rollup.js';
25
+ export { getClient } from '../_tsup-dts-rollup.js';
13
26
  export { ApolloErrorComponent } from '../_tsup-dts-rollup.js';
14
27
  export { ApolloErrorContext } from '../_tsup-dts-rollup.js';
15
28
  export { useApolloError } from '../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,i){try{var l=e[a](i);var u=l.value}catch(e){t(e);return}if(l.done){r(u)}else{Promise.resolve(u).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var i=e.apply(r,t);function l(e){o(i,n,a,l,u,"next",e)}function u(e){o(i,n,a,l,u,"throw",e)}l(undefined)})}}function i(e,r,t){r=E(r);return h(e,C()?Reflect.construct(r,t||[],E(e).constructor):r.apply(e,t))}function l(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function s(e,r,t){if(r)u(e.prototype,r);if(t)u(e,t);return e}function c(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function E(e){E=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return E(e)}function f(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)y(e,r)}function d(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function m(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var i,l;try{for(t=t.call(e);!(o=(i=t.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(e){a=true;l=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw l}}return n}function v(){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 S(){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 _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){c(e,r,t[r])})}return e}function O(e,r){if(e==null)return{};var t=A(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function A(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function h(e,r){if(r&&(T(r)==="object"||typeof r==="function")){return r}return n(e)}function y(e,r){y=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return y(e,r)}function g(e,t){return r(e)||p(e,t)||N(e,t)||v()}function b(e){return t(e)||m(e)||N(e)||S()}function T(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function N(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function D(e,r){var t,n,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=l(0),i["throw"]=l(1),i["return"]=l(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(r){return u([e,r])}}function u(l){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,l[0]&&(a=0)),a)try{if(t=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(l[0]===6&&a.label<o[1]){a.label=o[1];o=l;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(l);break}if(o[2])a.ops.pop();a.trys.pop();continue}l=r.call(e,a)}catch(e){l=[6,e];n=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var I=Object.defineProperty;var R=function(e,r,t){return r in e?I(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t};var L=function(e,r){return I(e,"name",{value:r,configurable:!0})};var M=function(e,r,t){return R(e,(typeof r==="undefined"?"undefined":T(r))!="symbol"?r+"":r,t)};import{ApolloClient as w,ApolloError as G,InMemoryCache as P}from"@apollo/client/core/core.cjs";import{ApolloLink as k,from as U,split as x}from"@apollo/client/link/core/core.cjs";import{onError as F}from"@apollo/client/link/error/error.cjs";import{HttpLink as Q}from"@apollo/client/link/http/http.cjs";import{removeTypenameFromVariables as j}from"@apollo/client/link/remove-typename/remove-typename.cjs";import{GraphQLWsLink as z}from"@apollo/client/link/subscriptions/subscriptions.cjs";import{ApolloProvider as q}from"@apollo/client/react/react.cjs";import{getMainDefinition as H}from"@apollo/client/utilities/utilities.cjs";import{createClient as B}from"graphql-ws";import V,{useMemo as Y}from"react";import W,{use as J}from"react";import{createContext as X}from"react";var K=X(void 0);var Z={"modal-backdrop":"_modal-backdrop_8fveh_1","modal-content":"_modal-content_8fveh_11","btn-close":"_btn-close_8fveh_22","error-title":"_error-title_8fveh_36","btn-retry":"_btn-retry_8fveh_41","error-details":"_error-details_8fveh_54",main:"_main_8fveh_72",network:"_network_8fveh_75",extra:"_extra_8fveh_78"};function $(){var e=J(K),r=e===null||e===void 0?void 0:e.error;if(!r)return null;var t=L(function(e,r){return(r===null||r===void 0?void 0:r.length)?W.createElement("div",null,W.createElement("strong",null,e,":"),W.createElement("ul",null,r.map(function(e){return W.createElement("li",{key:e.message},e.message)}))):null},"renderErrorList");return W.createElement("div",{className:Z["modal-backdrop"]},W.createElement("div",{className:Z["modal-content"]},W.createElement("button",{type:"button",className:Z["btn-close"],onClick:e.hideError},"✕"),W.createElement("div",{className:Z["error-title"]},W.createElement("button",{type:"button",className:Z["btn-retry"],onClick:L(function(){return window.location.reload()},"onClick")},"Reload")," ",r.message),W.createElement("div",{className:Z["error-details"]},r.networkError&&W.createElement("pre",{className:"network"},W.createElement("strong",null,"Network Error:")," ",r.networkError.message),t("GraphQL Errors",b(r.graphQLErrors)),t("Protocol Errors",b(r.protocolErrors)),t("Client Errors",b(r.clientErrors)),r.extraInfo&&W.createElement("pre",{className:"extra"},W.createElement("strong",null,"Extra Info:")," ",JSON.stringify(r.extraInfo,null,4)))))}L($,"ApolloErrorComponent");import{use as ee}from"react";function er(){var e=ee(K);if(!e)throw new Error("useApolloError must be used within ApolloErrorProvider");return e}L(er,"useApolloError");import et,{useEffect as en,useMemo as eo,useState as ea}from"react";var ei=null;function el(e){ei=e}L(el,"setGlobalApolloErrorCallback");function eu(e){ei===null||ei===void 0?void 0:ei(e)}L(eu,"showGlobalApolloError");function es(e){var r=e.children;var t=g(ea(null),2),n=t[0],o=t[1];en(function(){el(o)},[]);var a=eo(function(){return{error:n,showError:o,hideError:L(function(){return o(null)},"hideError")}},[n]);return et.createElement(K,{value:a},r)}L(es,"ApolloErrorProvider");import{consola as ec}from"consola/browser";var eE={GRAPHQL_PARSE_FAILED:{CODE:"GRAPHQL_PARSE_FAILED",MESSAGE:"The GraphQL operation string contains a syntax error."},GRAPHQL_VALIDATION_FAILED:{CODE:"GRAPHQL_VALIDATION_FAILED",MESSAGE:"The GraphQL operation is not valid against the server's schema."},BAD_USER_INPUT:{CODE:"BAD_USER_INPUT",MESSAGE:"The GraphQL operation includes an invalid value for a field argument."},PERSISTED_QUERY_NOT_FOUND:{CODE:"PERSISTED_QUERY_NOT_FOUND",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ cache."},PERSISTED_QUERY_NOT_SUPPORTED:{CODE:"PERSISTED_QUERY_NOT_SUPPORTED",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ."},OPERATION_RESOLUTION_FAILURE:{CODE:"OPERATION_RESOLUTION_FAILURE",MESSAGE:"The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run. This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e.,operationName), or if the named operation isn't included in the request."},CONTINUE:{CODE:100,MESSAGE:"Continue"},SWITCHING_PROTOCOLS:{CODE:101,MESSAGE:"Switching Protocols"},PROCESSING:{CODE:102,MESSAGE:"Processing"},OK:{CODE:200,MESSAGE:"OK"},CREATED:{CODE:201,MESSAGE:"Created"},ACCEPTED:{CODE:202,MESSAGE:"Accepted"},NON_AUTHORITATIVE_INFORMATION:{CODE:203,MESSAGE:"Non Authoritative Information"},NO_CONTENT:{CODE:204,MESSAGE:"No Content"},RESET_CONTENT:{CODE:205,MESSAGE:"Reset Content"},PARTIAL_CONTENT:{CODE:206,MESSAGE:"Partial Content"},MULTI_STATUS:{CODE:207,MESSAGE:"Multi-Status"},MULTIPLE_CHOICES:{CODE:300,MESSAGE:"Multiple Choices"},MOVED_PERMANENTLY:{CODE:301,MESSAGE:"Moved Permanently"},MOVED_TEMPORARILY:{CODE:302,MESSAGE:"Moved Temporarily"},SEE_OTHER:{CODE:303,MESSAGE:"See Other"},NOT_MODIFIED:{CODE:304,MESSAGE:"Not Modified"},USE_PROXY:{CODE:305,MESSAGE:"Use Proxy"},TEMPORARY_REDIRECT:{CODE:307,MESSAGE:"Temporary Redirect"},PERMANENT_REDIRECT:{CODE:308,MESSAGE:"Permanent Redirect"},BAD_REQUEST:{CODE:400,MESSAGE:"Bad Request"},UNAUTHORIZED:{CODE:401,MESSAGE:"Unauthorized"},PAYMENT_REQUIRED:{CODE:402,MESSAGE:"Payment Required"},FORBIDDEN:{CODE:403,MESSAGE:"Forbidden"},NOT_FOUND:{CODE:404,MESSAGE:"Not Found"},METHOD_NOT_ALLOWED:{CODE:405,MESSAGE:"Method Not Allowed"},NOT_ACCEPTABLE:{CODE:406,MESSAGE:"Not Acceptable"},PROXY_AUTHENTICATION_REQUIRED:{CODE:407,MESSAGE:"Proxy Authentication Required"},REQUEST_TIMEOUT:{CODE:408,MESSAGE:"Request Timeout"},CONFLICT:{CODE:409,MESSAGE:"Conflict"},GONE:{CODE:410,MESSAGE:"Gone"},LENGTH_REQUIRED:{CODE:411,MESSAGE:"Length Required"},PRECONDITION_FAILED:{CODE:412,MESSAGE:"Precondition Failed"},REQUEST_TOO_LONG:{CODE:413,MESSAGE:"Request Entity Too Large"},REQUEST_URI_TOO_LONG:{CODE:414,MESSAGE:"Request-URI Too Long"},UNSUPPORTED_MEDIA_TYPE:{CODE:415,MESSAGE:"Unsupported Media Type"},REQUESTED_RANGE_NOT_SATISFIABLE:{CODE:416,MESSAGE:"Requested Range Not Satisfiable"},EXPECTATION_FAILED:{CODE:417,MESSAGE:"Expectation Failed"},IM_A_TEAPOT:{CODE:418,MESSAGE:"I'm a teapot"},INSUFFICIENT_SPACE_ON_RESOURCE:{CODE:419,MESSAGE:"Insufficient Space on Resource"},METHOD_FAILURE:{CODE:420,MESSAGE:"Method Failure"},MISDIRECTED_REQUEST:{CODE:421,MESSAGE:"Misdirected Request"},UNPROCESSABLE_ENTITY:{CODE:422,MESSAGE:"Unprocessable Entity"},LOCKED:{CODE:423,MESSAGE:"Locked"},FAILED_DEPENDENCY:{CODE:424,MESSAGE:"Failed Dependency"},PRECONDITION_REQUIRED:{CODE:428,MESSAGE:"Precondition Required"},TOO_MANY_REQUESTS:{CODE:429,MESSAGE:"Too Many Requests"},REQUEST_HEADER_FIELDS_TOO_LARGE:{CODE:431,MESSAGE:"Request Header Fields Too Large"},UNAVAILABLE_FOR_LEGAL_REASONS:{CODE:451,MESSAGE:"Unavailable For Legal Reasons"},INTERNAL_SERVER_ERROR:{CODE:500,MESSAGE:"Internal Server Error"},NOT_IMPLEMENTED:{CODE:501,MESSAGE:"Not Implemented"},BAD_GATEWAY:{CODE:502,MESSAGE:"Bad Gateway"},SERVICE_UNAVAILABLE:{CODE:503,MESSAGE:"Service Unavailable"},GATEWAY_TIMEOUT:{CODE:504,MESSAGE:"Gateway Timeout"},HTTP_VERSION_NOT_SUPPORTED:{CODE:505,MESSAGE:"HTTP Version Not Supported"},INSUFFICIENT_STORAGE:{CODE:507,MESSAGE:"Insufficient Storage"},NETWORK_AUTHENTICATION_REQUIRED:{CODE:511,MESSAGE:"Network Authentication Required"}};var ef={silent:ec.silent,level:ec.level,fatal:ec.fatal,error:ec.error,warn:ec.warn,log:ec.log,info:ec.info,success:ec.success,ready:ec.ready,start:ec.start,box:ec.box,debug:ec.debug,trace:ec.trace,verbose:ec.verbose};function ed(e,r){var t=r!==null&&r!==void 0?r:{},n=t.shouldLog,o=n===void 0?!0:n,a=t.returnValue,i=t.callback,l=d(e,Error)?e:new Error(typeof e=="string"?e:"Unknown error");return o&&ef.error(l.message),i&&typeof i=="function"&&i(l),a||{success:!1,message:l.message,code:eE.INTERNAL_SERVER_ERROR.CODE}}L(ed,"catchError");import{toast as em,Toaster as ep}from"react-hot-toast";var ev="/graphql";var eS,e_=(eS=/*#__PURE__*/function(e){"use strict";f(r,e);function r(){l(this,r);var e;e=i(this,r,arguments);M(e,"count",0);return e}s(r,[{key:"request",value:function e(e,r){var t=this;var n=Date.now();return this.count+=1,r(e).map(function(r){var o=Date.now()-n,a=e.operationName||"Unnamed";return ef.info("[Apollo] #".concat(t.count,": ").concat(a," (").concat(o,"ms)")),r})}}]);return r}(k),L(eS,"DevLoggerLink"),eS);function eO(e){var r=e.uri,t=e.wsUrl,n=e.customLinks,o=new e_,a=F(function(e){var r=e.graphQLErrors,t=e.networkError,n=e.protocolErrors,o=e.operation;var a=(o===null||o===void 0?void 0:o.operationName)||"Unknown";if(r&&r.forEach(function(e){var r=e.message,t=e.locations,n=e.path;ef.error("[GraphQL error] ".concat(a,": ").concat(r,", Location: ").concat(JSON.stringify(t,null,4),", Path: ").concat(n))}),n&&n.forEach(function(e){var r=e.message,t=e.extensions;ef.error("[Protocol error]: ".concat(r,", Extensions: ").concat(JSON.stringify(t,null,4)))}),t&&ef.error("[Network error]: ".concat(t)),r||n||t){var i,l;var u=(r===null||r===void 0?void 0:(i=r[0])===null||i===void 0?void 0:i.message)||(n===null||n===void 0?void 0:(l=n[0])===null||l===void 0?void 0:l.message)||(t===null||t===void 0?void 0:t.message)||"Unexpected error",s=new G({graphQLErrors:r||[],protocolErrors:n||[],clientErrors:[],networkError:t||null,errorMessage:u,extraInfo:{operation:o}});em.error(function(e){return V.createElement(V.Fragment,null,u,"\xa0",V.createElement("button",{type:"button",onClick:L(function(){setTimeout(function(){eu(s)},0),em.dismiss(e.id)},"onClick")},"Show Details"))})}}),i=j();r||ef.warn('[Apollo] No GraphQL URI provided — using "'.concat(ev,'" as default'));var l=new Q({uri:r!==null&&r!==void 0?r:ev,credentials:"include"}),u=t?new z(B({url:t})):k.empty(),s=d(u,k)?x(function(e){var r=e.query;var t=H(r);return t.kind==="OperationDefinition"&&t.operation==="subscription"},u,l):l;return s===l&&t&&ef.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[o,a,i].concat(b(n!==null&&n!==void 0?n:[]),[s])}L(eO,"createApolloLinks");function eA(e){var r=e.isNextJS,t=e.options,n=e.children,o=e.client,a=e.provider,i=e.cache;var l=t||{},u=l.uri,s=l.wsUrl,c=l.customLinks,E=O(l,["uri","wsUrl","customLinks"]),f=o!==null&&o!==void 0?o:w;if(typeof f!="function")throw new TypeError("Invalid ApolloClient provided. Ensure CustomClient is a class.");var m=a||q,p=Y(function(){return U(eO({uri:u!==null&&u!==void 0?u:ev,wsUrl:s!==null&&s!==void 0?s:"",customLinks:c!==null&&c!==void 0?c:[]}))},[u,s,c]),v=Y(function(){return d(i,P)?i:new P},[i]),S=Y(function(){return new f(_({link:p,cache:v},E))},[f,p,v,E]),A=r?V.createElement(m,{makeClient:L(function(){return S},"makeClient")},n):V.createElement(m,{client:S},n);return V.createElement(V.Fragment,null,V.createElement(es,null,A,V.createElement($,null)),V.createElement(ep,{position:"top-right"}))}L(eA,"ApolloProvider");import{useLazyQuery as eh,useMutation as ey,useQuery as eg,useSubscription as eb}from"@apollo/client/react/hooks/hooks.cjs";import{useTranslation as eT}from"react-i18next";var eN=eT;import eC from"i18next";import{initReactI18next as eD}from"react-i18next";function eI(e){return eC.use(eD).init(e)}L(eI,"initI18next");import eR from"clsx";import eL,{useEffect as eM}from"react";var ew={overlay:"_overlay_1ank4_1",fullscreen:"_fullscreen_1ank4_1",block:"_block_1ank4_2","overlay-fade-in":"_overlay-fade-in_1ank4_1",container:"_container_1ank4_35",ring:"_ring_1ank4_45",rotate1:"_rotate1_1ank4_1",rotate2:"_rotate2_1ank4_1",rotate3:"_rotate3_1ank4_1",rotate4:"_rotate4_1ank4_1",message:"_message_1ank4_69","text-fade":"_text-fade_1ank4_1"};function eG(){if(document.getElementById("noscroll-style"))return;var e=document.createElement("style");e.id="noscroll-style",e.innerHTML="\n .noscroll {\n overflow: hidden !important;\n height: 100vh !important;\n }\n ",document.head.appendChild(e)}L(eG,"injectNoScrollStyle");function eP(e){var r=e.full,t=r===void 0?!1:r,n=e.block,o=n===void 0?!1:n,a=e.className,i=a===void 0?"":a,l=e.message,u=l===void 0?"Loading":l,s=O(e,["full","block","className","message"]);eM(function(){if(t){document.body.classList.add("noscroll");var e=L(function(e){return e.preventDefault()},"handleContextMenu");return document.addEventListener("contextmenu",e),function(){document.body.classList.remove("noscroll"),document.removeEventListener("contextmenu",e)}}},[t]),eM(function(){eG()},[]);function c(){return eL.createElement("div",_({className:ew.container},s),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),u&&eL.createElement("div",{className:ew.message},u))}return L(c,"_renderLoading"),t?eL.createElement("div",{className:eR(ew.fullscreen,i)},c()):o?eL.createElement("div",{className:eR(ew.block,i)},c()):c()}L(eP,"Loading");import{createContext as ek}from"react";var eU=ek(void 0);import{use as ex}from"react";function eF(){var e=ex(eU);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}L(eF,"useLoading");import eQ,{useCallback as ej,useMemo as ez,useState as eq}from"react";function eH(e){var r=e.children;var t=g(eq(!1),2),n=t[0],o=t[1],a=g(eq(!1),2),i=a[0],l=a[1],u=ej(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o(!0),l(e)},[]),s=ej(function(){o(!1),l(!1)},[]),c=ez(function(){return{isLoading:n,isGlobalLoading:i,showLoading:u,hideLoading:s}},[n,i,u,s]);return eQ.createElement(eU,{value:c},n?eQ.createElement(eP,{full:i}):r)}L(eH,"LoadingProvider");import{enUS as eB}from"date-fns/locale";var eV={label:"English",value:"en",flag:"\uD83C\uDDFA\uD83C\uDDF8",adapterLocale:eB,icon:"flagpack:gb-nir",numberFormat:{code:"en-US",currency:"USD"},timezone:"America/New_York"};import{createContext as eY}from"react";var eW=eY(void 0);import{NextIntlClientProvider as eJ}from"next-intl";import eX from"react";import{useTranslations as eK}from"next-intl";import{use as eZ}from"react";function e$(){var e=eZ(eW);if(!e)throw new Error("useNextIntl must be used within a NextIntlProvider");return e}L(e$,"useNextIntl");var e0=eK;function e1(e){var r=L(function(r){var t;var n;var o=e$(),a=o.currentLanguage,i=r.messages,l=r.languages,u="en",s=i[(a===null||a===void 0?void 0:a.value)||u],c=(n=(t=l.find(function(e){return e.value===(a===null||a===void 0?void 0:a.value)}))===null||t===void 0?void 0:t.timezone)!==null&&n!==void 0?n:eV.timezone;return i?eX.createElement(eJ,{locale:(a===null||a===void 0?void 0:a.value)||u,messages:s||null,timeZone:c},eX.createElement(e,r)):(ef.warn("Missing messages for language: ".concat((a===null||a===void 0?void 0:a.value)||u)),null)},"PageWithI18n");return r.displayName="withNextIntl(".concat(e.displayName||e.name||"Component",")"),r}L(e1,"withNextIntl");import e2,{useMemo as e4}from"react";import{useCallback as e3,useEffect as e8,useState as e5}from"react";var e7={Date:{is:L(function(e){return d(e,Date)},"is"),serialize:L(function(e){return{__type:"Date",value:e.toISOString()}},"serialize"),deserialize:L(function(e){return new Date(e)},"deserialize")},Map:{is:L(function(e){return d(e,Map)},"is"),serialize:L(function(e){return{__type:"Map",value:Array.from(e.entries())}},"serialize"),deserialize:L(function(e){return new Map(e)},"deserialize")},Set:{is:L(function(e){return d(e,Set)},"is"),serialize:L(function(e){return{__type:"Set",value:Array.from(e)}},"serialize"),deserialize:L(function(e){return new Set(e)},"deserialize")},RegExp:{is:L(function(e){return d(e,RegExp)},"is"),serialize:L(function(e){return{__type:"RegExp",value:{source:e.source,flags:e.flags}}},"serialize"),deserialize:L(function(e){var r=e.source,t=e.flags;return new RegExp(r,t)},"deserialize")},BigInt:{is:L(function(e){return(typeof e==="undefined"?"undefined":T(e))=="bigint"},"is"),serialize:L(function(e){return{__type:"BigInt",value:e.toString()}},"serialize"),deserialize:L(function(e){return BigInt(e)},"deserialize")}},e6={serialize:function e(e){return JSON.stringify(e,function(e,r){var t=true,n=false,o=undefined;try{for(var a=Object.keys(e7)[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var l=i.value;var u=e7[l];if(u.is(r))return u.serialize(r)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r})},deserialize:function e(e){return JSON.parse(e,function(e,r){if(r&&(typeof r==="undefined"?"undefined":T(r))=="object"&&"__type"in r&&typeof r.__type=="string"){var t=r.__type,n=e7[t];if(n)return n.deserialize(r.value)}return r})}};import e9 from"localforage";var re={get:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.getItem(e)];case 1:return[2,t.sent()];case 2:r=t.sent();return[2,ed(r,{returnValue:null})];case 3:return[2]}})})()},set:function e(e,r){return a(function(){var t;return D(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,e9.setItem(e,r)];case 1:n.sent();return[3,3];case 2:t=n.sent();ed(t);return[3,3];case 3:return[2]}})})()},remove:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.removeItem(e)];case 1:t.sent();return[3,3];case 2:r=t.sent();ed(r);return[3,3];case 3:return[2]}})})()},keys:function e(){return a(function(){var e,r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.keys()];case 1:return[2,(e=t.sent())!==null&&e!==void 0?e:[]];case 2:r=t.sent();return[2,ed(r,{returnValue:[]})];case 3:return[2]}})})()}};function rr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e6;var n=g(e5(r),2),o=n[0],i=n[1],l=g(e5(!1),2),u=l[0],s=l[1];e8(function(){var n=!0;return L(function(){return a(function(){var o,a,l,u;return D(this,function(c){switch(c.label){case 0:c.trys.push([0,6,7,8]);return[4,re.get(e)];case 1:o=c.sent();if(!n)return[3,5];if(!(o!==null))return[3,2];a=t.deserialize(o);i(a);return[3,5];case 2:if(!(r!==void 0))return[3,4];l=t.serialize(r);return[4,re.set(e,l)];case 3:c.sent(),i(r);return[3,5];case 4:i(void 0);c.label=5;case 5:return[3,8];case 6:u=c.sent();ed(u),n&&i(r);return[3,8];case 7:n&&s(!0);return[7];case 8:return[2]}})})()},"loadValue")(),function(){n=!1,s(!1)}},[e,r,t]),e8(function(){if(!u)return;L(function(){return a(function(){var r,n;return D(this,function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);if(!(o!==void 0))return[3,2];r=t.serialize(o);return[4,re.set(e,r)];case 1:a.sent();a.label=2;case 2:return[3,4];case 3:n=a.sent();ed(n);return[3,4];case 4:return[2]}})})()},"saveValue")()},[o,e,t,u]);var c=e3(function(e){i(function(r){return typeof e=="function"?e(r):e})},[]),E=e3(function(){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,re.remove(e)];case 1:t.sent(),i(void 0);return[3,3];case 2:r=t.sent();ed(r);return[3,3];case 3:return[2]}})})()},[e]);return{value:o,set:c,remove:E}}L(rr,"useStorage");function rt(e){var r=e.children;return e2.createElement(e2.Fragment,null,r)}L(rt,"LanguageWrapperBase");var rn=e1(rt);function ro(e){var r=e.children,t=e.languages,n=e.messages;var o=rr("lang",t[0]),a=o.value,i=o.set,l=e4(function(){return{languages:t,currentLanguage:a!==null&&a!==void 0?a:eV,setCurrentLanguage:i}},[t,i,a]);return e2.createElement(eW,{value:l},e2.createElement(rn,{languages:t,messages:n},r))}L(ro,"NextIntlProvider");export{$ as ApolloErrorComponent,K as ApolloErrorContext,es as ApolloErrorProvider,eA as ApolloProvider,ev as GRAPHQL_URI_DEFAULT,eP as Loading,eU as LoadingContext,eH as LoadingProvider,eV as NEXT_INTL_DEFAULT_LANGUAGE,eW as NextIntlContext,ro as NextIntlProvider,ep as Toaster,ed as catchError,eI as initI18next,ef as log,el as setGlobalApolloErrorCallback,eu as showGlobalApolloError,re as storage,em as toast,er as useApolloError,eh as useLazyQuery,eF as useLoading,ey as useMutation,e$ as useNextIntl,eg as useQuery,rr as useStorage,eb as useSubscription,eN as useTranslateI18next,e0 as useTranslateNextIntl,e1 as withNextIntl};
1
+ function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,i){try{var l=e[a](i);var s=l.value}catch(e){t(e);return}if(l.done){r(s)}else{Promise.resolve(s).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var i=e.apply(r,t);function l(e){o(i,n,a,l,s,"next",e)}function s(e){o(i,n,a,l,s,"throw",e)}l(undefined)})}}function i(e,r,t){r=E(r);return h(e,N()?Reflect.construct(r,t||[],E(e).constructor):r.apply(e,t))}function l(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function s(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function u(e,r,t){if(r)s(e.prototype,r);if(t)s(e,t);return e}function c(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function E(e){E=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return E(e)}function f(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)y(e,r)}function m(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var i,l;try{for(t=t.call(e);!(o=(i=t.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(e){a=true;l=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw l}}return n}function v(){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 S(){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 _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){c(e,r,t[r])})}return e}function A(e,r){if(e==null)return{};var t=O(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function O(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function h(e,r){if(r&&(C(r)==="object"||typeof r==="function")){return r}return n(e)}function y(e,r){y=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return y(e,r)}function g(e,t){return r(e)||p(e,t)||T(e,t)||v()}function b(e){return t(e)||d(e)||T(e)||S()}function C(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function T(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}function R(e,r){var t,n,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=l(0),i["throw"]=l(1),i["return"]=l(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,l[0]&&(a=0)),a)try{if(t=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(l[0]===6&&a.label<o[1]){a.label=o[1];o=l;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(l);break}if(o[2])a.ops.pop();a.trys.pop();continue}l=r.call(e,a)}catch(e){l=[6,e];n=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var D=Object.defineProperty;var I=function(e,r,t){return r in e?D(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t};var M=function(e,r){return D(e,"name",{value:r,configurable:!0})};var L=function(e,r,t){return I(e,(typeof r==="undefined"?"undefined":C(r))!="symbol"?r+"":r,t)};import{ApolloNextAppProvider as w}from"@apollo/client-integration-nextjs";import{ApolloProvider as G}from"@apollo/client/react/react.cjs";import P,{useMemo as k}from"react";import U,{use as x}from"react";import{createContext as Q}from"react";var F=Q(void 0);var j={"modal-backdrop":"_modal-backdrop_8fveh_1","modal-content":"_modal-content_8fveh_11","btn-close":"_btn-close_8fveh_22","error-title":"_error-title_8fveh_36","btn-retry":"_btn-retry_8fveh_41","error-details":"_error-details_8fveh_54",main:"_main_8fveh_72",network:"_network_8fveh_75",extra:"_extra_8fveh_78"};function z(){var e=x(F),r=e===null||e===void 0?void 0:e.error;if(!r)return null;var t=M(function(e,r){return(r===null||r===void 0?void 0:r.length)?U.createElement("div",null,U.createElement("strong",null,e,":"),U.createElement("ul",null,r.map(function(e){return U.createElement("li",{key:e.message},e.message)}))):null},"renderErrorList");return U.createElement("div",{className:j["modal-backdrop"]},U.createElement("div",{className:j["modal-content"]},U.createElement("button",{type:"button",className:j["btn-close"],onClick:e.hideError},"✕"),U.createElement("div",{className:j["error-title"]},U.createElement("button",{type:"button",className:j["btn-retry"],onClick:M(function(){return window.location.reload()},"onClick")},"Reload")," ",r.message),U.createElement("div",{className:j["error-details"]},r.networkError&&U.createElement("pre",{className:"network"},U.createElement("strong",null,"Network Error:")," ",r.networkError.message),t("GraphQL Errors",b(r.graphQLErrors)),t("Protocol Errors",b(r.protocolErrors)),t("Client Errors",b(r.clientErrors)),r.extraInfo&&U.createElement("pre",{className:"extra"},U.createElement("strong",null,"Extra Info:")," ",JSON.stringify(r.extraInfo,null,4)))))}M(z,"ApolloErrorComponent");import{use as q}from"react";function H(){var e=q(F);if(!e)throw new Error("useApolloError must be used within ApolloErrorProvider");return e}M(H,"useApolloError");import B,{useEffect as V,useMemo as Y,useState as W}from"react";var J=null;function X(e){J=e}M(X,"setGlobalApolloErrorCallback");function K(e){J===null||J===void 0?void 0:J(e)}M(K,"showGlobalApolloError");function Z(e){var r=e.children;var t=g(W(null),2),n=t[0],o=t[1];V(function(){X(o)},[]);var a=Y(function(){return{error:n,showError:o,hideError:M(function(){return o(null)},"hideError")}},[n]);return B.createElement(F,{value:a},r)}M(Z,"ApolloErrorProvider");import{toast as $,Toaster as ee}from"react-hot-toast";import er,{createContext as et}from"react";var en=et(null);function eo(e){var r=e.client,t=e.children;return er.createElement(en,{value:r},t)}M(eo,"ApolloClientProvider");import{ApolloClient as ea,InMemoryCache as ei,registerApolloClient as el}from"@apollo/client-integration-nextjs";import{ApolloClient as es,ApolloError as eu,InMemoryCache as ec}from"@apollo/client/core/core.cjs";import{ApolloLink as eE,from as ef,split as em}from"@apollo/client/link/core/core.cjs";import{onError as ed}from"@apollo/client/link/error/error.cjs";import{HttpLink as ep}from"@apollo/client/link/http/http.cjs";import{removeTypenameFromVariables as ev}from"@apollo/client/link/remove-typename/remove-typename.cjs";import{GraphQLWsLink as eS}from"@apollo/client/link/subscriptions/subscriptions.cjs";import{getMainDefinition as e_}from"@apollo/client/utilities/utilities.cjs";import{createClient as eA}from"graphql-ws";import eO from"react";import{consola as eh}from"consola/browser";var ey={GRAPHQL_PARSE_FAILED:{CODE:"GRAPHQL_PARSE_FAILED",MESSAGE:"The GraphQL operation string contains a syntax error."},GRAPHQL_VALIDATION_FAILED:{CODE:"GRAPHQL_VALIDATION_FAILED",MESSAGE:"The GraphQL operation is not valid against the server's schema."},BAD_USER_INPUT:{CODE:"BAD_USER_INPUT",MESSAGE:"The GraphQL operation includes an invalid value for a field argument."},PERSISTED_QUERY_NOT_FOUND:{CODE:"PERSISTED_QUERY_NOT_FOUND",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ cache."},PERSISTED_QUERY_NOT_SUPPORTED:{CODE:"PERSISTED_QUERY_NOT_SUPPORTED",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ."},OPERATION_RESOLUTION_FAILURE:{CODE:"OPERATION_RESOLUTION_FAILURE",MESSAGE:"The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run. This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e.,operationName), or if the named operation isn't included in the request."},CONTINUE:{CODE:100,MESSAGE:"Continue"},SWITCHING_PROTOCOLS:{CODE:101,MESSAGE:"Switching Protocols"},PROCESSING:{CODE:102,MESSAGE:"Processing"},OK:{CODE:200,MESSAGE:"OK"},CREATED:{CODE:201,MESSAGE:"Created"},ACCEPTED:{CODE:202,MESSAGE:"Accepted"},NON_AUTHORITATIVE_INFORMATION:{CODE:203,MESSAGE:"Non Authoritative Information"},NO_CONTENT:{CODE:204,MESSAGE:"No Content"},RESET_CONTENT:{CODE:205,MESSAGE:"Reset Content"},PARTIAL_CONTENT:{CODE:206,MESSAGE:"Partial Content"},MULTI_STATUS:{CODE:207,MESSAGE:"Multi-Status"},MULTIPLE_CHOICES:{CODE:300,MESSAGE:"Multiple Choices"},MOVED_PERMANENTLY:{CODE:301,MESSAGE:"Moved Permanently"},MOVED_TEMPORARILY:{CODE:302,MESSAGE:"Moved Temporarily"},SEE_OTHER:{CODE:303,MESSAGE:"See Other"},NOT_MODIFIED:{CODE:304,MESSAGE:"Not Modified"},USE_PROXY:{CODE:305,MESSAGE:"Use Proxy"},TEMPORARY_REDIRECT:{CODE:307,MESSAGE:"Temporary Redirect"},PERMANENT_REDIRECT:{CODE:308,MESSAGE:"Permanent Redirect"},BAD_REQUEST:{CODE:400,MESSAGE:"Bad Request"},UNAUTHORIZED:{CODE:401,MESSAGE:"Unauthorized"},PAYMENT_REQUIRED:{CODE:402,MESSAGE:"Payment Required"},FORBIDDEN:{CODE:403,MESSAGE:"Forbidden"},NOT_FOUND:{CODE:404,MESSAGE:"Not Found"},METHOD_NOT_ALLOWED:{CODE:405,MESSAGE:"Method Not Allowed"},NOT_ACCEPTABLE:{CODE:406,MESSAGE:"Not Acceptable"},PROXY_AUTHENTICATION_REQUIRED:{CODE:407,MESSAGE:"Proxy Authentication Required"},REQUEST_TIMEOUT:{CODE:408,MESSAGE:"Request Timeout"},CONFLICT:{CODE:409,MESSAGE:"Conflict"},GONE:{CODE:410,MESSAGE:"Gone"},LENGTH_REQUIRED:{CODE:411,MESSAGE:"Length Required"},PRECONDITION_FAILED:{CODE:412,MESSAGE:"Precondition Failed"},REQUEST_TOO_LONG:{CODE:413,MESSAGE:"Request Entity Too Large"},REQUEST_URI_TOO_LONG:{CODE:414,MESSAGE:"Request-URI Too Long"},UNSUPPORTED_MEDIA_TYPE:{CODE:415,MESSAGE:"Unsupported Media Type"},REQUESTED_RANGE_NOT_SATISFIABLE:{CODE:416,MESSAGE:"Requested Range Not Satisfiable"},EXPECTATION_FAILED:{CODE:417,MESSAGE:"Expectation Failed"},IM_A_TEAPOT:{CODE:418,MESSAGE:"I'm a teapot"},INSUFFICIENT_SPACE_ON_RESOURCE:{CODE:419,MESSAGE:"Insufficient Space on Resource"},METHOD_FAILURE:{CODE:420,MESSAGE:"Method Failure"},MISDIRECTED_REQUEST:{CODE:421,MESSAGE:"Misdirected Request"},UNPROCESSABLE_ENTITY:{CODE:422,MESSAGE:"Unprocessable Entity"},LOCKED:{CODE:423,MESSAGE:"Locked"},FAILED_DEPENDENCY:{CODE:424,MESSAGE:"Failed Dependency"},PRECONDITION_REQUIRED:{CODE:428,MESSAGE:"Precondition Required"},TOO_MANY_REQUESTS:{CODE:429,MESSAGE:"Too Many Requests"},REQUEST_HEADER_FIELDS_TOO_LARGE:{CODE:431,MESSAGE:"Request Header Fields Too Large"},UNAVAILABLE_FOR_LEGAL_REASONS:{CODE:451,MESSAGE:"Unavailable For Legal Reasons"},INTERNAL_SERVER_ERROR:{CODE:500,MESSAGE:"Internal Server Error"},NOT_IMPLEMENTED:{CODE:501,MESSAGE:"Not Implemented"},BAD_GATEWAY:{CODE:502,MESSAGE:"Bad Gateway"},SERVICE_UNAVAILABLE:{CODE:503,MESSAGE:"Service Unavailable"},GATEWAY_TIMEOUT:{CODE:504,MESSAGE:"Gateway Timeout"},HTTP_VERSION_NOT_SUPPORTED:{CODE:505,MESSAGE:"HTTP Version Not Supported"},INSUFFICIENT_STORAGE:{CODE:507,MESSAGE:"Insufficient Storage"},NETWORK_AUTHENTICATION_REQUIRED:{CODE:511,MESSAGE:"Network Authentication Required"}};var eg={silent:eh.silent,level:eh.level,fatal:eh.fatal,error:eh.error,warn:eh.warn,log:eh.log,info:eh.info,success:eh.success,ready:eh.ready,start:eh.start,box:eh.box,debug:eh.debug,trace:eh.trace,verbose:eh.verbose};function eb(e,r){var t=r!==null&&r!==void 0?r:{},n=t.shouldLog,o=n===void 0?!0:n,a=t.returnValue,i=t.callback,l=m(e,Error)?e:new Error(typeof e=="string"?e:"Unknown error");return o&&eg.error(l.message),i&&typeof i=="function"&&i(l),a||{success:!1,message:l.message,code:ey.INTERNAL_SERVER_ERROR.CODE}}M(eb,"catchError");var eC="/graphql";var eT,eN=(eT=/*#__PURE__*/function(e){"use strict";f(r,e);function r(){l(this,r);var e;e=i(this,r,arguments);L(e,"count",0);return e}u(r,[{key:"request",value:function e(e,r){var t=this;var n=Date.now();return this.count+=1,r(e).map(function(r){var o=Date.now()-n,a=e.operationName||"Unnamed";return eg.info("[Apollo] #".concat(t.count,": ").concat(a," (").concat(o,"ms)")),r})}}]);return r}(eE),M(eT,"DevLoggerLink"),eT);function eR(e){var r=e.uri,t=e.wsUrl,n=e.customLinks,o=new eN,a=ed(function(e){var r=e.graphQLErrors,t=e.networkError,n=e.protocolErrors,o=e.operation;var a=(o===null||o===void 0?void 0:o.operationName)||"Unknown";if(r&&r.forEach(function(e){var r=e.message,t=e.locations,n=e.path;eg.error("[GraphQL error] ".concat(a,": ").concat(r,", Location: ").concat(JSON.stringify(t,null,4),", Path: ").concat(n))}),n&&n.forEach(function(e){var r=e.message,t=e.extensions;eg.error("[Protocol error]: ".concat(r,", Extensions: ").concat(JSON.stringify(t,null,4)))}),t&&eg.error("[Network error]: ".concat(t)),r||n||t){var i,l;var s=(r===null||r===void 0?void 0:(i=r[0])===null||i===void 0?void 0:i.message)||(n===null||n===void 0?void 0:(l=n[0])===null||l===void 0?void 0:l.message)||(t===null||t===void 0?void 0:t.message)||"Unexpected error",u=new eu({graphQLErrors:r||[],protocolErrors:n||[],clientErrors:[],networkError:t||null,errorMessage:s,extraInfo:{operation:o}});$.error(function(e){return eO.createElement(eO.Fragment,null,s,"\xa0",eO.createElement("button",{type:"button",onClick:M(function(){setTimeout(function(){K(u)},0),$.dismiss(e.id)},"onClick")},"Show Details"))})}}),i=ev();r||eg.warn('[Apollo] No GraphQL URI provided — using "'.concat(eC,'" as default'));var l=new ep({uri:r!==null&&r!==void 0?r:eC,credentials:"include"}),s=t?new eS(eA({url:t})):eE.empty(),u=m(s,eE)?em(function(e){var r=e.query;var t=e_(r);return t.kind==="OperationDefinition"&&t.operation==="subscription"},s,l):l;return u===l&&t&&eg.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[o,a,i].concat(b(n!==null&&n!==void 0?n:[]),[u])}M(eR,"createApolloLinks");function eD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var t=ef(eR(e)),n=e.cache,o=A(e,["cache"]);return r?el(function(){return new ea(_({link:t,cache:new ei},o))}):new es(_({link:t,cache:new ec},o))}M(eD,"getClient");function eI(e){return typeof e.getClient=="function"}M(eI,"isRegisteredClient");function eM(e){var r=e.isNextJS,t=e.options,n=e.children;var o=k(function(){return eD(t||{},r)},[t,r]),a=eI(o)?o.getClient():o,i=r?P.createElement(w,{makeClient:M(function(){return a},"makeClient")},n):P.createElement(G,{client:a},n);return P.createElement(P.Fragment,null,P.createElement(Z,null,P.createElement(eo,{client:a},i),P.createElement(z,null)),P.createElement(ee,{position:"top-right"}))}M(eM,"ApolloProvider");import{use as eL}from"react";import{useApolloClient as ew,useBackgroundQuery as eG,useFragment as eP,useLazyQuery as ek,useLoadableQuery as eU,useMutation as ex,useQuery as eQ,useQueryRefHandlers as eF,useReactiveVar as ej,useReadQuery as ez,useSubscription as eq,useSuspenseFragment as eH,useSuspenseQuery as eB}from"@apollo/client/react/hooks/hooks.cjs";import{useTranslation as eV}from"react-i18next";var eY=eV;import eW from"i18next";import{initReactI18next as eJ}from"react-i18next";function eX(e){return eW.use(eJ).init(e)}M(eX,"initI18next");import eK from"clsx";import eZ,{useEffect as e$}from"react";var e0={overlay:"_overlay_1ank4_1",fullscreen:"_fullscreen_1ank4_1",block:"_block_1ank4_2","overlay-fade-in":"_overlay-fade-in_1ank4_1",container:"_container_1ank4_35",ring:"_ring_1ank4_45",rotate1:"_rotate1_1ank4_1",rotate2:"_rotate2_1ank4_1",rotate3:"_rotate3_1ank4_1",rotate4:"_rotate4_1ank4_1",message:"_message_1ank4_69","text-fade":"_text-fade_1ank4_1"};function e1(){if(document.getElementById("noscroll-style"))return;var e=document.createElement("style");e.id="noscroll-style",e.innerHTML="\n .noscroll {\n overflow: hidden !important;\n height: 100vh !important;\n }\n ",document.head.appendChild(e)}M(e1,"injectNoScrollStyle");function e2(e){var r=e.full,t=r===void 0?!1:r,n=e.block,o=n===void 0?!1:n,a=e.className,i=a===void 0?"":a,l=e.message,s=l===void 0?"Loading":l,u=A(e,["full","block","className","message"]);e$(function(){if(t){document.body.classList.add("noscroll");var e=M(function(e){return e.preventDefault()},"handleContextMenu");return document.addEventListener("contextmenu",e),function(){document.body.classList.remove("noscroll"),document.removeEventListener("contextmenu",e)}}},[t]),e$(function(){e1()},[]);function c(){return eZ.createElement("div",_({className:e0.container},u),eZ.createElement("div",{className:e0.ring}),eZ.createElement("div",{className:e0.ring}),eZ.createElement("div",{className:e0.ring}),eZ.createElement("div",{className:e0.ring}),s&&eZ.createElement("div",{className:e0.message},s))}return M(c,"_renderLoading"),t?eZ.createElement("div",{className:eK(e0.fullscreen,i)},c()):o?eZ.createElement("div",{className:eK(e0.block,i)},c()):c()}M(e2,"Loading");import{createContext as e4}from"react";var e3=e4(void 0);import{use as e8}from"react";function e5(){var e=e8(e3);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}M(e5,"useLoading");import e7,{useCallback as e6,useMemo as e9,useState as re}from"react";function rr(e){var r=e.children;var t=g(re(!1),2),n=t[0],o=t[1],a=g(re(!1),2),i=a[0],l=a[1],s=e6(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o(!0),l(e)},[]),u=e6(function(){o(!1),l(!1)},[]),c=e9(function(){return{isLoading:n,isGlobalLoading:i,showLoading:s,hideLoading:u}},[n,i,s,u]);return e7.createElement(e3,{value:c},n?e7.createElement(e2,{full:i}):r)}M(rr,"LoadingProvider");import{enUS as rt}from"date-fns/locale";var rn={label:"English",value:"en",flag:"\uD83C\uDDFA\uD83C\uDDF8",adapterLocale:rt,icon:"flagpack:gb-nir",numberFormat:{code:"en-US",currency:"USD"},timezone:"America/New_York"};import{createContext as ro}from"react";var ra=ro(void 0);import{NextIntlClientProvider as ri}from"next-intl";import rl from"react";import{useTranslations as rs}from"next-intl";import{use as ru}from"react";function rc(){var e=ru(ra);if(!e)throw new Error("useNextIntl must be used within a NextIntlProvider");return e}M(rc,"useNextIntl");var rE=rs;function rf(e){var r=M(function(r){var t;var n;var o=rc(),a=o.currentLanguage,i=r.messages,l=r.languages,s="en",u=i[(a===null||a===void 0?void 0:a.value)||s],c=(n=(t=l.find(function(e){return e.value===(a===null||a===void 0?void 0:a.value)}))===null||t===void 0?void 0:t.timezone)!==null&&n!==void 0?n:rn.timezone;return i?rl.createElement(ri,{locale:(a===null||a===void 0?void 0:a.value)||s,messages:u||null,timeZone:c},rl.createElement(e,r)):(eg.warn("Missing messages for language: ".concat((a===null||a===void 0?void 0:a.value)||s)),null)},"PageWithI18n");return r.displayName="withNextIntl(".concat(e.displayName||e.name||"Component",")"),r}M(rf,"withNextIntl");import rm,{useMemo as rd}from"react";import{useCallback as rp,useEffect as rv,useState as rS}from"react";var r_={Date:{is:M(function(e){return m(e,Date)},"is"),serialize:M(function(e){return{__type:"Date",value:e.toISOString()}},"serialize"),deserialize:M(function(e){return new Date(e)},"deserialize")},Map:{is:M(function(e){return m(e,Map)},"is"),serialize:M(function(e){return{__type:"Map",value:Array.from(e.entries())}},"serialize"),deserialize:M(function(e){return new Map(e)},"deserialize")},Set:{is:M(function(e){return m(e,Set)},"is"),serialize:M(function(e){return{__type:"Set",value:Array.from(e)}},"serialize"),deserialize:M(function(e){return new Set(e)},"deserialize")},RegExp:{is:M(function(e){return m(e,RegExp)},"is"),serialize:M(function(e){return{__type:"RegExp",value:{source:e.source,flags:e.flags}}},"serialize"),deserialize:M(function(e){var r=e.source,t=e.flags;return new RegExp(r,t)},"deserialize")},BigInt:{is:M(function(e){return(typeof e==="undefined"?"undefined":C(e))=="bigint"},"is"),serialize:M(function(e){return{__type:"BigInt",value:e.toString()}},"serialize"),deserialize:M(function(e){return BigInt(e)},"deserialize")}},rA={serialize:function e(e){return JSON.stringify(e,function(e,r){var t=true,n=false,o=undefined;try{for(var a=Object.keys(r_)[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var l=i.value;var s=r_[l];if(s.is(r))return s.serialize(r)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r})},deserialize:function e(e){return JSON.parse(e,function(e,r){if(r&&(typeof r==="undefined"?"undefined":C(r))=="object"&&"__type"in r&&typeof r.__type=="string"){var t=r.__type,n=r_[t];if(n)return n.deserialize(r.value)}return r})}};import rO from"localforage";var rh={get:function e(e){return a(function(){var r;return R(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,rO.getItem(e)];case 1:return[2,t.sent()];case 2:r=t.sent();return[2,eb(r,{returnValue:null})];case 3:return[2]}})})()},set:function e(e,r){return a(function(){var t;return R(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,rO.setItem(e,r)];case 1:n.sent();return[3,3];case 2:t=n.sent();eb(t);return[3,3];case 3:return[2]}})})()},remove:function e(e){return a(function(){var r;return R(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,rO.removeItem(e)];case 1:t.sent();return[3,3];case 2:r=t.sent();eb(r);return[3,3];case 3:return[2]}})})()},keys:function e(){return a(function(){var e,r;return R(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,rO.keys()];case 1:return[2,(e=t.sent())!==null&&e!==void 0?e:[]];case 2:r=t.sent();return[2,eb(r,{returnValue:[]})];case 3:return[2]}})})()}};function ry(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rA;var n=g(rS(r),2),o=n[0],i=n[1],l=g(rS(!1),2),s=l[0],u=l[1];rv(function(){var n=!0;return M(function(){return a(function(){var o,a,l,s;return R(this,function(c){switch(c.label){case 0:c.trys.push([0,6,7,8]);return[4,rh.get(e)];case 1:o=c.sent();if(!n)return[3,5];if(!(o!==null))return[3,2];a=t.deserialize(o);i(a);return[3,5];case 2:if(!(r!==void 0))return[3,4];l=t.serialize(r);return[4,rh.set(e,l)];case 3:c.sent(),i(r);return[3,5];case 4:i(void 0);c.label=5;case 5:return[3,8];case 6:s=c.sent();eb(s),n&&i(r);return[3,8];case 7:n&&u(!0);return[7];case 8:return[2]}})})()},"loadValue")(),function(){n=!1,u(!1)}},[e,r,t]),rv(function(){if(!s)return;M(function(){return a(function(){var r,n;return R(this,function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);if(!(o!==void 0))return[3,2];r=t.serialize(o);return[4,rh.set(e,r)];case 1:a.sent();a.label=2;case 2:return[3,4];case 3:n=a.sent();eb(n);return[3,4];case 4:return[2]}})})()},"saveValue")()},[o,e,t,s]);var c=rp(function(e){i(function(r){return typeof e=="function"?e(r):e})},[]),E=rp(function(){return a(function(){var r;return R(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,rh.remove(e)];case 1:t.sent(),i(void 0);return[3,3];case 2:r=t.sent();eb(r);return[3,3];case 3:return[2]}})})()},[e]);return{value:o,set:c,remove:E}}M(ry,"useStorage");function rg(e){var r=e.children;return rm.createElement(rm.Fragment,null,r)}M(rg,"LanguageWrapperBase");var rb=rf(rg);function rC(e){var r=e.children,t=e.languages,n=e.messages;var o=ry("lang",t[0]),a=o.value,i=o.set,l=rd(function(){return{languages:t,currentLanguage:a!==null&&a!==void 0?a:rn,setCurrentLanguage:i}},[t,i,a]);return rm.createElement(ra,{value:l},rm.createElement(rb,{languages:t,messages:n},r))}M(rC,"NextIntlProvider");export{en as ApolloClientContext,eo as ApolloClientProvider,z as ApolloErrorComponent,F as ApolloErrorContext,Z as ApolloErrorProvider,eM as ApolloProvider,eC as GRAPHQL_URI_DEFAULT,e2 as Loading,e3 as LoadingContext,rr as LoadingProvider,rn as NEXT_INTL_DEFAULT_LANGUAGE,ra as NextIntlContext,rC as NextIntlProvider,ee as Toaster,eb as catchError,eD as getClient,eX as initI18next,eg as log,X as setGlobalApolloErrorCallback,K as showGlobalApolloError,rh as storage,$ as toast,ew as useApolloClient,H as useApolloError,eG as useBackgroundQuery,eP as useFragment,ek as useLazyQuery,eU as useLoadableQuery,e5 as useLoading,ex as useMutation,rc as useNextIntl,eQ as useQuery,eF as useQueryRefHandlers,ej as useReactiveVar,ez as useReadQuery,ry as useStorage,eq as useSubscription,eH as useSuspenseFragment,eB as useSuspenseQuery,eY as useTranslateI18next,rE as useTranslateNextIntl,rf as withNextIntl};
@@ -0,0 +1 @@
1
+ "use strict";function e(e,r,t,n,o,u,c){try{var a=e[u](c);var i=a.value}catch(e){t(e);return}if(a.done){r(i)}else{Promise.resolve(i).then(n,o)}}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,u){var c=r.apply(t,n);function a(r){e(c,o,u,a,i,"next",r)}function i(r){e(c,o,u,a,i,"throw",r)}a(undefined)})}}function t(e,r){if(e==null)return{};var t=n(e,r);var o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(u=0;u<c.length;u++){o=c[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;t[o]=e[o]}}return t}function n(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function o(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function u(e,r){var t,n,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(r){return i([e,r])}}function i(a){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(u=0)),u)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:u.label++;return{value:a[1],done:false};case 5:u.label++;n=a[1];a=[0];continue;case 7:a=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(a[0]===6&&u.label<o[1]){u.label=o[1];o=a;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(a);break}if(o[2])u.ops.pop();u.trys.pop();continue}a=r.call(e,u)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var c=Object.create;var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var b=function(e,r){return a(e,"name",{value:r,configurable:!0})};var v=function(e,r){for(var t in r)a(e,t,{get:r[t],enumerable:!0})},y=function(e,r,t,n){var u=true,c=false,f=undefined;if(r&&(typeof r==="undefined"?"undefined":o(r))=="object"||typeof r=="function")try{var b=function(){var o=y.value;!s.call(e,o)&&o!==t&&a(e,o,{get:function(){return r[o]},enumerable:!(n=i(r,o))||n.enumerable})};for(var v=l(r)[Symbol.iterator](),y;!(u=(y=v.next()).done);u=true)b()}catch(e){c=true;f=e}finally{try{if(!u&&v.return!=null){v.return()}}finally{if(c){throw f}}}return e};var p=function(e,r,t){return t=e!=null?c(f(e)):{},y(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)},d=function(e){return y(a({},"__esModule",{value:!0}),e)};var h={};v(h,{Userback:function(){return w}});module.exports=d(h);var m=p(require("@userback/widget"),1),O=require("react");function w(e){var n=e.token,o=e.options;return(0,O.useEffect)(function(){if(!n)return;var e;return b(function(){return r(function(){var r,c;return u(this,function(u){switch(u.label){case 0:r=o.hide,c=t(o,["hide"]);return[4,(0,m.default)(n,c)];case 1:u.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[n,o]),null}b(w,"Userback");0&&(module.exports={Userback:Userback});
@@ -0,0 +1,3 @@
1
+ export { Userback } from '../../_tsup-dts-rollup.cjs';
2
+ export { I_UserBackOptions } from '../../_tsup-dts-rollup.cjs';
3
+ export { I_UserBackProps } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,3 @@
1
+ export { Userback } from '../../_tsup-dts-rollup.js';
2
+ export { I_UserBackOptions } from '../../_tsup-dts-rollup.js';
3
+ export { I_UserBackProps } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1 @@
1
+ function e(e,r,n,t,o,u,i){try{var c=e[u](i);var a=c.value}catch(e){n(e);return}if(c.done){r(a)}else{Promise.resolve(a).then(t,o)}}function r(r){return function(){var n=this,t=arguments;return new Promise(function(o,u){var i=r.apply(n,t);function c(r){e(i,o,u,c,a,"next",r)}function a(r){e(i,o,u,c,a,"throw",r)}c(undefined)})}}function n(e,r){if(e==null)return{};var n=t(e,r);var o,u;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(u=0;u<i.length;u++){o=i[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}function t(e,r){if(e==null)return{};var n={};var t=Object.keys(e);var o,u;for(u=0;u<t.length;u++){o=t[u];if(r.indexOf(o)>=0)continue;n[o]=e[o]}return n}function o(e,r){var n,t,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(r){return a([e,r])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(u=0)),u)try{if(n=1,t&&(o=c[0]&2?t["return"]:c[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;if(t=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:u.label++;return{value:c[1],done:false};case 5:u.label++;t=c[1];c=[0];continue;case 7:c=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(c[0]===6&&u.label<o[1]){u.label=o[1];o=c;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(c);break}if(o[2])u.ops.pop();u.trys.pop();continue}c=r.call(e,u)}catch(e){c=[6,e];t=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var u=Object.defineProperty;var i=function(e,r){return u(e,"name",{value:r,configurable:!0})};import c from"@userback/widget";import{useEffect as a}from"react";function l(e){var t=e.token,u=e.options;return a(function(){if(!t)return;var e;return i(function(){return r(function(){var r,i;return o(this,function(o){switch(o.label){case 0:r=u.hide,i=n(u,["hide"]);return[4,c(t,i)];case 1:o.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[t,u]),null}i(l,"Userback");export{l as Userback};
@@ -0,0 +1 @@
1
+ "use strict";function e(e,r,t,n,o,u,c){try{var a=e[u](c);var i=a.value}catch(e){t(e);return}if(a.done){r(i)}else{Promise.resolve(i).then(n,o)}}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,u){var c=r.apply(t,n);function a(r){e(c,o,u,a,i,"next",r)}function i(r){e(c,o,u,a,i,"throw",r)}a(undefined)})}}function t(e,r){if(e==null)return{};var t=n(e,r);var o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(u=0;u<c.length;u++){o=c[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;t[o]=e[o]}}return t}function n(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function o(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function u(e,r){var t,n,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(r){return i([e,r])}}function i(a){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(u=0)),u)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:u.label++;return{value:a[1],done:false};case 5:u.label++;n=a[1];a=[0];continue;case 7:a=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(a[0]===6&&u.label<o[1]){u.label=o[1];o=a;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(a);break}if(o[2])u.ops.pop();u.trys.pop();continue}a=r.call(e,u)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var c=Object.create;var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var b=function(e,r){return a(e,"name",{value:r,configurable:!0})};var v=function(e,r){for(var t in r)a(e,t,{get:r[t],enumerable:!0})},y=function(e,r,t,n){var u=true,c=false,f=undefined;if(r&&(typeof r==="undefined"?"undefined":o(r))=="object"||typeof r=="function")try{var b=function(){var o=y.value;!s.call(e,o)&&o!==t&&a(e,o,{get:function(){return r[o]},enumerable:!(n=i(r,o))||n.enumerable})};for(var v=l(r)[Symbol.iterator](),y;!(u=(y=v.next()).done);u=true)b()}catch(e){c=true;f=e}finally{try{if(!u&&v.return!=null){v.return()}}finally{if(c){throw f}}}return e};var p=function(e,r,t){return t=e!=null?c(f(e)):{},y(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)},d=function(e){return y(a({},"__esModule",{value:!0}),e)};var h={};v(h,{Userback:function(){return w}});module.exports=d(h);var m=p(require("@userback/widget"),1),O=require("react");function w(e){var n=e.token,o=e.options;return(0,O.useEffect)(function(){if(!n)return;var e;return b(function(){return r(function(){var r,c;return u(this,function(u){switch(u.label){case 0:r=o.hide,c=t(o,["hide"]);return[4,(0,m.default)(n,c)];case 1:u.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[n,o]),null}b(w,"Userback");0&&(module.exports={Userback:Userback});
@@ -0,0 +1 @@
1
+ export { Userback_alias_1 as Userback } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1 @@
1
+ export { Userback_alias_1 as Userback } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1 @@
1
+ function e(e,r,n,t,o,u,i){try{var c=e[u](i);var a=c.value}catch(e){n(e);return}if(c.done){r(a)}else{Promise.resolve(a).then(t,o)}}function r(r){return function(){var n=this,t=arguments;return new Promise(function(o,u){var i=r.apply(n,t);function c(r){e(i,o,u,c,a,"next",r)}function a(r){e(i,o,u,c,a,"throw",r)}c(undefined)})}}function n(e,r){if(e==null)return{};var n=t(e,r);var o,u;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(u=0;u<i.length;u++){o=i[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}function t(e,r){if(e==null)return{};var n={};var t=Object.keys(e);var o,u;for(u=0;u<t.length;u++){o=t[u];if(r.indexOf(o)>=0)continue;n[o]=e[o]}return n}function o(e,r){var n,t,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(r){return a([e,r])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(u=0)),u)try{if(n=1,t&&(o=c[0]&2?t["return"]:c[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;if(t=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:u.label++;return{value:c[1],done:false};case 5:u.label++;t=c[1];c=[0];continue;case 7:c=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(c[0]===6&&u.label<o[1]){u.label=o[1];o=c;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(c);break}if(o[2])u.ops.pop();u.trys.pop();continue}c=r.call(e,u)}catch(e){c=[6,e];t=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var u=Object.defineProperty;var i=function(e,r){return u(e,"name",{value:r,configurable:!0})};import c from"@userback/widget";import{useEffect as a}from"react";function l(e){var t=e.token,u=e.options;return a(function(){if(!t)return;var e;return i(function(){return r(function(){var r,i;return o(this,function(o){switch(o.label){case 0:r=u.hide,i=n(u,["hide"]);return[4,c(t,i)];case 1:o.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[t,u]),null}i(l,"Userback");export{l as Userback};
@@ -0,0 +1 @@
1
+ "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
@@ -0,0 +1,2 @@
1
+ export { I_UserBackOptions_alias_1 as I_UserBackOptions } from '../../_tsup-dts-rollup.cjs';
2
+ export { I_UserBackProps_alias_1 as I_UserBackProps } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { I_UserBackOptions_alias_1 as I_UserBackOptions } from '../../_tsup-dts-rollup.js';
2
+ export { I_UserBackProps_alias_1 as I_UserBackProps } from '../../_tsup-dts-rollup.js';
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyberskill/shared",
3
3
  "type": "module",
4
- "version": "1.192.0",
4
+ "version": "1.194.0",
5
5
  "description": "CyberSkill Shared",
6
6
  "author": "Stephen Cheng",
7
7
  "license": "MIT",
@@ -169,6 +169,11 @@
169
169
  "import": "./dist/react/toast/index.js",
170
170
  "require": "./dist/react/toast/index.cjs"
171
171
  },
172
+ "./react/userback": {
173
+ "types": "./dist/react/userback/index.d.ts",
174
+ "import": "./dist/react/userback/index.js",
175
+ "require": "./dist/react/userback/index.cjs"
176
+ },
172
177
  "./react/index.css": {
173
178
  "import": "./dist/react/index.css",
174
179
  "require": "./dist/react/index.css"
@@ -229,13 +234,15 @@
229
234
  "dependencies": {
230
235
  "@antfu/eslint-config": "4.16.1",
231
236
  "@apollo/client": "3.13.8",
237
+ "@apollo/client-integration-nextjs": "0.12.2",
232
238
  "@apollo/server": "4.12.2",
233
239
  "@dotenvx/dotenvx": "1.45.1",
234
240
  "@eddeee888/gcg-typescript-resolver-files": "0.12.1",
235
241
  "@graphql-codegen/cli": "5.0.7",
236
- "@graphql-codegen/client-preset": "4.8.2",
242
+ "@graphql-codegen/client-preset": "4.8.3",
237
243
  "@nestjs/common": "11.1.3",
238
244
  "@nestjs/core": "11.1.3",
245
+ "@userback/widget": "0.3.11",
239
246
  "@vitejs/plugin-react-swc": "3.10.2",
240
247
  "body-parser": "2.2.0",
241
248
  "chalk": "5.4.1",
@@ -259,10 +266,10 @@
259
266
  "localforage": "1.10.0",
260
267
  "migrate-mongo": "12.1.3",
261
268
  "mongodb": "6.17.0",
262
- "mongoose": "8.16.0",
269
+ "mongoose": "8.16.1",
263
270
  "mongoose-aggregate-paginate-v2": "1.1.4",
264
271
  "mongoose-paginate-v2": "1.9.1",
265
- "next-intl": "4.3.0",
272
+ "next-intl": "4.3.1",
266
273
  "node-fetch": "3.3.2",
267
274
  "node-persist": "4.0.4",
268
275
  "qs": "6.14.0",
@@ -275,7 +282,7 @@
275
282
  "unorm": "1.6.0",
276
283
  "uuid": "11.1.0",
277
284
  "vite": "7.0.0",
278
- "ws": "8.18.2",
285
+ "ws": "8.18.3",
279
286
  "yargs": "18.0.0"
280
287
  },
281
288
  "devDependencies": {
@@ -297,7 +304,7 @@
297
304
  "@types/express-useragent": "1.0.5",
298
305
  "@types/fs-extra": "11.0.4",
299
306
  "@types/migrate-mongo": "10.0.5",
300
- "@types/node": "24.0.3",
307
+ "@types/node": "24.0.7",
301
308
  "@types/node-persist": "3.1.8",
302
309
  "@types/react": "19.1.8",
303
310
  "@types/react-dom": "19.1.6",
@@ -307,7 +314,7 @@
307
314
  "@types/yargs": "17.0.33",
308
315
  "@vitest/browser": "3.2.4",
309
316
  "esbuild-sass-plugin": "3.3.1",
310
- "eslint": "9.29.0",
317
+ "eslint": "9.30.0",
311
318
  "eslint-config-next": "15.3.4",
312
319
  "eslint-plugin-format": "1.0.1",
313
320
  "eslint-plugin-react-hooks": "5.2.0",