@obb871001/api-integration-sdk 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -7
- package/dist/index.js +600 -256
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@tanstack/react-query");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@tanstack/react-query");const W=require("react"),cr=require("axios"),Z=W.createContext(null),dr=()=>{const E=W.useContext(Z);if(!E)throw new Error("useApiContext must be used within ApiProvider");return E};var q={exports:{}},I={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Oe;function vr(){if(Oe)return I;Oe=1;var E=W,b=Symbol.for("react.element"),C=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,O=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function m(p,u,R){var h,g={},P=null,Y=null;R!==void 0&&(P=""+R),u.key!==void 0&&(P=""+u.key),u.ref!==void 0&&(Y=u.ref);for(h in u)_.call(u,h)&&!x.hasOwnProperty(h)&&(g[h]=u[h]);if(p&&p.defaultProps)for(h in u=p.defaultProps,u)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:b,type:p,key:P,ref:Y,props:g,_owner:O.current}}return I.Fragment=C,I.jsx=m,I.jsxs=m,I}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Pe;function pr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&(function(){var E=W,b=Symbol.for("react.element"),C=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),Q=Symbol.iterator,we="@@iterator";function xe(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[we];return typeof r=="function"?r:null}var j=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var ke=!1,Ae=!1,De=!1,Fe=!1,Ie=!1,ee;ee=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===x||Ie||e===O||e===R||e===h||Fe||e===Y||ke||Ae||De||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===g||e.$$typeof===m||e.$$typeof===p||e.$$typeof===u||e.$$typeof===ee||e.getModuleId!==void 0))}function We(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function re(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case C:return"Portal";case x:return"Profiler";case O:return"StrictMode";case R:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return re(r)+".Consumer";case m:var t=e;return re(t._context)+".Provider";case u:return We(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case P:{var o=e,s=o._payload,i=o._init;try{return T(i(s))}catch{return null}}}return null}var S=Object.assign,D=0,te,ne,ae,ie,oe,ue,se;function le(){}le.__reactDisabledLog=!0;function Ye(){{if(D===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Le(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:ie}),group:S({},e,{value:oe}),groupCollapsed:S({},e,{value:ue}),groupEnd:S({},e,{value:se})})}D<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=j.ReactCurrentDispatcher,J;function L(e,r,t){{if(J===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
|
|
18
|
+
`+J+e}}var B=!1,M;{var Me=typeof WeakMap=="function"?WeakMap:Map;M=new Me}function fe(e,r){if(!e||B)return"";{var t=M.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=N.current,N.current=null,Ye();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
|
|
19
|
+
`),d=n.stack.split(`
|
|
20
|
+
`),l=a.length-1,f=d.length-1;l>=1&&f>=0&&a[l]!==d[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==d[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==d[f]){var y=`
|
|
21
|
+
`+a[l].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,y),y}while(l>=1&&f>=0);break}}}finally{B=!1,N.current=s,Le(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",w=A?L(A):"";return typeof e=="function"&&M.set(e,w),w}function Ue(e,r,t){return fe(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case R:return L("Suspense");case h:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Ue(e.render);case g:return U(e.type,r,t);case P:{var n=e,o=n._payload,s=n._init;try{return U(s(o),r,t)}catch{}}}return""}var F=Object.prototype.hasOwnProperty,ce={},de=j.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function qe(e,r,t,n,o){{var s=Function.call.bind(F);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(V(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),V(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,V(o),c("Failed %s type: %s",t,a.message),V(null))}}}var Ne=Array.isArray;function K(e){return Ne(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Be(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Be(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),ve(e)}var he=j.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ye,be;function ze(e){if(F.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(F.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){typeof e.ref=="string"&&he.current}function He(e,r){{var t=function(){ye||(ye=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){be||(be=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Qe=function(e,r,t,n,o,s,i){var a={$$typeof:b,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,o){{var s,i={},a=null,d=null;t!==void 0&&(pe(t),a=""+t),Ge(r)&&(pe(r.key),a=""+r.key),ze(r)&&(d=r.ref,Xe(r,o));for(s in r)F.call(r,s)&&!Ke.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&He(i,f),d&&Ze(i,f)}return Qe(e,a,d,o,n,he.current,i)}}var z=j.ReactCurrentOwner,Ee=j.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var G;G=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function Re(){{if(z.current){var e=T(z.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function rr(e){return""}var ge={};function tr(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(ge[t])return;ge[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),k(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),k(null)}}function me(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&_e(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=xe(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)X(i.value)&&_e(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=T(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=T(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}var Te={};function Ce(e,r,t,n,o,s){{var i=$e(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=rr();d?a+=d:a+=Re();var l;e===null?l="null":K(e)?l="array":e!==void 0&&e.$$typeof===b?(l="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var f=er(e,r,t,o,s);if(f==null)return f;if(i){var y=r.children;if(y!==void 0)if(n)if(K(y)){for(var A=0;A<y.length;A++)me(y[A],e);Object.freeze&&Object.freeze(y)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else me(y,e)}if(F.call(r,"key")){var w=T(e),v=Object.keys(r).filter(function(fr){return fr!=="key"}),H=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[w+H]){var lr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
18
26
|
let props = %s;
|
|
19
27
|
<%s {...props} />
|
|
20
28
|
React keys must be passed directly to JSX without using spread:
|
|
21
29
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,H,w,lr,w),Te[w+H]=!0}}return e===_?ar(f):nr(f),f}}function ir(e,r,t){return Ce(e,r,t,!0)}function or(e,r,t){return Ce(e,r,t,!1)}var ur=or,sr=ir;$.Fragment=_,$.jsx=ur,$.jsxs=sr})()),$}var Se;function hr(){return Se||(Se=1,process.env.NODE_ENV==="production"?q.exports=vr():q.exports=pr()),q.exports}var yr=hr();function br({baseURL:E,getToken:b,timeoutMs:C=15e3,axiosInstance:_,currency:O,lng:x,onError:m}={}){const p=_??cr.create({baseURL:E,timeout:C,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async u=>{if(b){const R=await b();R&&(u.headers=u.headers||{},u.headers.Authorization=`Bearer ${R}`)}return u}),p.interceptors.request.use(u=>{u.headers.Currency=O,u.headers["currency-code"]=O,u.headers.lang=x}),p.interceptors.response.use(u=>u,u=>m?m(u,{instance:p}):Promise.reject(u)),p}function Er({children:E,...b}){const C=W.useMemo(()=>br(b),[b]);return yr.jsx(Z.Provider,{value:{client:C},children:E})}exports.ApiCtx=Z;exports.ApiProvider=Er;exports.useApiContext=dr;
|
package/dist/index.js
CHANGED
|
@@ -1,330 +1,674 @@
|
|
|
1
1
|
import "@tanstack/react-query";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
2
|
+
import Pe, { createContext as cr, useContext as dr, useMemo as vr } from "react";
|
|
3
|
+
import pr from "axios";
|
|
4
|
+
const we = cr(null), Tr = () => {
|
|
5
|
+
const E = dr(we);
|
|
6
|
+
if (!E)
|
|
7
7
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
8
|
-
return
|
|
9
|
-
}, _e = () => U(P) || {
|
|
10
|
-
recentlyCreatedOwnerStacks: []
|
|
11
|
-
// 其他預設屬性...
|
|
8
|
+
return E;
|
|
12
9
|
};
|
|
13
|
-
var
|
|
10
|
+
var V = { exports: {} }, I = {};
|
|
14
11
|
/**
|
|
15
12
|
* @license React
|
|
16
|
-
* react-jsx-runtime.production.js
|
|
13
|
+
* react-jsx-runtime.production.min.js
|
|
17
14
|
*
|
|
18
|
-
* Copyright (c)
|
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
16
|
*
|
|
20
17
|
* This source code is licensed under the MIT license found in the
|
|
21
18
|
* LICENSE file in the root directory of this source tree.
|
|
22
19
|
*/
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} else c = u;
|
|
35
|
-
return u = c.ref, {
|
|
36
|
-
$$typeof: o,
|
|
37
|
-
type: d,
|
|
38
|
-
key: m,
|
|
39
|
-
ref: u !== void 0 ? u : null,
|
|
40
|
-
props: c
|
|
41
|
-
};
|
|
20
|
+
var Te;
|
|
21
|
+
function hr() {
|
|
22
|
+
if (Te) return I;
|
|
23
|
+
Te = 1;
|
|
24
|
+
var E = Pe, b = Symbol.for("react.element"), C = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, O = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function m(p, u, R) {
|
|
26
|
+
var h, _ = {}, P = null, W = null;
|
|
27
|
+
R !== void 0 && (P = "" + R), u.key !== void 0 && (P = "" + u.key), u.ref !== void 0 && (W = u.ref);
|
|
28
|
+
for (h in u) g.call(u, h) && !S.hasOwnProperty(h) && (_[h] = u[h]);
|
|
29
|
+
if (p && p.defaultProps) for (h in u = p.defaultProps, u) _[h] === void 0 && (_[h] = u[h]);
|
|
30
|
+
return { $$typeof: b, type: p, key: P, ref: W, props: _, _owner: O.current };
|
|
42
31
|
}
|
|
43
|
-
return
|
|
32
|
+
return I.Fragment = C, I.jsx = m, I.jsxs = m, I;
|
|
44
33
|
}
|
|
45
|
-
var
|
|
34
|
+
var $ = {};
|
|
46
35
|
/**
|
|
47
36
|
* @license React
|
|
48
37
|
* react-jsx-runtime.development.js
|
|
49
38
|
*
|
|
50
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
51
40
|
*
|
|
52
41
|
* This source code is licensed under the MIT license found in the
|
|
53
42
|
* LICENSE file in the root directory of this source tree.
|
|
54
43
|
*/
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (typeof e
|
|
61
|
-
return
|
|
62
|
-
|
|
44
|
+
var Ce;
|
|
45
|
+
function yr() {
|
|
46
|
+
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
var E = Pe, b = Symbol.for("react.element"), C = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), p = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), H = Symbol.iterator, xe = "@@iterator";
|
|
48
|
+
function Se(e) {
|
|
49
|
+
if (e === null || typeof e != "object")
|
|
50
|
+
return null;
|
|
51
|
+
var r = H && e[H] || e[xe];
|
|
52
|
+
return typeof r == "function" ? r : null;
|
|
53
|
+
}
|
|
54
|
+
var j = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function c(e) {
|
|
56
|
+
{
|
|
57
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
58
|
+
t[n - 1] = arguments[n];
|
|
59
|
+
je("error", e, t);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function je(e, r, t) {
|
|
63
|
+
{
|
|
64
|
+
var n = j.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
65
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
66
|
+
var s = t.map(function(i) {
|
|
67
|
+
return String(i);
|
|
68
|
+
});
|
|
69
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
var ke = !1, Ae = !1, De = !1, Fe = !1, Ie = !1, Z;
|
|
73
|
+
Z = Symbol.for("react.module.reference");
|
|
74
|
+
function $e(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === S || Ie || e === O || e === R || e === h || Fe || e === W || ke || Ae || De || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === _ || e.$$typeof === m || e.$$typeof === p || e.$$typeof === u || // This needs to include all possible module reference object
|
|
76
|
+
// types supported by any Flight configuration anywhere since
|
|
77
|
+
// we don't know which Flight build this will end up being used
|
|
78
|
+
// with.
|
|
79
|
+
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
80
|
+
}
|
|
81
|
+
function We(e, r, t) {
|
|
82
|
+
var n = e.displayName;
|
|
83
|
+
if (n)
|
|
84
|
+
return n;
|
|
85
|
+
var o = r.displayName || r.name || "";
|
|
86
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
87
|
+
}
|
|
88
|
+
function Q(e) {
|
|
89
|
+
return e.displayName || "Context";
|
|
90
|
+
}
|
|
91
|
+
function T(e) {
|
|
92
|
+
if (e == null)
|
|
93
|
+
return null;
|
|
94
|
+
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
|
+
return e.displayName || e.name || null;
|
|
96
|
+
if (typeof e == "string")
|
|
97
|
+
return e;
|
|
63
98
|
switch (e) {
|
|
64
|
-
case
|
|
99
|
+
case g:
|
|
65
100
|
return "Fragment";
|
|
66
|
-
case
|
|
101
|
+
case C:
|
|
102
|
+
return "Portal";
|
|
103
|
+
case S:
|
|
67
104
|
return "Profiler";
|
|
68
|
-
case
|
|
105
|
+
case O:
|
|
69
106
|
return "StrictMode";
|
|
70
|
-
case
|
|
107
|
+
case R:
|
|
71
108
|
return "Suspense";
|
|
72
|
-
case
|
|
109
|
+
case h:
|
|
73
110
|
return "SuspenseList";
|
|
74
|
-
case Z:
|
|
75
|
-
return "Activity";
|
|
76
111
|
}
|
|
77
112
|
if (typeof e == "object")
|
|
78
|
-
switch (typeof
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
case
|
|
86
|
-
return (e.
|
|
87
|
-
case
|
|
88
|
-
var
|
|
89
|
-
return
|
|
90
|
-
case
|
|
91
|
-
|
|
92
|
-
case A:
|
|
93
|
-
r = e._payload, e = e._init;
|
|
113
|
+
switch (e.$$typeof) {
|
|
114
|
+
case p:
|
|
115
|
+
var r = e;
|
|
116
|
+
return Q(r) + ".Consumer";
|
|
117
|
+
case m:
|
|
118
|
+
var t = e;
|
|
119
|
+
return Q(t._context) + ".Provider";
|
|
120
|
+
case u:
|
|
121
|
+
return We(e, e.render, "ForwardRef");
|
|
122
|
+
case _:
|
|
123
|
+
var n = e.displayName || null;
|
|
124
|
+
return n !== null ? n : T(e.type) || "Memo";
|
|
125
|
+
case P: {
|
|
126
|
+
var o = e, s = o._payload, i = o._init;
|
|
94
127
|
try {
|
|
95
|
-
return
|
|
128
|
+
return T(i(s));
|
|
96
129
|
} catch {
|
|
130
|
+
return null;
|
|
97
131
|
}
|
|
132
|
+
}
|
|
98
133
|
}
|
|
99
134
|
return null;
|
|
100
135
|
}
|
|
101
|
-
|
|
102
|
-
|
|
136
|
+
var w = Object.assign, D = 0, ee, re, te, ne, ae, ie, oe;
|
|
137
|
+
function ue() {
|
|
138
|
+
}
|
|
139
|
+
ue.__reactDisabledLog = !0;
|
|
140
|
+
function Ye() {
|
|
141
|
+
{
|
|
142
|
+
if (D === 0) {
|
|
143
|
+
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
|
|
144
|
+
var e = {
|
|
145
|
+
configurable: !0,
|
|
146
|
+
enumerable: !0,
|
|
147
|
+
value: ue,
|
|
148
|
+
writable: !0
|
|
149
|
+
};
|
|
150
|
+
Object.defineProperties(console, {
|
|
151
|
+
info: e,
|
|
152
|
+
log: e,
|
|
153
|
+
warn: e,
|
|
154
|
+
error: e,
|
|
155
|
+
group: e,
|
|
156
|
+
groupCollapsed: e,
|
|
157
|
+
groupEnd: e
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
D++;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function Le() {
|
|
164
|
+
{
|
|
165
|
+
if (D--, D === 0) {
|
|
166
|
+
var e = {
|
|
167
|
+
configurable: !0,
|
|
168
|
+
enumerable: !0,
|
|
169
|
+
writable: !0
|
|
170
|
+
};
|
|
171
|
+
Object.defineProperties(console, {
|
|
172
|
+
log: w({}, e, {
|
|
173
|
+
value: ee
|
|
174
|
+
}),
|
|
175
|
+
info: w({}, e, {
|
|
176
|
+
value: re
|
|
177
|
+
}),
|
|
178
|
+
warn: w({}, e, {
|
|
179
|
+
value: te
|
|
180
|
+
}),
|
|
181
|
+
error: w({}, e, {
|
|
182
|
+
value: ne
|
|
183
|
+
}),
|
|
184
|
+
group: w({}, e, {
|
|
185
|
+
value: ae
|
|
186
|
+
}),
|
|
187
|
+
groupCollapsed: w({}, e, {
|
|
188
|
+
value: ie
|
|
189
|
+
}),
|
|
190
|
+
groupEnd: w({}, e, {
|
|
191
|
+
value: oe
|
|
192
|
+
})
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
D < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
var N = j.ReactCurrentDispatcher, q;
|
|
199
|
+
function Y(e, r, t) {
|
|
200
|
+
{
|
|
201
|
+
if (q === void 0)
|
|
202
|
+
try {
|
|
203
|
+
throw Error();
|
|
204
|
+
} catch (o) {
|
|
205
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
q = n && n[1] || "";
|
|
207
|
+
}
|
|
208
|
+
return `
|
|
209
|
+
` + q + e;
|
|
210
|
+
}
|
|
103
211
|
}
|
|
104
|
-
|
|
212
|
+
var J = !1, L;
|
|
213
|
+
{
|
|
214
|
+
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
L = new Me();
|
|
216
|
+
}
|
|
217
|
+
function se(e, r) {
|
|
218
|
+
if (!e || J)
|
|
219
|
+
return "";
|
|
220
|
+
{
|
|
221
|
+
var t = L.get(e);
|
|
222
|
+
if (t !== void 0)
|
|
223
|
+
return t;
|
|
224
|
+
}
|
|
225
|
+
var n;
|
|
226
|
+
J = !0;
|
|
227
|
+
var o = Error.prepareStackTrace;
|
|
228
|
+
Error.prepareStackTrace = void 0;
|
|
229
|
+
var s;
|
|
230
|
+
s = N.current, N.current = null, Ye();
|
|
105
231
|
try {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
232
|
+
if (r) {
|
|
233
|
+
var i = function() {
|
|
234
|
+
throw Error();
|
|
235
|
+
};
|
|
236
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
237
|
+
set: function() {
|
|
238
|
+
throw Error();
|
|
239
|
+
}
|
|
240
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
|
+
try {
|
|
242
|
+
Reflect.construct(i, []);
|
|
243
|
+
} catch (v) {
|
|
244
|
+
n = v;
|
|
245
|
+
}
|
|
246
|
+
Reflect.construct(e, [], i);
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
i.call();
|
|
250
|
+
} catch (v) {
|
|
251
|
+
n = v;
|
|
252
|
+
}
|
|
253
|
+
e.call(i.prototype);
|
|
254
|
+
}
|
|
255
|
+
} else {
|
|
256
|
+
try {
|
|
257
|
+
throw Error();
|
|
258
|
+
} catch (v) {
|
|
259
|
+
n = v;
|
|
260
|
+
}
|
|
261
|
+
e();
|
|
262
|
+
}
|
|
263
|
+
} catch (v) {
|
|
264
|
+
if (v && n && typeof v.stack == "string") {
|
|
265
|
+
for (var a = v.stack.split(`
|
|
266
|
+
`), d = n.stack.split(`
|
|
267
|
+
`), l = a.length - 1, f = d.length - 1; l >= 1 && f >= 0 && a[l] !== d[f]; )
|
|
268
|
+
f--;
|
|
269
|
+
for (; l >= 1 && f >= 0; l--, f--)
|
|
270
|
+
if (a[l] !== d[f]) {
|
|
271
|
+
if (l !== 1 || f !== 1)
|
|
272
|
+
do
|
|
273
|
+
if (l--, f--, f < 0 || a[l] !== d[f]) {
|
|
274
|
+
var y = `
|
|
275
|
+
` + a[l].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, y), y;
|
|
277
|
+
}
|
|
278
|
+
while (l >= 1 && f >= 0);
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
} finally {
|
|
283
|
+
J = !1, N.current = s, Le(), Error.prepareStackTrace = o;
|
|
110
284
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
285
|
+
var A = e ? e.displayName || e.name : "", x = A ? Y(A) : "";
|
|
286
|
+
return typeof e == "function" && L.set(e, x), x;
|
|
287
|
+
}
|
|
288
|
+
function Ue(e, r, t) {
|
|
289
|
+
return se(e, !1);
|
|
290
|
+
}
|
|
291
|
+
function Ve(e) {
|
|
292
|
+
var r = e.prototype;
|
|
293
|
+
return !!(r && r.isReactComponent);
|
|
294
|
+
}
|
|
295
|
+
function M(e, r, t) {
|
|
296
|
+
if (e == null)
|
|
297
|
+
return "";
|
|
298
|
+
if (typeof e == "function")
|
|
299
|
+
return se(e, Ve(e));
|
|
300
|
+
if (typeof e == "string")
|
|
301
|
+
return Y(e);
|
|
302
|
+
switch (e) {
|
|
303
|
+
case R:
|
|
304
|
+
return Y("Suspense");
|
|
305
|
+
case h:
|
|
306
|
+
return Y("SuspenseList");
|
|
307
|
+
}
|
|
308
|
+
if (typeof e == "object")
|
|
309
|
+
switch (e.$$typeof) {
|
|
310
|
+
case u:
|
|
311
|
+
return Ue(e.render);
|
|
312
|
+
case _:
|
|
313
|
+
return M(e.type, r, t);
|
|
314
|
+
case P: {
|
|
315
|
+
var n = e, o = n._payload, s = n._init;
|
|
316
|
+
try {
|
|
317
|
+
return M(s(o), r, t);
|
|
318
|
+
} catch {
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return "";
|
|
323
|
+
}
|
|
324
|
+
var F = Object.prototype.hasOwnProperty, le = {}, fe = j.ReactDebugCurrentFrame;
|
|
325
|
+
function U(e) {
|
|
326
|
+
if (e) {
|
|
327
|
+
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
328
|
+
fe.setExtraStackFrame(t);
|
|
329
|
+
} else
|
|
330
|
+
fe.setExtraStackFrame(null);
|
|
331
|
+
}
|
|
332
|
+
function Ne(e, r, t, n, o) {
|
|
333
|
+
{
|
|
334
|
+
var s = Function.call.bind(F);
|
|
335
|
+
for (var i in e)
|
|
336
|
+
if (s(e, i)) {
|
|
337
|
+
var a = void 0;
|
|
338
|
+
try {
|
|
339
|
+
if (typeof e[i] != "function") {
|
|
340
|
+
var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw d.name = "Invariant Violation", d;
|
|
342
|
+
}
|
|
343
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
+
} catch (l) {
|
|
345
|
+
a = l;
|
|
346
|
+
}
|
|
347
|
+
a && !(a instanceof Error) && (U(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, U(o), c("Failed %s type: %s", t, a.message), U(null));
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
var qe = Array.isArray;
|
|
352
|
+
function B(e) {
|
|
353
|
+
return qe(e);
|
|
354
|
+
}
|
|
355
|
+
function Je(e) {
|
|
356
|
+
{
|
|
357
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
|
+
return t;
|
|
119
359
|
}
|
|
120
360
|
}
|
|
121
|
-
function
|
|
122
|
-
if (e === k) return "<>";
|
|
123
|
-
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
|
124
|
-
return "<...>";
|
|
361
|
+
function Be(e) {
|
|
125
362
|
try {
|
|
126
|
-
|
|
127
|
-
return r ? "<" + r + ">" : "<...>";
|
|
363
|
+
return ce(e), !1;
|
|
128
364
|
} catch {
|
|
129
|
-
return
|
|
365
|
+
return !0;
|
|
130
366
|
}
|
|
131
367
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
|
|
368
|
+
function ce(e) {
|
|
369
|
+
return "" + e;
|
|
370
|
+
}
|
|
371
|
+
function de(e) {
|
|
372
|
+
if (Be(e))
|
|
373
|
+
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ce(e);
|
|
135
374
|
}
|
|
136
|
-
|
|
137
|
-
|
|
375
|
+
var ve = j.ReactCurrentOwner, Ke = {
|
|
376
|
+
key: !0,
|
|
377
|
+
ref: !0,
|
|
378
|
+
__self: !0,
|
|
379
|
+
__source: !0
|
|
380
|
+
}, pe, he;
|
|
381
|
+
function ze(e) {
|
|
382
|
+
if (F.call(e, "ref")) {
|
|
383
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
|
+
if (r && r.isReactWarning)
|
|
385
|
+
return !1;
|
|
386
|
+
}
|
|
387
|
+
return e.ref !== void 0;
|
|
138
388
|
}
|
|
139
|
-
function
|
|
140
|
-
if (
|
|
389
|
+
function Ge(e) {
|
|
390
|
+
if (F.call(e, "key")) {
|
|
141
391
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
142
|
-
if (r && r.isReactWarning)
|
|
392
|
+
if (r && r.isReactWarning)
|
|
393
|
+
return !1;
|
|
143
394
|
}
|
|
144
395
|
return e.key !== void 0;
|
|
145
396
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
)
|
|
397
|
+
function Xe(e, r) {
|
|
398
|
+
typeof e.ref == "string" && ve.current;
|
|
399
|
+
}
|
|
400
|
+
function He(e, r) {
|
|
401
|
+
{
|
|
402
|
+
var t = function() {
|
|
403
|
+
pe || (pe = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
|
+
};
|
|
405
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: t,
|
|
407
|
+
configurable: !0
|
|
408
|
+
});
|
|
152
409
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
410
|
+
}
|
|
411
|
+
function Ze(e, r) {
|
|
412
|
+
{
|
|
413
|
+
var t = function() {
|
|
414
|
+
he || (he = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
415
|
+
};
|
|
416
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: t,
|
|
418
|
+
configurable: !0
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var Qe = function(e, r, t, n, o, s, i) {
|
|
423
|
+
var a = {
|
|
424
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
+
$$typeof: b,
|
|
426
|
+
// Built-in properties that belong on the element
|
|
168
427
|
type: e,
|
|
169
428
|
key: r,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
configurable: !1,
|
|
177
|
-
enumerable: !1,
|
|
178
|
-
writable: !0,
|
|
179
|
-
value: 0
|
|
180
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
429
|
+
ref: t,
|
|
430
|
+
props: i,
|
|
431
|
+
// Record the component responsible for creating this element.
|
|
432
|
+
_owner: s
|
|
433
|
+
};
|
|
434
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
181
435
|
configurable: !1,
|
|
182
436
|
enumerable: !1,
|
|
183
437
|
writable: !0,
|
|
184
|
-
value:
|
|
185
|
-
}), Object.defineProperty(
|
|
438
|
+
value: !1
|
|
439
|
+
}), Object.defineProperty(a, "_self", {
|
|
186
440
|
configurable: !1,
|
|
187
441
|
enumerable: !1,
|
|
188
|
-
writable: !
|
|
189
|
-
value:
|
|
190
|
-
}), Object.defineProperty(
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: n
|
|
444
|
+
}), Object.defineProperty(a, "_source", {
|
|
191
445
|
configurable: !1,
|
|
192
446
|
enumerable: !1,
|
|
193
|
-
writable: !
|
|
194
|
-
value:
|
|
195
|
-
}), Object.freeze && (Object.freeze(
|
|
196
|
-
}
|
|
197
|
-
function
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
447
|
+
writable: !1,
|
|
448
|
+
value: o
|
|
449
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
450
|
+
};
|
|
451
|
+
function er(e, r, t, n, o) {
|
|
452
|
+
{
|
|
453
|
+
var s, i = {}, a = null, d = null;
|
|
454
|
+
t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), ze(r) && (d = r.ref, Xe(r, o));
|
|
455
|
+
for (s in r)
|
|
456
|
+
F.call(r, s) && !Ke.hasOwnProperty(s) && (i[s] = r[s]);
|
|
457
|
+
if (e && e.defaultProps) {
|
|
458
|
+
var l = e.defaultProps;
|
|
459
|
+
for (s in l)
|
|
460
|
+
i[s] === void 0 && (i[s] = l[s]);
|
|
461
|
+
}
|
|
462
|
+
if (a || d) {
|
|
463
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
a && He(i, f), d && Ze(i, f);
|
|
465
|
+
}
|
|
466
|
+
return Qe(e, a, d, o, n, ve.current, i);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
var K = j.ReactCurrentOwner, ye = j.ReactDebugCurrentFrame;
|
|
470
|
+
function k(e) {
|
|
471
|
+
if (e) {
|
|
472
|
+
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
473
|
+
ye.setExtraStackFrame(t);
|
|
474
|
+
} else
|
|
475
|
+
ye.setExtraStackFrame(null);
|
|
476
|
+
}
|
|
477
|
+
var z;
|
|
478
|
+
z = !1;
|
|
479
|
+
function G(e) {
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
481
|
+
}
|
|
482
|
+
function be() {
|
|
483
|
+
{
|
|
484
|
+
if (K.current) {
|
|
485
|
+
var e = T(K.current.type);
|
|
486
|
+
if (e)
|
|
487
|
+
return `
|
|
488
|
+
|
|
489
|
+
Check the render method of \`` + e + "`.";
|
|
490
|
+
}
|
|
491
|
+
return "";
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function rr(e) {
|
|
495
|
+
return "";
|
|
496
|
+
}
|
|
497
|
+
var Ee = {};
|
|
498
|
+
function tr(e) {
|
|
499
|
+
{
|
|
500
|
+
var r = be();
|
|
501
|
+
if (!r) {
|
|
502
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
t && (r = `
|
|
504
|
+
|
|
505
|
+
Check the top-level render call using <` + t + ">.");
|
|
506
|
+
}
|
|
507
|
+
return r;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function Re(e, r) {
|
|
511
|
+
{
|
|
512
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
513
|
+
return;
|
|
514
|
+
e._store.validated = !0;
|
|
515
|
+
var t = tr(r);
|
|
516
|
+
if (Ee[t])
|
|
517
|
+
return;
|
|
518
|
+
Ee[t] = !0;
|
|
519
|
+
var n = "";
|
|
520
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + T(e._owner.type) + "."), k(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
function _e(e, r) {
|
|
524
|
+
{
|
|
525
|
+
if (typeof e != "object")
|
|
526
|
+
return;
|
|
527
|
+
if (B(e))
|
|
528
|
+
for (var t = 0; t < e.length; t++) {
|
|
529
|
+
var n = e[t];
|
|
530
|
+
G(n) && Re(n, r);
|
|
531
|
+
}
|
|
532
|
+
else if (G(e))
|
|
533
|
+
e._store && (e._store.validated = !0);
|
|
534
|
+
else if (e) {
|
|
535
|
+
var o = Se(e);
|
|
536
|
+
if (typeof o == "function" && o !== e.entries)
|
|
537
|
+
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
538
|
+
G(i.value) && Re(i.value, r);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function nr(e) {
|
|
543
|
+
{
|
|
544
|
+
var r = e.type;
|
|
545
|
+
if (r == null || typeof r == "string")
|
|
546
|
+
return;
|
|
547
|
+
var t;
|
|
548
|
+
if (typeof r == "function")
|
|
549
|
+
t = r.propTypes;
|
|
550
|
+
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
|
551
|
+
// Inner props are checked in the reconciler.
|
|
552
|
+
r.$$typeof === _))
|
|
553
|
+
t = r.propTypes;
|
|
554
|
+
else
|
|
555
|
+
return;
|
|
556
|
+
if (t) {
|
|
557
|
+
var n = T(r);
|
|
558
|
+
Ne(t, e.props, "prop", n, e);
|
|
559
|
+
} else if (r.PropTypes !== void 0 && !z) {
|
|
560
|
+
z = !0;
|
|
561
|
+
var o = T(r);
|
|
562
|
+
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
563
|
+
}
|
|
564
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function ar(e) {
|
|
568
|
+
{
|
|
569
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
570
|
+
var n = r[t];
|
|
571
|
+
if (n !== "children" && n !== "key") {
|
|
572
|
+
k(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
e.ref !== null && (k(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
var ge = {};
|
|
580
|
+
function me(e, r, t, n, o, s) {
|
|
581
|
+
{
|
|
582
|
+
var i = $e(e);
|
|
583
|
+
if (!i) {
|
|
584
|
+
var a = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
+
var d = rr();
|
|
587
|
+
d ? a += d : a += be();
|
|
588
|
+
var l;
|
|
589
|
+
e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof === b ? (l = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
590
|
+
}
|
|
591
|
+
var f = er(e, r, t, o, s);
|
|
592
|
+
if (f == null)
|
|
593
|
+
return f;
|
|
594
|
+
if (i) {
|
|
595
|
+
var y = r.children;
|
|
596
|
+
if (y !== void 0)
|
|
597
|
+
if (n)
|
|
598
|
+
if (B(y)) {
|
|
599
|
+
for (var A = 0; A < y.length; A++)
|
|
600
|
+
_e(y[A], e);
|
|
601
|
+
Object.freeze && Object.freeze(y);
|
|
602
|
+
} else
|
|
603
|
+
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
|
+
else
|
|
605
|
+
_e(y, e);
|
|
606
|
+
}
|
|
607
|
+
if (F.call(r, "key")) {
|
|
608
|
+
var x = T(e), v = Object.keys(r).filter(function(fr) {
|
|
609
|
+
return fr !== "key";
|
|
610
|
+
}), X = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!ge[x + X]) {
|
|
612
|
+
var lr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
c(`A props object containing a "key" prop is being spread into JSX:
|
|
217
614
|
let props = %s;
|
|
218
615
|
<%s {...props} />
|
|
219
616
|
React keys must be passed directly to JSX without using spread:
|
|
220
617
|
let props = %s;
|
|
221
|
-
<%s key={someKey} {...props} />`,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
a
|
|
226
|
-
), F[a + n] = !0);
|
|
227
|
-
}
|
|
228
|
-
if (a = null, t !== void 0 && (f(t), a = "" + t), m(r) && (f(r.key), a = "" + r.key), "key" in r) {
|
|
229
|
-
t = {};
|
|
230
|
-
for (var w in r)
|
|
231
|
-
w !== "key" && (t[w] = r[w]);
|
|
232
|
-
} else t = r;
|
|
233
|
-
return a && l(
|
|
234
|
-
t,
|
|
235
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
236
|
-
), R(
|
|
237
|
-
e,
|
|
238
|
-
a,
|
|
239
|
-
t,
|
|
240
|
-
u(),
|
|
241
|
-
b,
|
|
242
|
-
h
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
function y(e) {
|
|
246
|
-
j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === A && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
247
|
-
}
|
|
248
|
-
function j(e) {
|
|
249
|
-
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
250
|
-
}
|
|
251
|
-
var v = re, C = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), J = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), x = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, K = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
252
|
-
return null;
|
|
253
|
-
};
|
|
254
|
-
v = {
|
|
255
|
-
react_stack_bottom_frame: function(e) {
|
|
256
|
-
return e();
|
|
618
|
+
<%s key={someKey} {...props} />`, X, x, lr, x), ge[x + X] = !0;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return e === g ? ar(f) : nr(f), f;
|
|
257
622
|
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
t,
|
|
269
|
-
!1,
|
|
270
|
-
n ? Error("react-stack-top-frame") : $,
|
|
271
|
-
n ? O(d(e)) : I
|
|
272
|
-
);
|
|
273
|
-
}, E.jsxs = function(e, r, t) {
|
|
274
|
-
var n = 1e4 > x.recentlyCreatedOwnerStacks++;
|
|
275
|
-
return S(
|
|
276
|
-
e,
|
|
277
|
-
r,
|
|
278
|
-
t,
|
|
279
|
-
!0,
|
|
280
|
-
n ? Error("react-stack-top-frame") : $,
|
|
281
|
-
n ? O(d(e)) : I
|
|
282
|
-
);
|
|
283
|
-
};
|
|
284
|
-
})()), E;
|
|
623
|
+
}
|
|
624
|
+
function ir(e, r, t) {
|
|
625
|
+
return me(e, r, t, !0);
|
|
626
|
+
}
|
|
627
|
+
function or(e, r, t) {
|
|
628
|
+
return me(e, r, t, !1);
|
|
629
|
+
}
|
|
630
|
+
var ur = or, sr = ir;
|
|
631
|
+
$.Fragment = g, $.jsx = ur, $.jsxs = sr;
|
|
632
|
+
})()), $;
|
|
285
633
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
return
|
|
634
|
+
var Oe;
|
|
635
|
+
function br() {
|
|
636
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? V.exports = hr() : V.exports = yr()), V.exports;
|
|
289
637
|
}
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
baseURL:
|
|
293
|
-
getToken:
|
|
294
|
-
timeoutMs:
|
|
295
|
-
axiosInstance:
|
|
296
|
-
currency:
|
|
297
|
-
lng:
|
|
638
|
+
var Er = br();
|
|
639
|
+
function Rr({
|
|
640
|
+
baseURL: E,
|
|
641
|
+
getToken: b,
|
|
642
|
+
timeoutMs: C = 15e3,
|
|
643
|
+
axiosInstance: g,
|
|
644
|
+
currency: O,
|
|
645
|
+
lng: S,
|
|
298
646
|
onError: m
|
|
299
647
|
} = {}) {
|
|
300
|
-
const
|
|
301
|
-
baseURL:
|
|
302
|
-
timeout:
|
|
648
|
+
const p = g ?? pr.create({
|
|
649
|
+
baseURL: E,
|
|
650
|
+
timeout: C,
|
|
303
651
|
headers: { "Content-Type": "application/json" }
|
|
304
652
|
});
|
|
305
|
-
return
|
|
306
|
-
if (
|
|
307
|
-
const R = await
|
|
308
|
-
R && (
|
|
309
|
-
}
|
|
310
|
-
return
|
|
311
|
-
}),
|
|
312
|
-
|
|
313
|
-
}),
|
|
314
|
-
(
|
|
315
|
-
(
|
|
316
|
-
),
|
|
653
|
+
return p.interceptors.request.use(async (u) => {
|
|
654
|
+
if (b) {
|
|
655
|
+
const R = await b();
|
|
656
|
+
R && (u.headers = u.headers || {}, u.headers.Authorization = `Bearer ${R}`);
|
|
657
|
+
}
|
|
658
|
+
return u;
|
|
659
|
+
}), p.interceptors.request.use((u) => {
|
|
660
|
+
u.headers.Currency = O, u.headers["currency-code"] = O, u.headers.lang = S;
|
|
661
|
+
}), p.interceptors.response.use(
|
|
662
|
+
(u) => u,
|
|
663
|
+
(u) => m ? m(u, { instance: p }) : Promise.reject(u)
|
|
664
|
+
), p;
|
|
317
665
|
}
|
|
318
|
-
function
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
// 其他 API 相關狀態...
|
|
322
|
-
}, d = ne(() => le(i), [i]);
|
|
323
|
-
return /* @__PURE__ */ ce.jsx(P.Provider, { value: { client: d, ...f }, children: o });
|
|
666
|
+
function Cr({ children: E, ...b }) {
|
|
667
|
+
const C = vr(() => Rr(b), [b]);
|
|
668
|
+
return /* @__PURE__ */ Er.jsx(we.Provider, { value: { client: C }, children: E });
|
|
324
669
|
}
|
|
325
670
|
export {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
_e as useApiContextSafe
|
|
671
|
+
we as ApiCtx,
|
|
672
|
+
Cr as ApiProvider,
|
|
673
|
+
Tr as useApiContext
|
|
330
674
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obb871001/api-integration-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.16",
|
|
5
5
|
"description": "集成API",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"@eslint/js": "^9.36.0",
|
|
58
58
|
"@tanstack/react-query": "^5.90.5",
|
|
59
59
|
"@tanstack/react-query-devtools": "^5.90.2",
|
|
60
|
-
"@types/react": "^
|
|
61
|
-
"@types/react-dom": "^
|
|
60
|
+
"@types/react": "^18.3.3",
|
|
61
|
+
"@types/react-dom": "^18.3.0",
|
|
62
62
|
"@vitejs/plugin-react": "^5.0.4",
|
|
63
63
|
"eslint": "^9.36.0",
|
|
64
64
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
65
65
|
"eslint-plugin-react-refresh": "^0.4.22",
|
|
66
66
|
"globals": "^16.4.0",
|
|
67
|
-
"react": "^
|
|
68
|
-
"react-dom": "^
|
|
67
|
+
"react": "^18.3.1",
|
|
68
|
+
"react-dom": "^18.3.1",
|
|
69
69
|
"vite": "^7.1.7"
|
|
70
70
|
}
|
|
71
71
|
}
|