@abtnode/webapp 1.16.14-beta-dd4f6a50 → 1.16.14-beta-3127f514
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +17 -19
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{2286.35b2e00c.chunk.js → 2286.8a472c6a.chunk.js} +1 -1
- package/build/static/js/{2740.73848463.chunk.js → 2740.363ae2ae.chunk.js} +1 -1
- package/build/static/js/{3898.91771f97.chunk.js → 3898.a9f78052.chunk.js} +1 -1
- package/build/static/js/{3925.4b15196e.chunk.js → 3925.8b7c4710.chunk.js} +1 -1
- package/build/static/js/{5889.34412de7.chunk.js → 5889.72d3da26.chunk.js} +1 -1
- package/build/static/js/6204.dec4b58e.chunk.js +1 -0
- package/build/static/js/{6415.a6b69de0.chunk.js → 6415.38e39716.chunk.js} +1 -1
- package/build/static/js/{6615.2cbe54f6.chunk.js → 6615.6654bb25.chunk.js} +2 -2
- package/build/static/js/{7300.7f1bef8b.chunk.js → 7300.4a707462.chunk.js} +1 -1
- package/build/static/js/7538.2a984aec.chunk.js +1 -0
- package/build/static/js/781.3bfb8d1d.chunk.js +2 -0
- package/build/static/js/{8235.9b774cc5.chunk.js → 8235.2d3b77d8.chunk.js} +1 -1
- package/build/static/js/91.0fa06c38.chunk.js +1 -0
- package/build/static/js/9564.9bd2f4a9.chunk.js +1 -0
- package/build/static/js/9933.ebe5bea2.chunk.js +1 -0
- package/build/static/js/main.e8fcbcd1.js +2 -0
- package/build/static/js/{main.50c4fa98.js.LICENSE.txt → main.e8fcbcd1.js.LICENSE.txt} +6 -0
- package/package.json +1 -1
- package/build/static/js/6204.c3939f9d.chunk.js +0 -1
- package/build/static/js/7538.9628c4c5.chunk.js +0 -1
- package/build/static/js/781.137e2c0c.chunk.js +0 -2
- package/build/static/js/91.c89e271b.chunk.js +0 -1
- package/build/static/js/9194.59b53801.chunk.js +0 -1
- package/build/static/js/948.84863f73.chunk.js +0 -2
- package/build/static/js/948.84863f73.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/9564.a4932091.chunk.js +0 -1
- package/build/static/js/9933.c4cb6f9d.chunk.js +0 -1
- package/build/static/js/main.50c4fa98.js +0 -2
- /package/build/static/js/{6615.2cbe54f6.chunk.js.LICENSE.txt → 6615.6654bb25.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{781.137e2c0c.chunk.js.LICENSE.txt → 781.3bfb8d1d.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 948.84863f73.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[948],{50948:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return qe.LK},configResponsive:function(){return Ge},createUpdateEffect:function(){return r.a},useAntdTable:function(){return l},useAsyncEffect:function(){return d},useBoolean:function(){return h},useClickAway:function(){return y},useControllableValue:function(){return w},useCookieState:function(){return Z},useCountDown:function(){return R},useCounter:function(){return C},useCreation:function(){return A.Z},useDebounce:function(){return F},useDebounceEffect:function(){return M},useDebounceFn:function(){return x.Z},useDeepCompareEffect:function(){return z},useDeepCompareLayoutEffect:function(){return P},useDocumentVisibility:function(){return U},useDrag:function(){return Y},useDrop:function(){return H},useDynamicList:function(){return X},useEventEmitter:function(){return B},useEventListener:function(){return j.Z},useEventTarget:function(){return G},useExternal:function(){return J},useFavicon:function(){return Q},useFocusWithin:function(){return ee},useFullscreen:function(){return ie},useFusionTable:function(){return oe},useGetState:function(){return ue},useHistoryTravel:function(){return ce},useHover:function(){return se},useInViewport:function(){return de},useInfiniteScroll:function(){return le.Z},useInterval:function(){return fe},useIsomorphicLayoutEffect:function(){return ve},useKeyPress:function(){return ye},useLatest:function(){return p.Z},useLocalStorageState:function(){return we},useLockFn:function(){return Ee},useLongPress:function(){return Ze},useMap:function(){return ke},useMemoizedFn:function(){return u.Z},useMount:function(){return Te.Z},useMouse:function(){return Ce},useMutationObserver:function(){return Wt},useNetwork:function(){return Fe},usePagination:function(){return c},usePrevious:function(){return Ie},useRafInterval:function(){return De},useRafState:function(){return Re},useRafTimeout:function(){return je},useReactive:function(){return Ve.Z},useRequest:function(){return a.Z},useResetState:function(){return Ue},useResponsive:function(){return Ke},useSafeState:function(){return $e},useScroll:function(){return Qe},useSelections:function(){return et},useSessionStorageState:function(){return tt},useSet:function(){return nt},useSetState:function(){return rt},useSize:function(){return Rt},useTextSelection:function(){return At},useThrottle:function(){return Nt},useThrottleEffect:function(){return Dt},useThrottleFn:function(){return It},useTimeout:function(){return zt},useTitle:function(){return Vt},useToggle:function(){return v},useTrackedEffect:function(){return qt},useUnmount:function(){return re.Z},useUnmountedRef:function(){return Je},useUpdate:function(){return b.Z},useUpdateEffect:function(){return s.Z},useUpdateLayoutEffect:function(){return Ut},useVirtualList:function(){return Yt},useWebSocket:function(){return Ht},useWhyDidYouUpdate:function(){return Xt}});var r=n(64402),i=n(9161),o=n(5057),u=n(99360),a=n(27429),c=function(e,t){var n;void 0===t&&(t={});var r=t.defaultPageSize,c=void 0===r?10:r,s=t.defaultCurrent,l=void 0===s?1:s,f=(0,i.__rest)(t,["defaultPageSize","defaultCurrent"]),d=(0,a.Z)(e,(0,i.__assign)({defaultParams:[{current:l,pageSize:c}],refreshDepsAction:function(){w(1)}},f)),v=d.params[0]||{},h=v.current,p=void 0===h?1:h,m=v.pageSize,g=void 0===m?c:m,_=(null===(n=d.data)||void 0===n?void 0:n.total)||0,y=(0,o.useMemo)((function(){return Math.ceil(_/g)}),[g,_]),b=function(e,t){var n=e<=0?1:e,r=t<=0?1:t,o=Math.ceil(_/r);n>o&&(n=Math.max(1,o));var u=(0,i.__read)(d.params||[]),a=u[0],c=void 0===a?{}:a,s=u.slice(1);d.run.apply(d,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},c),{current:n,pageSize:r})],(0,i.__read)(s),!1))},w=function(e){b(e,g)};return(0,i.__assign)((0,i.__assign)({},d),{pagination:{current:p,pageSize:g,total:_,totalPage:y,onChange:(0,u.Z)(b),changeCurrent:(0,u.Z)(w),changePageSize:(0,u.Z)((function(e){b(p,e)}))}})},s=n(64217),l=function(e,t){var n;void 0===t&&(t={});var r=t.form,a=t.defaultType,l=void 0===a?"simple":a,f=t.defaultParams,d=t.manual,v=void 0!==d&&d,h=t.refreshDeps,p=void 0===h?[]:h,m=t.ready,g=void 0===m||m,_=(0,i.__rest)(t,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),y=c(e,(0,i.__assign)({manual:!0},_)),b=y.params,w=void 0===b?[]:b,E=y.run,S=w[2]||{},Z=(0,i.__read)((0,o.useState)((null===S||void 0===S?void 0:S.type)||l),2),k=Z[0],T=Z[1],L=(0,o.useRef)({}),R=(0,o.useRef)([]),O=!!(null===r||void 0===r?void 0:r.getInternalHooks),C=function(){if(!r)return{};if(O)return r.getFieldsValue(null,(function(){return!0}));var e=r.getFieldsValue(),t={};return Object.keys(e).forEach((function(n){r.getFieldInstance&&!r.getFieldInstance(n)||(t[n]=e[n])})),t},A=function(){if(r){if(O)return r.setFieldsValue(L.current);var e={};Object.keys(L.current).forEach((function(t){r.getFieldInstance&&!r.getFieldInstance(t)||(e[t]=L.current[t])})),r.setFieldsValue(e)}},x=function(e){g&&setTimeout((function(){(function(){if(!r)return Promise.resolve({});var e=C(),t=Object.keys(e);return O?r.validateFields(t):new Promise((function(e,n){r.validateFields(t,(function(t,r){t?n(t):e(r)}))}))})().then((function(n){void 0===n&&(n={});var o=e||(0,i.__assign)((0,i.__assign)({pageSize:t.defaultPageSize||10},(null===w||void 0===w?void 0:w[0])||{}),{current:1});r?(L.current=(0,i.__assign)((0,i.__assign)({},L.current),n),E(o,n,{allFormData:L.current,type:k})):E(o)})).catch((function(e){return e}))}))};(0,o.useEffect)((function(){if(w.length>0)return L.current=(null===S||void 0===S?void 0:S.allFormData)||{},A(),void E.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(w),!1));!v&&g&&(L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[]),(0,s.Z)((function(){g&&A()}),[k]);var F=(0,o.useRef)(!1);return F.current=!1,(0,s.Z)((function(){!v&&g&&(F.current=!0,r&&r.resetFields(),L.current=(null===f||void 0===f?void 0:f[1])||{},A(),x(null===f||void 0===f?void 0:f[0]))}),[g]),(0,s.Z)((function(){F.current||g&&(v||(F.current=!0,y.pagination.changeCurrent(1)))}),(0,i.__spreadArray)([],(0,i.__read)(p),!1)),(0,i.__assign)((0,i.__assign)({},y),{tableProps:{dataSource:(null===(n=y.data)||void 0===n?void 0:n.list)||R.current,loading:y.loading,onChange:(0,u.Z)((function(e,t,n,r){var o=(0,i.__read)(w||[]),u=o[0],a=o.slice(1);E.apply(void 0,(0,i.__spreadArray)([(0,i.__assign)((0,i.__assign)({},u),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:r})],(0,i.__read)(a),!1))})),pagination:{current:y.pagination.current,pageSize:y.pagination.pageSize,total:y.pagination.total}},search:{submit:(0,u.Z)((function(e){var t;null===(t=null===e||void 0===e?void 0:e.preventDefault)||void 0===t||t.call(e),x()})),type:k,changeType:(0,u.Z)((function(){var e=C();L.current=(0,i.__assign)((0,i.__assign)({},L.current),e),T((function(e){return"simple"===e?"advance":"simple"}))})),reset:(0,u.Z)((function(){var e,n;r&&r.resetFields(),x((0,i.__assign)((0,i.__assign)({},(null===f||void 0===f?void 0:f[0])||{}),{pageSize:t.defaultPageSize||(null===(n=null===(e=t.defaultParams)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageSize)||10,current:1}))}))}})},f=n(89141);var d=function(e,t){(0,o.useEffect)((function(){var t=e(),n=!1;return function(){(0,i.__awaiter)(this,void 0,void 0,(function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:if(r=t,!(0,f.mf)(r[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:return e.sent().done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}var r}))}))}(),function(){n=!0}}),t)};var v=function(e,t){void 0===e&&(e=!1);var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return u((function(t){return t===e?n:e}))},set:function(e){return u(e)},setLeft:function(){return u(e)},setRight:function(){return u(n)}}}),[])]};function h(e){void 0===e&&(e=!1);var t=(0,i.__read)(v(!!e),2),n=t[0],r=t[1],u=r.toggle,a=r.set;return[n,(0,o.useMemo)((function(){return{toggle:u,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[])]}var p=n(67120),m=n(41168),g=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return function(e){return e.every((function(e){var t=(0,m.n)(e);return!!t&&(t.getRootNode()instanceof ShadowRoot||void 0)}))}(n)&&(t=(0,m.n)(n[0]))?t.getRootNode():document},_=n(78590);function y(e,t,n){void 0===n&&(n="click");var r=(0,p.Z)(e);(0,_.Z)((function(){var e=function(e){(Array.isArray(t)?t:[t]).some((function(t){var n=(0,m.n)(t);return!n||n.contains(e.target)}))||r.current(e)},i=g(t),o=Array.isArray(n)?n:[n];return o.forEach((function(t){return i.addEventListener(t,e)})),function(){o.forEach((function(t){return i.removeEventListener(t,e)}))}}),Array.isArray(n)?n:[n],t)}var b=n(39861);var w=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.defaultValue,r=t.defaultValuePropName,a=void 0===r?"defaultValue":r,c=t.valuePropName,s=void 0===c?"value":c,l=t.trigger,d=void 0===l?"onChange":l,v=e[s],h=e.hasOwnProperty(s),p=(0,o.useMemo)((function(){return h?v:e.hasOwnProperty(a)?e[a]:n}),[]),m=(0,o.useRef)(p);h&&(m.current=v);var g=(0,b.Z)();return[m.current,(0,u.Z)((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=(0,f.mf)(t)?t(m.current):t;h||(m.current=o,g()),e[d]&&e[d].apply(e,(0,i.__spreadArray)([o],(0,i.__read)(n),!1))}))]},E=n(4899),S=n.n(E);var Z=function(e,t){void 0===t&&(t={});var n=(0,i.__read)((0,o.useState)((function(){var n=S().get(e);return(0,f.HD)(n)?n:(0,f.mf)(t.defaultValue)?t.defaultValue():t.defaultValue})),2),r=n[0],a=n[1],c=(0,u.Z)((function(n,o){void 0===o&&(o={});var u=(0,i.__assign)((0,i.__assign)({},t),o),c=(u.defaultValue,(0,i.__rest)(u,["defaultValue"])),s=(0,f.mf)(n)?n(r):n;a(s),void 0===s?S().remove(e):S().set(e,s,c)}));return[r,c]},k=n(74410),T=n.n(k),L=function(e){if(!e)return 0;var t=T()(e).valueOf()-Date.now();return t<0?0:t},R=function(e){void 0===e&&(e={});var t=e||{},n=t.leftTime,r=t.targetDate,u=t.interval,a=void 0===u?1e3:u,c=t.onEnd,s=(0,o.useMemo)((function(){return"leftTime"in e?(0,f.hj)(n)&&n>0?Date.now()+n:void 0:r}),[n,r]),l=(0,i.__read)((0,o.useState)((function(){return L(s)})),2),d=l[0],v=l[1],h=(0,p.Z)(c);(0,o.useEffect)((function(){if(s){v(L(s));var e=setInterval((function(){var t,n=L(s);v(n),0===n&&(clearInterval(e),null===(t=h.current)||void 0===t||t.call(h))}),a);return function(){return clearInterval(e)}}v(0)}),[s,a]);var m=(0,o.useMemo)((function(){return e=d,{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3};var e}),[d]);return[d,m]};function O(e,t){void 0===t&&(t={});var n=t.min,r=t.max,i=e;return(0,f.hj)(r)&&(i=Math.min(r,i)),(0,f.hj)(n)&&(i=Math.max(n,i)),i}var C=function(e,t){void 0===e&&(e=0),void 0===t&&(t={});var n=t.min,r=t.max,a=(0,i.__read)((0,o.useState)((function(){return O(e,{min:n,max:r})})),2),c=a[0],s=a[1],l=function(e){s((function(t){return O((0,f.hj)(e)?e:e(t),{max:r,min:n})}))};return[c,{inc:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t+e}))})),dec:(0,u.Z)((function(e){void 0===e&&(e=1),l((function(t){return t-e}))})),set:(0,u.Z)((function(e){l(e)})),reset:(0,u.Z)((function(){l(e)}))}]},A=n(93066),x=n(7411);var F=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,x.Z)((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var M=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=(0,x.Z)((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},I=n(50482),N=n.n(I),D=function(e){return function(t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);void 0!==n&&(r=n,i=u.current,void 0===r&&(r=[]),void 0===i&&(i=[]),N()(r,i))||(u.current=n,a.current+=1),e(t,[a.current])}},z=D(o.useEffect),P=D(o.useLayoutEffect),j=n(80226),V=n(87374),q=function(){return V.Z?document.visibilityState:"visible"};var U=function(){var e=(0,i.__read)((0,o.useState)((function(){return q()})),2),t=e[0],n=e[1];return(0,j.Z)("visibilitychange",(function(){n(q())}),{target:function(){return document}}),t},Y=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(n),i=(0,p.Z)(e);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){var t,n;null===(n=(t=r.current).onDragStart)||void 0===n||n.call(t,e),e.dataTransfer.setData("custom",JSON.stringify(i.current))},o=function(e){var t,n;null===(n=(t=r.current).onDragEnd)||void 0===n||n.call(t,e)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",n),e.addEventListener("dragend",o),function(){e.removeEventListener("dragstart",n),e.removeEventListener("dragend",o)}}}),[],t)},H=function(e,t){void 0===t&&(t={});var n=(0,p.Z)(t),r=(0,o.useRef)();(0,_.Z)((function(){var t=(0,m.n)(e);if(null===t||void 0===t?void 0:t.addEventListener){var i=function(e,t){var r=e.getData("text/uri-list"),i=e.getData("custom");if(i&&n.current.onDom){var o=i;try{o=JSON.parse(i)}catch(u){o=i}n.current.onDom(o,t)}else r&&n.current.onUri?n.current.onUri(r,t):e.files&&e.files.length&&n.current.onFiles?n.current.onFiles(Array.from(e.files),t):e.items&&e.items.length&&n.current.onText&&e.items[0].getAsString((function(e){n.current.onText(e,t)}))},o=function(e){var t,i;e.preventDefault(),e.stopPropagation(),r.current=e.target,null===(i=(t=n.current).onDragEnter)||void 0===i||i.call(t,e)},u=function(e){var t,r;e.preventDefault(),null===(r=(t=n.current).onDragOver)||void 0===r||r.call(t,e)},a=function(e){var t,i;e.target===r.current&&(null===(i=(t=n.current).onDragLeave)||void 0===i||i.call(t,e))},c=function(e){var t,r;e.preventDefault(),i(e.dataTransfer,e),null===(r=(t=n.current).onDrop)||void 0===r||r.call(t,e)},s=function(e){var t,r;i(e.clipboardData,e),null===(r=(t=n.current).onPaste)||void 0===r||r.call(t,e)};return t.addEventListener("dragenter",o),t.addEventListener("dragover",u),t.addEventListener("dragleave",a),t.addEventListener("drop",c),t.addEventListener("paste",s),function(){t.removeEventListener("dragenter",o),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",a),t.removeEventListener("drop",c),t.removeEventListener("paste",s)}}}),[],e)},X=function(e){void 0===e&&(e=[]);var t=(0,o.useRef)(-1),n=(0,o.useRef)([]),r=(0,o.useCallback)((function(e){t.current+=1,n.current.splice(e,0,t.current)}),[]),u=(0,i.__read)((0,o.useState)((function(){return e.forEach((function(e,t){r(t)})),e})),2),a=u[0],c=u[1],s=(0,o.useCallback)((function(e){n.current=[],c((function(){return e.forEach((function(e,t){r(t)})),e}))}),[]),l=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return o.splice(e,0,t),r(e),o}))}),[]),f=(0,o.useCallback)((function(e){return n.current[e]}),[]),d=(0,o.useCallback)((function(e){return n.current.findIndex((function(t){return t===e}))}),[]),v=(0,o.useCallback)((function(e,t){c((function(n){var o=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return t.forEach((function(t,n){r(e+n)})),o.splice.apply(o,(0,i.__spreadArray)([e,0],(0,i.__read)(t),!1)),o}))}),[]),h=(0,o.useCallback)((function(e,t){c((function(n){var r=(0,i.__spreadArray)([],(0,i.__read)(n),!1);return r[e]=t,r}))}),[]),p=(0,o.useCallback)((function(e){c((function(t){var r=(0,i.__spreadArray)([],(0,i.__read)(t),!1);r.splice(e,1);try{n.current.splice(e,1)}catch(o){console.error(o)}return r}))}),[]),m=(0,o.useCallback)((function(e,t){e!==t&&c((function(r){var o=(0,i.__spreadArray)([],(0,i.__read)(r),!1),u=o.filter((function(t,n){return n!==e}));u.splice(t,0,o[e]);try{var a=n.current.filter((function(t,n){return n!==e}));a.splice(t,0,n.current[e]),n.current=a}catch(c){console.error(c)}return u}))}),[]),g=(0,o.useCallback)((function(e){c((function(t){return r(t.length),t.concat([e])}))}),[]),_=(0,o.useCallback)((function(){try{n.current=n.current.slice(0,n.current.length-1)}catch(e){console.error(e)}c((function(e){return e.slice(0,e.length-1)}))}),[]),y=(0,o.useCallback)((function(e){c((function(t){return r(0),[e].concat(t)}))}),[]),b=(0,o.useCallback)((function(){try{n.current=n.current.slice(1,n.current.length)}catch(e){console.error(e)}c((function(e){return e.slice(1,e.length)}))}),[]),w=(0,o.useCallback)((function(e){return e.map((function(e,t){return{key:t,item:e}})).sort((function(e,t){return d(e.key)-d(t.key)})).filter((function(e){return!!e.item})).map((function(e){return e.item}))}),[]);return{list:a,insert:l,merge:v,replace:h,remove:p,getKey:f,getIndex:d,move:m,push:g,pop:_,unshift:y,shift:b,sortList:w,resetList:s}},W=function(){var e=this;this.subscriptions=new Set,this.emit=function(t){var n,r;try{for(var o=(0,i.__values)(e.subscriptions),u=o.next();!u.done;u=o.next())(0,u.value)(t)}catch(a){n={error:a}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},this.useSubscription=function(t){var n=(0,o.useRef)();n.current=t,(0,o.useEffect)((function(){function t(e){n.current&&n.current(e)}return e.subscriptions.add(t),function(){e.subscriptions.delete(t)}}),[])}};function B(){var e=(0,o.useRef)();return e.current||(e.current=new W),e.current}var G=function(e){var t=e||{},n=t.initialValue,r=t.transformer,u=(0,i.__read)((0,o.useState)(n),2),a=u[0],c=u[1],s=(0,p.Z)(r),l=(0,o.useCallback)((function(){return c(n)}),[]);return[a,{onChange:(0,o.useCallback)((function(e){var t=e.target.value;return(0,f.mf)(s.current)?c(s.current(t)):c(t)}),[]),reset:l}]},K={},J=function(e,t){var n=(0,i.__read)((0,o.useState)(e?"loading":"unset"),2),r=n[0],u=n[1],a=(0,o.useRef)();return(0,o.useEffect)((function(){if(e){var n=e.replace(/[|#].*$/,"");if("css"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^css!|\.css$)/.test(n)){var r=function(e,t){void 0===t&&(t={});var n=document.querySelector('link[href="'.concat(e,'"]'));if(!n){var r=document.createElement("link");return r.rel="stylesheet",r.href=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),"hideFocus"in r&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.css);a.current=r.ref,u(r.status)}else if("js"===(null===t||void 0===t?void 0:t.type)||!(null===t||void 0===t?void 0:t.type)&&/(^js!|\.js$)/.test(n)){r=function(e,t){void 0===t&&(t={});var n=document.querySelector('script[src="'.concat(e,'"]'));if(!n){var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r[e]=t[e]})),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:n,status:n.getAttribute("data-status")||"ready"}}(e,null===t||void 0===t?void 0:t.js);a.current=r.ref,u(r.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(a.current){void 0===K[e]?K[e]=1:K[e]+=1;var i=function(e){var t,n="load"===e.type?"ready":"error";null===(t=a.current)||void 0===t||t.setAttribute("data-status",n),u(n)};return a.current.addEventListener("load",i),a.current.addEventListener("error",i),function(){var n,r,o;null===(n=a.current)||void 0===n||n.removeEventListener("load",i),null===(r=a.current)||void 0===r||r.removeEventListener("error",i),K[e]-=1,0!==K[e]||(null===t||void 0===t?void 0:t.keepWhenUnused)||null===(o=a.current)||void 0===o||o.remove(),a.current=void 0}}}else u("unset")}),[e]),r},$={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},Q=function(e){(0,o.useEffect)((function(){if(e){var t=e.split("."),n=t[t.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=$[n],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}}),[e])};function ee(e,t){var n=(0,i.__read)((0,o.useState)(!1),2),r=n[0],u=n[1],a=t||{},c=a.onFocus,s=a.onBlur,l=a.onChange;return(0,j.Z)("focusin",(function(e){r||(null===c||void 0===c||c(e),null===l||void 0===l||l(!0),u(!0))}),{target:e}),(0,j.Z)("focusout",(function(e){var t,n;r&&!(null===(n=null===(t=e.currentTarget)||void 0===t?void 0:t.contains)||void 0===n?void 0:n.call(t,e.relatedTarget))&&(null===s||void 0===s||s(e),null===l||void 0===l||l(!1),u(!1))}),{target:e}),r}var te=n(20026),ne=n.n(te),re=n(78923),ie=function(e,t){var n=t||{},r=n.onExit,a=n.onEnter,c=n.pageFullscreen,s=void 0!==c&&c,l=(0,f.jn)(s)||!s?{}:s,d=l.className,v=void 0===d?"ahooks-page-fullscreen":d,h=l.zIndex,g=void 0===h?999999:h,_=(0,p.Z)(r),y=(0,p.Z)(a),b=(0,i.__read)((0,o.useState)(!1),2),w=b[0],E=b[1],S=function(e){var t,n;e?null===(t=y.current)||void 0===t||t.call(y):null===(n=_.current)||void 0===n||n.call(_)},Z=(0,u.Z)((function(){if(ne().isEnabled){var t=(0,m.n)(e);if(ne().element){var n=ne().element===t;S(n),E(n)}else S(!1),E(!1),ne().off("change",Z)}})),k=function(t){var n=(0,m.n)(e);if(n){var r=document.getElementById(v);t?(n.classList.add(v),r||((r=document.createElement("style")).setAttribute("id",v),r.textContent="\n .".concat(v," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(g,";\n }"),n.appendChild(r))):(n.classList.remove(v),r&&r.remove()),w!==t&&(S(t),E(t))}},T=function(){var t=(0,m.n)(e);if(t)if(s)k(!0);else if(ne().isEnabled)try{ne().request(t),ne().on("change",Z)}catch(n){console.error(n)}},L=function(){var t=(0,m.n)(e);t&&(s?k(!1):ne().isEnabled&&ne().element===t&&ne().exit())};return(0,re.Z)((function(){ne().isEnabled&&!s&&ne().off("change",Z)})),[w,{enterFullscreen:(0,u.Z)(T),exitFullscreen:(0,u.Z)(L),toggleFullscreen:(0,u.Z)((function(){w?L():T()})),isEnabled:ne().isEnabled}]},oe=function(e,t){var n;return void 0===t&&(t={}),function(e){var t={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(t,n){var r;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},null===(r=e.params[0])||void 0===r?void 0:r.filters,{field:t,order:n})},onFilter:function(t){var n;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},t,null===(n=e.params[0])||void 0===n?void 0:n.sorter)}},n={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return(0,i.__assign)((0,i.__assign)({},e),{tableProps:t,paginationProps:n})}(l(e,(0,i.__assign)((0,i.__assign)({},t),{form:t.field?(n=t.field,{getFieldInstance:function(e){return n.getNames().includes(e)},setFieldsValue:n.setValues,getFieldsValue:n.getValues,resetFields:n.resetToDefault,validateFields:function(e,t){n.validate(e,t)}}):void 0})))};var ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],u=(0,o.useRef)(n);return u.current=n,[n,r,(0,o.useCallback)((function(){return u.current}),[])]},ae=function(e,t){var n=function(e,t){var n=e>0?e-1:t.length+e;return n>=t.length-1&&(n=t.length-1),n<0&&(n=0),n}(e,t);return{_current:t[n],_before:t.slice(0,n),_after:t.slice(n+1)}};function ce(e,t){void 0===t&&(t=0);var n=(0,i.__read)((0,o.useState)({present:e,past:[],future:[]}),2),r=n[0],a=n[1],c=r.present,s=r.past,l=r.future,d=(0,o.useRef)(e),v=function(e){var t=(0,f.hj)(e)?e:Number(e);if(0!==t)return t>0?function(e){if(void 0===e&&(e=1),0!==l.length){var t=ae(e,l),n=t._before,r=t._current,o=t._after;a({past:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),(0,i.__read)(n),!1),present:r,future:o})}}(t):void function(e){if(void 0===e&&(e=-1),0!==s.length){var t=ae(e,s),n=t._before,r=t._current,o=t._after;a({past:n,present:r,future:(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(o),!1),[c],!1),(0,i.__read)(l),!1)})}}(t)};return{value:c,backLength:s.length,forwardLength:l.length,setValue:(0,u.Z)((function(e){var n=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(s),!1),[c],!1),r=(0,f.hj)(t)?t:Number(t);r>0&&n.length>r&&n.splice(0,1),a({present:e,future:[],past:n})})),go:(0,u.Z)(v),back:(0,u.Z)((function(){v(-1)})),forward:(0,u.Z)((function(){v(1)})),reset:(0,u.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length>0?e[0]:d.current;d.current=n,a({present:n,future:[],past:[]})}))}}var se=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,u=n.onChange,a=(0,i.__read)(h(!1),2),c=a[0],s=a[1],l=s.setTrue,f=s.setFalse;return(0,j.Z)("mouseenter",(function(){null===r||void 0===r||r(),l(),null===u||void 0===u||u(!0)}),{target:e}),(0,j.Z)("mouseleave",(function(){null===o||void 0===o||o(),f(),null===u||void 0===u||u(!1)}),{target:e}),c},le=n(66411),fe=function(e,t,n){void 0===n&&(n={});var r=(0,u.Z)(e),i=(0,o.useRef)(null),a=(0,o.useCallback)((function(){i.current&&clearInterval(i.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return n.immediate&&r(),i.current=setInterval(r,t),a}),[t,n.immediate]),a};n(53634);var de=function(e,t){var n=(0,i.__read)((0,o.useState)(),2),r=n[0],u=n[1],a=(0,i.__read)((0,o.useState)(),2),c=a[0],s=a[1];return(0,_.Z)((function(){var n=(0,m.n)(e);if(n){var r=new IntersectionObserver((function(e){var t,n;try{for(var r=(0,i.__values)(e),o=r.next();!o.done;o=r.next()){var a=o.value;s(a.intersectionRatio),u(a.isIntersecting)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(0,i.__assign)((0,i.__assign)({},t),{root:(0,m.n)(null===t||void 0===t?void 0:t.root)}));return r.observe(n),function(){r.disconnect()}}}),[null===t||void 0===t?void 0:t.rootMargin,null===t||void 0===t?void 0:t.threshold],e),[r,c]},ve=V.Z?o.useLayoutEffect:o.useEffect,he=function(e,t,n){var r,i,u=(0,o.useRef)(),a=(0,o.useRef)(0);r=t,void 0===(i=u.current)&&(i=[]),N()(r,i)||(u.current=t,a.current+=1),(0,_.Z)(e,[a.current],n)},pe={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},me={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?pe.meta.includes(e.keyCode):e.metaKey}};function ge(e,t,n){var r,o;if(!e.key)return!1;if((0,f.hj)(t))return e.keyCode===t;var u=t.split("."),a=0;try{for(var c=(0,i.__values)(u),s=c.next();!s.done;s=c.next()){var l=s.value,d=me[l],v=pe[l.toLowerCase()];(d&&d(e)||v&&v===e.keyCode)&&a++}}catch(h){r={error:h}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return n?a===u.length&&function(e){var t=Object.keys(me).reduce((function(t,n){return me[n](e)?t+1:t}),0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}(e)===u.length:a===u.length}var _e=["keydown"];var ye=function(e,t,n){var r=n||{},o=r.events,u=void 0===o?_e:o,a=r.target,c=r.exactMatch,s=void 0!==c&&c,l=r.useCapture,d=void 0!==l&&l,v=(0,p.Z)(t),h=(0,p.Z)(e);he((function(){var e,t,n,r=(0,m.n)(a,window);if(r){var o=function(e){var t,n=function(e,t){return(0,f.mf)(e)?e:(0,f.HD)(e)||(0,f.hj)(e)?function(n){return ge(n,e,t)}:Array.isArray(e)?function(n){return e.some((function(e){return ge(n,e,t)}))}:function(){return Boolean(e)}}(h.current,s);if(n(e))return null===(t=v.current)||void 0===t?void 0:t.call(v,e)};try{for(var c=(0,i.__values)(u),l=c.next();!l.done;l=c.next()){var p=l.value;null===(n=null===r||void 0===r?void 0:r.addEventListener)||void 0===n||n.call(r,p,o,d)}}catch(g){e={error:g}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return function(){var e,t,n;try{for(var a=(0,i.__values)(u),c=a.next();!c.done;c=a.next()){var s=c.value;null===(n=null===r||void 0===r?void 0:r.removeEventListener)||void 0===n||n.call(r,s,o,d)}}catch(l){e={error:l}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}}}}),[u],a)};function be(e){return function(t,n){var r;void 0===n&&(n={});var a=n.onError,c=void 0===a?function(e){console.error(e)}:a;try{r=e()}catch(p){c(p)}function l(){try{var e=null===r||void 0===r?void 0:r.getItem(t);if(e)return i=e,(null===n||void 0===n?void 0:n.deserializer)?null===n||void 0===n?void 0:n.deserializer(i):JSON.parse(i)}catch(o){c(o)}var i;return(0,f.mf)(null===n||void 0===n?void 0:n.defaultValue)?null===n||void 0===n?void 0:n.defaultValue():null===n||void 0===n?void 0:n.defaultValue}var d=(0,i.__read)((0,o.useState)((function(){return l()})),2),v=d[0],h=d[1];return(0,s.Z)((function(){h(l())}),[t]),[v,(0,u.Z)((function(e){var i=(0,f.mf)(e)?e(v):e;if(h(i),(0,f.G7)(i))null===r||void 0===r||r.removeItem(t);else try{null===r||void 0===r||r.setItem(t,function(e){return(null===n||void 0===n?void 0:n.serializer)?null===n||void 0===n?void 0:n.serializer(e):JSON.stringify(e)}(i))}catch(o){console.error(o)}}))]}}var we=be((function(){return V.Z?localStorage:void 0}));var Ee=function(e){var t=this,n=(0,o.useRef)(!1);return(0,o.useCallback)((function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(0,i.__awaiter)(t,void 0,void 0,(function(){var t,o;return(0,i.__generator)(this,(function(u){switch(u.label){case 0:if(n.current)return[2];n.current=!0,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r),!1))];case 2:return t=u.sent(),n.current=!1,[2,t];case 3:throw o=u.sent(),n.current=!1,o;case 4:return[2]}}))}))}),[e])},Se=V.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);var Ze=function(e,t,n){var r=void 0===n?{}:n,i=r.delay,u=void 0===i?300:i,a=r.moveThreshold,c=r.onClick,s=r.onLongPressEnd,l=(0,p.Z)(e),f=(0,p.Z)(c),d=(0,p.Z)(s),v=(0,o.useRef)(),h=(0,o.useRef)(!1),g=(0,o.useRef)({x:0,y:0}),y=!!((null===a||void 0===a?void 0:a.x)&&a.x>0||(null===a||void 0===a?void 0:a.y)&&a.y>0);(0,_.Z)((function(){var e=(0,m.n)(t);if(null===e||void 0===e?void 0:e.addEventListener){var n=function(e){if(y){var t=c(e),n=t.clientX,r=t.clientY;g.current.x=n,g.current.y=r}v.current=setTimeout((function(){l.current(e),h.current=!0}),u)},r=function(e){v.current&&function(e){var t=c(e),n=t.clientX,r=t.clientY,i=Math.abs(n-g.current.x),o=Math.abs(r-g.current.y);return!!((null===a||void 0===a?void 0:a.x)&&i>a.x||(null===a||void 0===a?void 0:a.y)&&o>a.y)}(e)&&(clearInterval(v.current),v.current=void 0)},i=function(e,t){var n;void 0===t&&(t=!1),v.current&&clearTimeout(v.current),h.current&&(null===(n=d.current)||void 0===n||n.call(d,e)),t&&!h.current&&f.current&&f.current(e),h.current=!1},o=function(e){return i(e,!0)};return Se?(e.addEventListener("touchstart",n),e.addEventListener("touchend",o),y&&e.addEventListener("touchmove",r)):(e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",i),y&&e.addEventListener("mousemove",r)),function(){v.current&&(clearTimeout(v.current),h.current=!1),Se?(e.removeEventListener("touchstart",n),e.removeEventListener("touchend",o),y&&e.removeEventListener("touchmove",r)):(e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",i),y&&e.removeEventListener("mousemove",r))}}function c(e){return e instanceof TouchEvent?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}}),[],t)};var ke=function(e){var t=function(){return new Map(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{set:(0,u.Z)((function(e,t){a((function(n){var r=new Map(n);return r.set(e,t),r}))})),setAll:(0,u.Z)((function(e){a(new Map(e))})),remove:(0,u.Z)((function(e){a((function(t){var n=new Map(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())})),get:(0,u.Z)((function(e){return r.get(e)}))}]},Te=n(42061);var Le,Re=function(e){var t=(0,o.useRef)(0),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=(0,o.useCallback)((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){u(e)}))}),[]);return(0,re.Z)((function(){cancelAnimationFrame(t.current)})),[r,a]},Oe={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Ce=function(e){var t=(0,i.__read)(Re(Oe),2),n=t[0],r=t[1];return(0,j.Z)("mousemove",(function(t){var n=t.screenX,i=t.screenY,o=t.clientX,u=t.clientY,a=t.pageX,c=t.pageY,s={screenX:n,screenY:i,clientX:o,clientY:u,pageX:a,pageY:c,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},l=(0,m.n)(e);if(l){var f=l.getBoundingClientRect(),d=f.left,v=f.top,h=f.width,p=f.height;s.elementPosX=d+window.pageXOffset,s.elementPosY=v+window.pageYOffset,s.elementX=a-s.elementPosX,s.elementY=c-s.elementPosY,s.elementW=h,s.elementH=p}r(s)}),{target:function(){return document}}),n};function Ae(){var e=navigator;return(0,f.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function xe(){var e=Ae();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}!function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"}(Le||(Le={}));var Fe=function(){var e=(0,i.__read)((0,o.useState)((function(){return(0,i.__assign)({since:void 0,online:null===navigator||void 0===navigator?void 0:navigator.onLine},xe())})),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){var e=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!0,since:new Date})}))},t=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),{online:!1,since:new Date})}))},r=function(){n((function(e){return(0,i.__assign)((0,i.__assign)({},e),xe())}))};window.addEventListener(Le.ONLINE,e),window.addEventListener(Le.OFFLINE,t);var o=Ae();return null===o||void 0===o||o.addEventListener(Le.CHANGE,r),function(){window.removeEventListener(Le.ONLINE,e),window.removeEventListener(Le.OFFLINE,t),null===o||void 0===o||o.removeEventListener(Le.CHANGE,r)}}),[]),t},Me=function(e,t){return!Object.is(e,t)};var Ie=function(e,t){void 0===t&&(t=Me);var n=(0,o.useRef)(),r=(0,o.useRef)();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current};var Ne=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearInterval(e.id);cancelAnimationFrame(e.id)};var De=function(e,t,n){var r=null===n||void 0===n?void 0:n.immediate,i=(0,p.Z)(e),u=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r&&i.current(),u.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setInterval(e,t)};var n=(new Date).getTime(),r={id:0};return r.id=requestAnimationFrame((function i(){(new Date).getTime()-n>=t&&(e(),n=(new Date).getTime()),r.id=requestAnimationFrame(i)})),r}((function(){i.current()}),t),function(){u.current&&Ne(u.current)}}),[t]),(0,o.useCallback)((function(){u.current&&Ne(u.current)}),[])};var ze=function(e){if(e.id,"undefined"===typeof cancelAnimationFrame)return clearTimeout(e.id);cancelAnimationFrame(e.id)};var Pe,je=function(e,t){var n=(0,p.Z)(e),r=(0,o.useRef)();return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=function(e,t){if(void 0===t&&(t=0),"undefined"===typeof requestAnimationFrame)return{id:setTimeout(e,t)};var n={id:0},r=(new Date).getTime();return n.id=requestAnimationFrame((function i(){(new Date).getTime()-r>=t?e():n.id=requestAnimationFrame(i)})),n}((function(){n.current()}),t),function(){r.current&&ze(r.current)}}),[t]),(0,o.useCallback)((function(){r.current&&ze(r.current)}),[])},Ve=n(12673),qe=n(813),Ue=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1],a=(0,u.Z)((function(){r(e)}));return[n,r,a]},Ye=new Set,He={xs:0,sm:576,md:768,lg:992,xl:1200};function Xe(){var e,t,n=Pe;if(Be(),n!==Pe)try{for(var r=(0,i.__values)(Ye),o=r.next();!o.done;o=r.next()){(0,o.value)()}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}var We=!1;function Be(){var e,t,n=window.innerWidth,r={},o=!1;try{for(var u=(0,i.__values)(Object.keys(He)),a=u.next();!a.done;a=u.next()){var c=a.value;r[c]=n>=He[c],r[c]!==Pe[c]&&(o=!0)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}o&&(Pe=r)}function Ge(e){He=e,Pe&&Be()}function Ke(){V.Z&&!We&&(Pe={},Be(),window.addEventListener("resize",Xe),We=!0);var e=(0,i.__read)((0,o.useState)(Pe),2),t=e[0],n=e[1];return(0,o.useEffect)((function(){if(V.Z){We||window.addEventListener("resize",Xe);var e=function(){n(Pe)};return Ye.add(e),function(){Ye.delete(e),0===Ye.size&&(window.removeEventListener("resize",Xe),We=!1)}}}),[]),t}var Je=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){return e.current=!1,function(){e.current=!0}}),[]),e};var $e=function(e){var t=Je(),n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1];return[r,(0,o.useCallback)((function(e){t.current||u(e)}),[])]};var Qe=function(e,t){void 0===t&&(t=function(){return!0});var n=(0,i.__read)(Re(),2),r=n[0],o=n[1],u=(0,p.Z)(t);return(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},u.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r};function et(e,t){void 0===t&&(t=[]);var n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1],c=(0,o.useMemo)((function(){return new Set(r)}),[r]),s=function(e){return c.has(e)},l=function(e){return c.add(e),a(Array.from(c))},f=function(e){return c.delete(e),a(Array.from(c))},d=function(){e.forEach((function(e){c.add(e)})),a(Array.from(c))},v=function(){e.forEach((function(e){c.delete(e)})),a(Array.from(c))},h=(0,o.useMemo)((function(){return e.every((function(e){return!c.has(e)}))}),[e,c]),p=(0,o.useMemo)((function(){return e.every((function(e){return c.has(e)}))&&!h}),[e,c,h]),m=(0,o.useMemo)((function(){return!h&&!p}),[h,p]);return{selected:r,noneSelected:h,allSelected:p,partiallySelected:m,setSelected:a,isSelected:s,select:(0,u.Z)(l),unSelect:(0,u.Z)(f),toggle:(0,u.Z)((function(e){s(e)?f(e):l(e)})),selectAll:(0,u.Z)(d),unSelectAll:(0,u.Z)(v),toggleAll:(0,u.Z)((function(){return p?v():d()}))}}var tt=be((function(){return V.Z?sessionStorage:void 0}));var nt=function(e){var t=function(){return new Set(e)},n=(0,i.__read)((0,o.useState)(t),2),r=n[0],a=n[1];return[r,{add:(0,u.Z)((function(e){r.has(e)||a((function(t){var n=new Set(t);return n.add(e),n}))})),remove:(0,u.Z)((function(e){r.has(e)&&a((function(t){var n=new Set(t);return n.delete(e),n}))})),reset:(0,u.Z)((function(){return a(t())}))}]},rt=function(e){var t=(0,i.__read)((0,o.useState)(e),2),n=t[0],r=t[1];return[n,(0,o.useCallback)((function(e){r((function(t){var n=(0,f.mf)(e)?e(t):e;return n?(0,i.__assign)((0,i.__assign)({},t),n):t}))}),[])]},it=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),ot="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ut="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),at="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ut):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ct=["top","right","bottom","left","width","height","size","weight"],st="undefined"!==typeof MutationObserver,lt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function u(){at(o)}function a(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);i=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),st?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ct.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ft=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},dt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ut},vt=yt(0,0,0,0);function ht(e){return parseFloat(e)||0}function pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ht(e["border-"+n+"-width"])}),0)}function mt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return vt;var r=dt(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=ht(o)}return t}(r),o=i.left+i.right,u=i.top+i.bottom,a=ht(r.width),c=ht(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=pt(r,"left","right")+o),Math.round(c+u)!==n&&(c-=pt(r,"top","bottom")+u)),!function(e){return e===dt(e).document.documentElement}(e)){var s=Math.round(a+o)-t,l=Math.round(c+u)-n;1!==Math.abs(s)&&(a-=s),1!==Math.abs(l)&&(c-=l)}return yt(i.left,i.top,a,c)}var gt="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof dt(e).SVGGraphicsElement}:function(e){return e instanceof dt(e).SVGElement&&"function"===typeof e.getBBox};function _t(e){return ot?gt(e)?function(e){var t=e.getBBox();return yt(0,0,t.width,t.height)}(e):mt(e):vt}function yt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_t(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wt=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(o.prototype);return ft(u,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),u}(t);ft(this,{target:e,contentRect:n})},Et=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new it,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new bt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new wt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),St="undefined"!==typeof WeakMap?new WeakMap:new it,Zt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lt.getInstance(),r=new Et(t,n,this);St.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Zt.prototype[e]=function(){var t;return(t=St.get(this))[e].apply(t,arguments)}}));var kt="undefined"!==typeof ut.ResizeObserver?ut.ResizeObserver:Zt,Tt=(0,n(36941).Z)(o.useLayoutEffect),Lt=V.Z?Tt:_.Z;var Rt=function(e){var t=(0,i.__read)(Re((function(){var t=(0,m.n)(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),n=t[0],r=t[1];return Lt((function(){var t=(0,m.n)(e);if(t){var n=new kt((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,i=t.clientHeight;r({width:n,height:i})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),n},Ot={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Ct=(0,i.__assign)({text:""},Ot);var At=function(e){var t=(0,i.__read)((0,o.useState)(Ct),2),n=t[0],r=t[1],u=(0,o.useRef)(n),a=(0,o.useRef)(!1);return u.current=n,(0,_.Z)((function(){var t=(0,m.n)(e,document);if(t){var o=function(){var e,t=null,o=Ot;window.getSelection&&(e=(t=window.getSelection())?t.toString():"")&&a.current&&(o=function(e){if(!e)return Ot;if(e.rangeCount<1)return Ot;var t=e.getRangeAt(0).getBoundingClientRect();return{height:t.height,width:t.width,top:t.top,left:t.left,right:t.right,bottom:t.bottom}}(t),r((0,i.__assign)((0,i.__assign)((0,i.__assign)({},n),{text:e}),o)))},c=function(e){if(window.getSelection){u.current.text&&r((0,i.__assign)({},Ct)),a.current=!1;var n=window.getSelection();n&&(n.removeAllRanges(),a.current=t.contains(e.target))}};return t.addEventListener("mouseup",o),document.addEventListener("mousedown",c),function(){t.removeEventListener("mouseup",o),document.removeEventListener("mousedown",c)}}}),[],e),n},xt=n(8406),Ft=n.n(xt),Mt=n(59818);var It=function(e,t){var n;Mt.Z&&((0,f.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var r=(0,p.Z)(e),u=null!==(n=null===t||void 0===t?void 0:t.wait)&&void 0!==n?n:1e3,a=(0,o.useMemo)((function(){return Ft()((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,(0,i.__spreadArray)([],(0,i.__read)(e),!1))}),u,t)}),[]);return(0,re.Z)((function(){a.cancel()})),{run:a,cancel:a.cancel,flush:a.flush}};var Nt=function(e,t){var n=(0,i.__read)((0,o.useState)(e),2),r=n[0],u=n[1],a=It((function(){u(e)}),t).run;return(0,o.useEffect)((function(){a()}),[e]),r};var Dt=function(e,t,n){var r=(0,i.__read)((0,o.useState)({}),2),u=r[0],a=r[1],c=It((function(){a({})}),n).run;(0,o.useEffect)((function(){return c()}),t),(0,s.Z)(e,[u])},zt=function(e,t){var n=(0,u.Z)(e),r=(0,o.useRef)(null),i=(0,o.useCallback)((function(){r.current&&clearTimeout(r.current)}),[]);return(0,o.useEffect)((function(){if((0,f.hj)(t)&&!(t<0))return r.current=setTimeout(n,t),i}),[t]),i},Pt={restoreOnUnmount:!1};var jt,Vt=function(e,t){void 0===t&&(t=Pt);var n=(0,o.useRef)(V.Z?document.title:"");(0,o.useEffect)((function(){document.title=e}),[e]),(0,re.Z)((function(){t.restoreOnUnmount&&(document.title=n.current)}))},qt=function(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){var r,i,o=(r=n.current,i=t,r?r.map((function(e,t){return Object.is(r[t],null===i||void 0===i?void 0:i[t])?-1:t})).filter((function(e){return e>=0})):i?i.map((function(e,t){return t})):[]),u=n.current;return n.current=t,e(o,u,t)}),t)},Ut=(0,r.a)(o.useLayoutEffect),Yt=function(e,t){var n=t.containerTarget,r=t.wrapperTarget,a=t.itemHeight,c=t.overscan,l=void 0===c?5:c,d=(0,p.Z)(a),v=Rt(n),h=(0,o.useRef)(!1),g=(0,i.__read)((0,o.useState)([]),2),_=g[0],y=g[1],b=(0,i.__read)((0,o.useState)({}),2),w=b[0],E=b[1],S=function(t){return(0,f.hj)(d.current)?t*d.current:e.slice(0,t).reduce((function(t,n,r){return t+d.current(r,e[r])}),0)},Z=(0,o.useMemo)((function(){return(0,f.hj)(d.current)?e.length*d.current:e.reduce((function(t,n,r){return t+d.current(r,e[r])}),0)}),[e]),k=function(){var t=(0,m.n)(n);if(t){var r=t.scrollTop,i=t.clientHeight,o=function(t){if((0,f.hj)(d.current))return Math.floor(t/d.current)+1;for(var n=0,r=0,i=0;i<e.length;i++)if((n+=d.current(i,e[i]))>=t){r=i;break}return r+1}(r),u=function(t,n){if((0,f.hj)(d.current))return Math.ceil(t/d.current);for(var r=0,i=0,o=n;o<e.length&&(i=o,!((r+=d.current(o,e[o]))>=t));o++);return i-n}(i,o),a=Math.max(0,o-l),c=Math.min(e.length,o+u+l),s=S(a);E({height:Z-s+"px",marginTop:s+"px"}),y(e.slice(a,c).map((function(e,t){return{data:e,index:t+a}})))}};(0,s.Z)((function(){var e=(0,m.n)(r);e&&Object.keys(w).forEach((function(t){return e.style[t]=w[t]}))}),[w]),(0,o.useEffect)((function(){(null===v||void 0===v?void 0:v.width)&&(null===v||void 0===v?void 0:v.height)&&k()}),[null===v||void 0===v?void 0:v.width,null===v||void 0===v?void 0:v.height,e]),(0,j.Z)("scroll",(function(e){h.current?h.current=!1:(e.preventDefault(),k())}),{target:n});return[_,(0,u.Z)((function(e){var t=(0,m.n)(n);t&&(h.current=!0,t.scrollTop=S(e),k())}))]};function Ht(e,t){void 0===t&&(t={});var n=t.reconnectLimit,r=void 0===n?3:n,a=t.reconnectInterval,c=void 0===a?3e3:a,s=t.manual,l=void 0!==s&&s,f=t.onOpen,d=t.onClose,v=t.onMessage,h=t.onError,m=t.protocols,g=(0,p.Z)(f),_=(0,p.Z)(d),y=(0,p.Z)(v),b=(0,p.Z)(h),w=(0,o.useRef)(0),E=(0,o.useRef)(),S=(0,o.useRef)(),Z=(0,o.useRef)(!1),k=(0,i.__read)((0,o.useState)(),2),T=k[0],L=k[1],R=(0,i.__read)((0,o.useState)(jt.Closed),2),O=R[0],C=R[1],A=function(){var e;w.current<r&&(null===(e=S.current)||void 0===e?void 0:e.readyState)!==jt.Open&&(E.current&&clearTimeout(E.current),E.current=setTimeout((function(){x(),w.current++}),c))},x=function(){E.current&&clearTimeout(E.current),S.current&&S.current.close();var t=new WebSocket(e,m);C(jt.Connecting),t.onerror=function(e){var n;Z.current||(A(),null===(n=b.current)||void 0===n||n.call(b,e,t),C(t.readyState||jt.Closed))},t.onopen=function(e){var n;Z.current||(null===(n=g.current)||void 0===n||n.call(g,e,t),w.current=0,C(t.readyState||jt.Open))},t.onmessage=function(e){var n;Z.current||(null===(n=y.current)||void 0===n||n.call(y,e,t),L(e))},t.onclose=function(e){var n;Z.current||(A(),null===(n=_.current)||void 0===n||n.call(_,e,t),C(t.readyState||jt.Closed))},S.current=t},F=function(){w.current=0,x()},M=function(){var e;E.current&&clearTimeout(E.current),w.current=r,null===(e=S.current)||void 0===e||e.close()};return(0,o.useEffect)((function(){l||F()}),[e,l]),(0,re.Z)((function(){Z.current=!0,M()})),{latestMessage:T,sendMessage:(0,u.Z)((function(e){var t;if(O!==jt.Open)throw new Error("WebSocket disconnected");null===(t=S.current)||void 0===t||t.send(e)})),connect:(0,u.Z)(F),disconnect:(0,u.Z)(M),readyState:O,webSocketIns:S.current}}function Xt(e,t){var n=(0,o.useRef)({});(0,o.useEffect)((function(){if(n.current){var r=Object.keys((0,i.__assign)((0,i.__assign)({},n.current),t)),o={};r.forEach((function(e){Object.is(n.current[e],t[e])||(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))}!function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"}(jt||(jt={}));var Wt=function(e,t,n){void 0===n&&(n={});var r=(0,p.Z)(e);he((function(){var e=(0,m.n)(t);if(e){var i=new MutationObserver(r.current);return i.observe(e,n),function(){i&&i.disconnect()}}}),[n],t)}},53634:function(){!function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;u.prototype.THROTTLE_TIMEOUT=100,u.prototype.POLL_INTERVAL=null,u.prototype.USE_MUTATION_OBSERVER=!0,u._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},u._resetCrossOriginUpdater=function(){n=null,r=null},u.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},u.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},u.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},u.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},u.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},u.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},u.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,u=null;this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(u=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),u&&u.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=s){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},u.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var u=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),u(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},u.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},u.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,u=l(i),a=this._rootContainsTarget(i),c=r.entry,s=e&&a&&this._computeTargetAndRootIntersection(i,u,t),f=null;this._rootContainsTarget(i)?n&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:u,rootBounds:f,intersectionRect:s});c?e&&a?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},u.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var u=i,a=h(t),c=!1;!c&&a;){var f=null,v=1==a.nodeType?window.getComputedStyle(a):{};if("none"==v.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==e)n&&!this.root?!r||0==r.width&&0==r.height?(a=null,f=null,u=null):f=r:f=o;else{var p=h(a),m=p&&l(p),g=p&&this._computeTargetAndRootIntersection(p,m,o);m&&g?(a=p,f=d(m,g)):(a=null,u=null)}else{var _=a.ownerDocument;a!=_.body&&a!=_.documentElement&&"visible"!=v.overflow&&(f=l(a))}if(f&&(u=s(f,u)),!u)break;a=a&&h(a)}return u}},u.prototype._getRootRect=function(){var t;if(this.root&&!p(this.root))t=l(this.root);else{var n=p(this.root)?this.root:e,r=n.documentElement,i=n.body;t={top:0,left:0,right:r.clientWidth||i.clientWidth,width:r.clientWidth||i.clientWidth,bottom:r.clientHeight||i.clientHeight,height:r.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},u.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},u.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!==o<r)return!0}},u.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},u.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return v(n,t)&&(!this.root||n==t.ownerDocument)},u.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},u.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=u,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function u(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),o=Math.min(e.right,t.right),u=o-i,a=r-n;return u>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:u,height:a}||null}function l(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=h(n)}return!1}function h(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function p(e){return e&&9===e.nodeType}}()},20026:function(e){!function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if((e=n[r])&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(i,o){var u=function(){this.off("change",u),i()}.bind(this);this.on("change",u);var a=(e=e||t.documentElement)[r.requestFullscreen](n);a instanceof Promise&&a.then(u).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9564],{49564:function(e,n,t){t.r(n),t.d(n,{default:function(){return q}});var r,o=t(71171),l=t(5057),a=t(33518),i=t(85493),c=t(15849),s=t(52118),u=t(11750),d=t(50762),m=t(39948),f=t(22399),p=t(12912),v=t(31290),b=t(13714),g=t(44846),h=t(38242),x=t(30746),y=t(80514),k=(t(68534),t(75e3)),j=t(54474),w=t(95299),P=t(35432),D=t(17265),_=t(60411),S=t(17022),C=t(26969),N=t(74094),Z=t(7199),z=t(96266),B=(0,l.lazy)((function(){return t.e(8886).then(t.bind(t,98886))})),L=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(6547),t.e(7298),t.e(8776),t.e(5473),t.e(6240),t.e(3898)]).then(t.bind(t,17370))})),O=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(6547),t.e(5873),t.e(8776),t.e(8205),t.e(2807),t.e(3925)]).then(t.bind(t,33925))})),I=(0,l.lazy)((function(){return Promise.all([t.e(442),t.e(193),t.e(2740)]).then(t.bind(t,62740))})),M=(0,l.lazy)((function(){return Promise.all([t.e(1237),t.e(3040),t.e(5745),t.e(3562)]).then(t.bind(t,85745))})),T=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(6547),t.e(7298),t.e(4445),t.e(6415),t.e(3216)]).then(t.bind(t,66415))})),A=(0,l.lazy)((function(){return Promise.all([t.e(105),t.e(1650),t.e(1685),t.e(5555)]).then(t.bind(t,85555))})),E=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(5873),t.e(1650),t.e(442),t.e(6615),t.e(1237),t.e(1685),t.e(6988),t.e(8205),t.e(9244),t.e(7300),t.e(6240),t.e(6189),t.e(7538)]).then(t.bind(t,47538))})),R=(0,l.lazy)((function(){return Promise.all([t.e(5873),t.e(9327),t.e(1817)]).then(t.bind(t,19310))})),U=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(6547),t.e(7298),t.e(2286)]).then(t.bind(t,62286))})),F=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(948),t.e(1650),t.e(7618),t.e(5889)]).then(t.bind(t,65889))})),V=(0,l.lazy)((function(){return Promise.all([t.e(9194),t.e(105),t.e(948),t.e(6547),t.e(7298),t.e(5873),t.e(5036),t.e(91)]).then(t.bind(t,50091))})),W=function(e){return e.children};function G(){var e,n=(0,i.useNavigate)(),t=(0,i.useParams)().tab,r=void 0===t?"overview":t,o=(0,C.y0)(),a=o.did,G=o.blocklet,q=o.error,X=o.client,$=o.actions,H=$.setBlocklet,J=$.refreshBlocklet,Q=(0,_.h6)().refresh,Y=(0,s.useLocaleContext)().t,ee=(0,l.useCallback)((function(){return(0,z.jsx)(I,{scope:a})}),[a]),ne=(null===G||void 0===G||null===(e=G.environments.find((function(e){return"BLOCKLET_APP_URL"===e.key})))||void 0===e?void 0:e.value)||window.location.origin,te=function(e){return(0,N.bV)(e,ne)},re=function(e){n("/blocklets/".concat(a,"/").concat(e))},oe=!G||(0,N.wS)(G.status)?[]:(0,h.getAppMissingConfigs)(G),le=null,ae=[{label:Y("common.overview"),value:"overview"},{breadcrumbsLabel:Y("common.components"),label:(0,z.jsx)(f.Z,{color:"error",variant:"dot",invisible:!oe.length,children:Y("common.components")}),value:"components"}];if(q)le=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(v.default,{type:"error",variant:"icon",children:(0,N.Z)(q)}),(0,z.jsx)(b.default,{onClick:function(){return J()},children:(0,z.jsx)("span",{style:{textDecoration:"underline"},children:Y("common.retry")})})]});else if(G){var ie,ce={overview:(0,z.jsx)(B,{}),configuration:L,navigation:O,services:A,members:(0,z.jsx)(T,{type:"blocklet",createPassportSvg:te}),passports:M,components:E,"audit-logs":ee,logs:R,runtime:(0,z.jsx)(U,{}),traffic:(0,z.jsx)(F,{client:X,did:a}),storage:(0,z.jsx)(V,{})};"configuration"===r&&(0,N.wS)(G.status)&&re("overview"),(0,N.wS)(G.status)||(ae.push({label:Y("common.members"),value:"members"}),ae.push({label:Y("common.passport"),value:"passports"}),ae.push({label:Y("common.configuration"),value:"configuration"})),ae.push({label:Y("common.auditLogs"),value:"audit-logs"}),G&&null!==(ie=G.children)&&void 0!==ie&&ie.length&&G.structVersion===P.APP_STRUCT_VERSION&&ae.push({label:Y("common.logs"),value:"logs"}),ae.push({label:Y("common.configNavigation"),value:"navigation"}),ae.push({label:Y("common.runtime"),value:"runtime"}),ae.push({label:Y("common.traffic"),value:"traffic"}),ae.push({label:Y("common.storage"),value:"storage"}),(0,h.getBlockletServices)(G).length&&ae.splice(2,0,{label:Y("blocklet.services"),value:"services"});var se=ce[r]||ce.overview;le=(0,z.jsxs)(y.DeletingBlockletProvider,{type:"components",children:[!(0,h.isExternalBlocklet)(G)&&(0,z.jsx)(p.default,{tabs:ae,current:r,onChange:re,scrollButtons:"auto"}),(0,z.jsx)("div",{className:"page-content",children:(0,z.jsx)(l.Suspense,{fallback:(0,z.jsx)(g.Z,{}),children:(0,l.isValidElement)(se)?se:(0,z.jsx)(se,{blocklet:G,onUpdate:function(e){e&&H(e),J()},createPassportSvg:te})})})]})}else le=(0,z.jsx)(g.Z,{});var ue=ae.find((function(e){return e.value===r})),de=G?S.G6:W;return(0,z.jsx)(de,{teamDid:a,children:(0,z.jsxs)(K,{children:[(0,z.jsxs)(d.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,z.jsx)(c.Link,{color:"textSecondary",to:"/blocklets",children:Y("common.blocklets")}),(0,z.jsx)(c.NavLink,{to:"/blocklets/".concat(a,"/overview"),style:function(e){return e?{color:"inherit"}:{}},children:Y("common.detail")}),(0,z.jsx)(u.Z,{color:"textSecondary",children:ue?ue.breadcrumbsLabel||ue.label:""})]}),(0,z.jsxs)(u.Z,{component:"div",className:"page-header",children:[(0,z.jsxs)(u.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[G?(0,z.jsx)(j.Z,{blocklet:G,style:{marginRight:16}}):null,G?(0,z.jsxs)(m.Z,{display:"flex",alignItems:"center",children:[(0,z.jsx)(m.Z,{children:(0,h.getDisplayName)(G)}),"unknown"!==(null===G||void 0===G?void 0:G.status)&&(0,z.jsx)(x.default,{size:"12px",style:{marginLeft:8},status:G.status,source:G.source})]}):"".concat(Y("common.blocklet")," ").concat(Y("common.detail"))]}),(0,z.jsx)(Z.Z,{permission:"mutate_blocklets",children:!!G&&!(0,h.isExternalBlocklet)(G)&&(0,z.jsx)(D.Z,{className:"page-actions",blocklet:G,onStart:function(){},onComplete:function(e){var t=e.action,r=e.error;r?k.default.error(r.message):"remove"===t?(Q(),n("/blocklets")):J()},variant:"group"})})]}),!!oe.length&&(0,z.jsx)(v.default,{type:"error",style:{margin:"12px 0"},children:Y("blocklet.config.missingRequired")}),(0,z.jsx)(w.Z,{}),le]})})}function q(){var e=(0,i.useParams)().did;return e?(0,z.jsx)(C.$8,{did:e,children:(0,z.jsx)(G,{})}):null}var K=a.default.main(r||(r=(0,o.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.md}))},95299:function(e,n,t){var r=t(43681).default;n.Z=w;var o=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=y(n);if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(r,l,a):r[l]=e[l]}r.default=e,t&&t.set(e,r);return r}(t(5057)),l=x(t(54935)),a=x(t(31290)),i=x(t(13714)),c=t(35432),s=x(t(57090)),u=t(52118),d=t(38242),m=x(t(75e3)),f=t(22324),p=t(33650),v=t(48208),b=t(99875),g=t(47791),h=t(96266);function x(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!==typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(y=function(e){return e?t:n})(e)}var k=function(e){var n={},t=null;return(0,d.forEachBlockletSync)(e,(function(e){n[e.meta.bundleDid]?t=(0,d.getDisplayName)(e,!0):e.meta.bundleDid&&(n[e.meta.bundleDid]=!0)})),t},j=function(e,n,t){var r=e.hostname,o=e.href;if(!n)return o;if(t){var l,a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;var i=a[0],s=(((null===(l=n.site)||void 0===l?void 0:l.domainAliases)||[]).map((function(e){return e.value})).filter(Boolean).find((function(e){return e.endsWith(c.DEFAULT_DID_DOMAIN)}))||"").replace(".".concat(c.DEFAULT_DID_DOMAIN),"");return s?o.replace(r,"".concat(s,"-").concat(i,".").concat(c.DEFAULT_IP_DOMAIN_SUFFIX)):o}return o.replace(n.meta.bundleDid,n.appPid)};function w(){var e=(0,u.useLocaleContext)().t,n=(0,v.useSessionContext)().api,t=(0,p.useBlockletContext)().blocklet,x=(0,f.useNodeContext)().inService,y=(0,o.useState)(!1),w=r(y,2),P=w[0],D=w[1],_=(0,o.useState)(5),S=r(_,2),C=S[0],N=S[1],Z=t&&t.structVersion!==c.APP_STRUCT_VERSION;return[Z&&(0,h.jsxs)(a.default,{type:"warning",style:{margin:"12px 0"},children:[(0,h.jsxs)(l.default,{display:"flex",alignItems:"center",children:[(0,h.jsx)(i.default,{variant:"contained",size:"small",color:"primary",onClick:function(){return function(){try{if("running"===t.status)return void m.default.error(e("blocklet.migrate.tip.running"));var n=k(t);if(n)return void m.default.error(e("blocklet.migrate.tip.duplicate",{name:n}));D(!0)}catch(r){m.default.error((0,b.formatError)(r))}}()},style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,h.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((function(n){return(0,h.jsx)(l.default,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(n))},n)}))]},"alert"),t&&(0,h.jsx)(s.default,{popup:!0,open:P,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:n.get,checkTimeout:3e5,onSuccess:function(){var e=j(window.location,t,x);setTimeout((function(){window.location.href=e}),5e3),N(5),setInterval((function(){N((function(e){return e-1}))}),1e3)},extraParams:{appDid:t.appDid,did:t.meta.did,wt:(0,g.getWalletType)(t,!0),title:(0,d.getDisplayName)(t)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:C>=0?e("blocklet.migrate.success",{sec:C}):"Redirecting..."},onClose:function(){return D(!1)}},"connect")]}w.propTypes={}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9933],{17265:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(33028),o=n(33665),a=n(22398),i=n(7199),l=n(24138),c=n(96266);function u(e){var t=Object.assign({},((0,o.Z)(e),e)),n=(0,i.V)(a.Z,"mutate_blocklets");return(0,c.jsx)(n,(0,r.Z)((0,r.Z)({},t),{},{useBlockletUrlEvaluation:l.BZ}))}},24138:function(e,t,n){n.d(t,{BZ:function(){return h},ZN:function(){return w}});var r=n(56666),o=n(33028),a=n(32723),i=n(34795),l=n(96234),c=n(5057),u=n(6352),s=n.n(u),d=n(35432),f=n(49714),p=n(41365),m=n.n(p),b=n(32243),v=n.n(b),g=n(52118),y=n(99875),O=v()((function(e){return m()(s()(new URL(e).origin,d.WELLKNOWN_PING_PREFIX))})),j={};function k(e){var t=e.urls,n=e.checkAccessible,r=void 0===n?m():n,o=e.disableCache,u=void 0!==o&&o,s=(0,c.useRef)(t.filter((function(e){return j[e]})).map((function(e){return j[e]}))),d=s.current.length===t.length,p=(0,c.useState)(d?s.current:[]),b=(0,l.Z)(p,2),v=b[0],g=b[1],y=(0,c.useState)(!d),O=(0,l.Z)(y,2),k=O[0],h=O[1],w=(0,c.useMemo)((function(){return!k&&v.length?v[0]:null}),[v,k]);return(0,c.useEffect)((function(){if((null===t||void 0===t?void 0:t.length)>0&&!d){var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h(!0),!u){e.next=8;break}return e.next=4,(0,f.evaluateURLs)(t,{checkAccessible:r});case 4:(n=e.sent).forEach((function(e){j[e.url]=e})),e.next=13;break;case 8:return e.next=10,(0,f.evaluateURLs)(t.filter((function(e){return!j[e]})),{checkAccessible:r});case 10:e.sent.forEach((function(e){j[e.url]=e})),n=t.map((function(e){return j[e]})).sort((function(e,t){return t.score-e.score}));case 13:g(n),h(!1);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[t,u,d]),{urlsState:v,loading:k,recommendedUrlState:w,recommendedUrl:null===w||void 0===w?void 0:w.url}}function h(e){var t=(0,c.useContext)(g.LocaleContext).locale,n=(0,c.useMemo)((function(){return e?(0,y.getBlockletUrls)({blocklet:e,params:(0,y.getBlockletUrlParams)(e,t)}):[]}),[e,t]),r=k({urls:n,checkAccessible:O});return{urls:n,loading:r.loading,recommendedUrlState:r.recommendedUrlState,recommendedUrl:r.recommendedUrl}}function w(e){var t,n=k({urls:(0,c.useMemo)((function(){return e.map((function(e){return(0,y.getAccessUrl)(e)}))}),[e]),checkAccessible:O}),a=n.urlsState,i=n.loading,l=n.recommendedUrl;if(i)t={domainsAccessibility:e.reduce((function(e,t){return(0,o.Z)((0,o.Z)({},e),{},(0,r.Z)({},t,{loading:!0}))}),{}),recommendedDomain:null};else{var u,s=a.reduce((function(e,t){var n=new URL(t.url).hostname;return e[n]=(0,o.Z)((0,o.Z)({},t),{},{domain:n}),e}),{}),d=(null===(u=a.find((function(e){return e.accessible})))||void 0===u?void 0:u.url)||l;t={domainsAccessibility:s,recommendedDomain:d?new URL(d).hostname:null}}return t}},22398:function(e,t,n){var r=n(27609).default,o=n(91461).default,a=n(43681).default;t.Z=F;var i,l=n(5057),c=z(n(55898)),u=z(n(33518)),s=n(15849),d=z(n(67654)),f=z(n(33321)),p=z(n(32810)),m=z(n(34864)),b=z(n(29379)),v=z(n(75790)),g=z(n(51280)),y=z(n(83294)),O=z(n(8226)),j=z(n(3909)),k=z(n(67623)),h=z(n(22836)),w=z(n(4106)),x=z(n(12588)),P=z(n(60001)),S=z(n(13714)),C=n(38242),E=n(52118),D=n(76811),_=n(35432),B=z(n(75e3)),L=n(99875),R=n(47791),T=n(22324),M=z(n(62923)),U=z(n(22192)),N=n(33650),Z=n(96266),A=["blocklet","onStart","onComplete","variant","hasPermission","useBlockletUrlEvaluation"];function z(e){return e&&e.__esModule?e:{default:e}}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function F(e){var t,n,i,c,u=e.blocklet,z=e.onStart,I=e.onComplete,K=e.variant,F=e.hasPermission,G=e.useBlockletUrlEvaluation,W=V(e,A),X=(0,s.useNavigate)(),Y=(0,T.useNodeContext)(),H=(0,l.useState)(null),J=a(H,2),$=J[0],ee=J[1],te=(0,l.useState)(null),ne=a(te,2),re=ne[0],oe=ne[1],ae=(0,l.useState)(!1),ie=a(ae,2),le=ie[0],ce=ie[1],ue=(0,l.useState)(null),se=a(ue,2),de=se[0],fe=se[1],pe=(0,l.useContext)(E.LocaleContext).t,me=(0,d.default)("skip-blocklet-setup",!1),be=a(me,1)[0],ve=G(u),ge=ve.loading,ye=ve.recommendedUrl,Oe=(0,N.useBlockletContext)().nftState,je=(0,C.isInProgress)(u.status),ke=(null===u||void 0===u||null===(t=u.controller)||void 0===t||null===(n=t.status)||void 0===n?void 0:n.value)===D.BLOCKLET_CONTROLLER_STATUS.suspended;null!==Oe&&void 0!==Oe&&Oe.expired||(null===u||void 0===u||null===(i=u.controller)||void 0===i||null===(c=i.status)||void 0===c?void 0:c.reason)!==D.SUSPENDED_REASON.expired||(ke=!1);var he=Y.inService,we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o(r().mark((function a(){var i,l,c,s,d;return r().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i=function(){var n=o(r().mark((function n(o){var a,i,l,c,s,d,f;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(z({action:e,blocklet:u}),ce(!0),oe(e),fe(null),a=!1,n.prev=5,"remove"!==e){n.next=11;break}return n.next=9,t(o);case 9:n.next=30;break;case 11:if("start"!==e){n.next=27;break}if((0,C.hasRunnableComponent)(u)){n.next=15;break}return B.default.error(pe("blocklet.noComponent")),n.abrupt("return");case 15:if(he||be||null!==(i=u.settings)&&void 0!==i&&i.initialized){n.next=22;break}return l=(0,R.getServerUrl)(Y.info),(c=new URL(ye)).searchParams.set("serverUrl",l),window.open(c.href),I({action:e,blocklet:u}),n.abrupt("return");case 22:return s={did:u.meta.did},n.next=25,t({input:s});case 25:n.next=30;break;case 27:return d={did:u.meta.did},n.next=30,t({input:d});case 30:if("remove"!==e){n.next=34;break}a=!0,n.next=36;break;case 34:return n.next=36,(0,L.sleep)(1e3);case 36:"reload"===e&&B.default.success(pe("blocklet.reloadSuccess")),I({action:e,blocklet:u}),n.next=44;break;case 40:n.prev=40,n.t0=n.catch(5),f="Blocklet ".concat(e," failed: ").concat((0,L.formatError)(n.t0)),I({action:e,blocklet:u,error:new Error(f)});case 44:return n.prev=44,a||ce(!1),n.finish(44);case 47:case"end":return n.stop()}}),n,null,[[5,40,44,47]])})));return function(e){return n.apply(this,arguments)}}(),l=function(){ce(!1),fe(null)},c=(0,C.getDisplayName)(u,!0),s={description:function(e,t){return(0,Z.jsxs)(k.default,{component:"div",children:[(0,Z.jsx)(k.default,{gutterBottom:!0,children:pe("blocklet.action.removeApplicationDescription")}),(0,Z.jsxs)(w.default,{name:"removeType",value:e.removeType,onChange:function(n){return t(q(q({},e),{},{removeType:n.target.value}))},children:[(0,Z.jsx)(x.default,{value:"backup",control:(0,Z.jsx)(h.default,{}),label:pe("blocklet.action.removeApplicationAfterBackup")}),(0,Z.jsx)(x.default,{value:"complete",control:(0,Z.jsx)(h.default,{}),label:pe("blocklet.action.removeApplicationComplete")})]})]})},params:{removeType:"backup"}},d={stop:{title:"".concat(pe("common.stop")," ").concat(c),description:pe("blocklet.action.stopDescription"),confirm:pe("blocklet.action.confirmStop"),cancel:pe("common.cancel"),onConfirm:i,onCancel:l},restart:{title:"".concat(pe("common.restart")," ").concat(c),description:pe("blocklet.action.restartDescription"),confirm:pe("blocklet.action.confirmRestart"),cancel:pe("common.cancel"),onConfirm:i,onCancel:l},remove:q({title:"".concat(pe("common.remove")," ").concat(c),confirm:pe("blocklet.action.confirmRemove"),cancel:pe("common.cancel"),onConfirm:i,onCancel:l},s),cancelDownload:{title:"".concat(pe("common.cancel")),description:pe("blocklet.action.cancelDownloadDescription",{name:c}),confirm:pe("common.confirm"),cancel:pe("common.cancel"),onConfirm:i,onCancel:l}},!n){a.next=9;break}fe(d[e]),a.next=11;break;case 9:return a.next=11,i();case 11:case"end":return a.stop()}}),a)})))},xe=Boolean($),Pe=function(){var e=o(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n.stopPropagation(),n.preventDefault()}catch(r){}if(ee(null),"function"!==typeof t.handler){e.next=16;break}return e.prev=3,ce(!0),oe(t.action),e.next=8,t.handler();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Blocklet ".concat(t.name," failed: "),e.t0);case 13:return e.prev=13,ce(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[3,10,13,16]])})));return function(t,n){return e.apply(this,arguments)}}(),Se=!he&&(0,C.isDeletableBlocklet)(u)&&u.structVersion===_.APP_STRUCT_VERSION?{action:"remove",icon:U.default.Remove,name:pe("common.remove"),handler:we("remove",function(){var e=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("backup"!==t.removeType){e.next=4;break}return e.next=4,Y.api.backupBlocklet({input:{appDid:u.appDid,to:"disk"}});case 4:return e.next=6,Y.api.deleteBlocklet({input:{did:u.meta.did,keepData:!1}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!0),disabled:je}:null,Ce={action:"remove",icon:U.default.Remove,name:pe("common.cancel"),handler:we("cancelDownload",Y.api.cancelDownloadBlocklet,!0)},Ee=(0,C.getAppMissingConfigs)(u),De=[{action:"start",icon:U.default.Start,name:pe("common.start"),handler:we("start",Y.api.startBlocklet),disabled:ke||"running"===u.status||"corrupted"===u.status||Ee.length>0||(0,L.isDownloading)(u.status)||u.mode===D.BLOCKLET_MODES.DEVELOPMENT||ge||je},{action:"stop",icon:U.default.Stop,name:pe("common.stop"),handler:we("stop",Y.api.stopBlocklet,!0),disabled:!["running","starting"].includes(u.status)||u.mode===D.BLOCKLET_MODES.DEVELOPMENT},{action:"restart",icon:U.default.Restart,name:pe("common.restart"),handler:we("restart",Y.api.restartBlocklet,!0),disabled:ke||"running"!==u.status||u.mode===D.BLOCKLET_MODES.DEVELOPMENT},{action:"reload",icon:U.default.Reload,name:pe("common.reload"),handler:we("reload",Y.api.reloadBlocklet),disabled:ke||"running"!==u.status||u.mode===D.BLOCKLET_MODES.DEVELOPMENT},(0,L.isDownloading)(u.status)?Ce:Se,{separator:!0},{onlyInMenu:!0,action:"config",icon:U.default.Config,name:pe("common.config"),handler:function(){X("/blocklets/".concat(u.meta.did,"/configuration"))},disabled:(0,L.isDownloading)(u.status)},{onlyInMenu:!0,action:"team",icon:U.default.Group,name:pe("common.manageTeam"),handler:function(){X("/blocklets/".concat(u.meta.did,"/members"))},disabled:(0,L.isDownloading)(u.status)},{onlyInMenu:!0,action:"log",icon:U.default.Log,name:pe("common.log"),handler:function(){X("/logs/blocklet-".concat(u.meta.did))},disabled:(0,L.isDownloading)(u.status)}].filter(Boolean);return"menu"===K?(0,Z.jsxs)(Q,{"data-cy":"blocklet-actions",children:[(0,Z.jsx)(f.default,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":u.meta.did,onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(t){}ee(e.currentTarget)},size:"small",disabled:!F||!(0,L.isDownloading)(u.status)&&le,children:(0,Z.jsx)(y.default,{})}),(0,Z.jsxs)(p.default,{id:"actions-menu",anchorEl:$,keepMounted:!0,open:xe,onClose:function(e){try{e.stopPropagation(),e.preventDefault()}catch(t){}ee(null)},PaperProps:{},children:[Ee.length>0&&(0,Z.jsxs)(P.default,{style:{maxWidth:"400px"},severity:"error",children:[pe("blocklet.config.missingRequired"),(0,Z.jsx)("br",{}),(0,Z.jsx)(s.Link,{to:"/blocklets/".concat(u.meta.did,"/components"),children:pe("blocklet.config.gotoFix")})]}),De.map((function(e,t){return e.separator?(0,Z.jsx)(m.default,{},"separator-".concat(t)):(0,Z.jsxs)(g.default,{dense:!0,onClick:function(t){return Pe(e,t)},disabled:e.disabled,"data-cy":"".concat(e.action,"-blocklet"),children:[(0,Z.jsx)(O.default,{style:{minWidth:24},children:(0,Z.jsx)(e.icon,{fontSize:"small"})}),(0,Z.jsx)(j.default,{primary:e.name})]},e.name)}))]}),de&&(0,Z.jsx)(M.default,{title:de.title,description:de.description,confirm:de.confirm,cancel:de.cancel,params:de.params,onConfirm:de.onConfirm,onCancel:de.onCancel})]}):(0,Z.jsxs)(Q,q(q({"data-cy":"blocklet-actions"},W),{},{children:[(0,Z.jsx)(b.default,{children:De.filter((function(e){return!e.separator&&!e.onlyInMenu})).map((function(e){return(0,Z.jsxs)(S.default,{title:e.name,"data-cy":"".concat(e.action,"-blocklet"),onClick:function(){return Pe(e)},disabled:Boolean(e.disabled)||le,children:[re===e.action&&le&&je?(0,Z.jsx)(v.default,{size:16}):(0,Z.jsx)(e.icon,{}),(0,Z.jsx)("span",{className:"blocklet-action-text",children:e.name})]},e.name)}))}),de&&(0,Z.jsx)(M.default,{title:de.title,description:de.description,confirm:de.confirm,cancel:de.cancel,params:de.params,onConfirm:de.onConfirm,onCancel:de.onCancel})]}))}F.propTypes={blocklet:c.default.object.isRequired,onStart:c.default.func.isRequired,onComplete:c.default.func.isRequired,variant:c.default.oneOf(["menu","group"]),hasPermission:c.default.bool,useBlockletUrlEvaluation:c.default.func},F.defaultProps={variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:function(){var e,t;return{loading:!1,recommendedUrl:null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href}}};var G,W,Q=u.default.div(i||(G=["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n .MuiButton-root {\n padding: 4px;\n font-size: 10px;\n }\n }\n"],W||(W=G.slice(0)),i=Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(W)}}))),(function(e){return e.theme.breakpoints.values.sm}))},54474:function(e,t,n){t.Z=b;var r=s(n(55898)),o=s(n(1793)),a=s(n(34916)),i=n(76811),l=s(n(74655)),c=n(96266),u=["blocklet","style","size"];function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e){var t,n=e.blocklet,r=e.style,s=e.size,d=m(e,u),p=(0,l.default)({blocklet:n}).logoUrl,b=d.variant,v=(0,c.jsx)("img",{src:p,alt:"",style:{width:s}});n.meta.logo||((null===(t=(n.configs||[]).find((function(e){return e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE})))||void 0===t?void 0:t.value)||(v=(0,c.jsx)(a.default,{did:n.meta.did||"",responsive:!0})));return(0,c.jsx)(o.default,f(f({variant:b||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r)},d),{},{children:v}))}b.propTypes={blocklet:r.default.object.isRequired,style:r.default.object,size:r.default.oneOfType([r.default.number,r.default.string])},b.defaultProps={style:{},size:40}},22192:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(27773)),o=d(n(22754)),a=d(n(98451)),i=d(n(32207)),l=d(n(35258)),c=d(n(17545)),u=d(n(49647)),s=d(n(70648));function d(e){return e&&e.__esModule?e:{default:e}}var f={Start:o.default,Stop:a.default,Restart:i.default,Reload:l.default,Remove:r.default,Config:c.default,Log:u.default,Group:s.default};t.default=f},30746:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=O;var r=n(5057),o=p(n(55898)),a=p(n(75790)),i=p(n(15747)),l=n(52118),c=n(38242),u=p(n(238)),s=p(n(56048)),d=n(96266),f=["status","variant","source"];function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y={yellow:"#FFCF71",grey:"#888888"};function O(e){var t=e.status,n=e.variant,o=(e.source,g(e,f)),p=(0,r.useContext)(l.LocaleContext).t,m={added:y.grey,waiting:y.yellow,downloading:y.yellow,downloaded:y.grey,installing:y.yellow,installed:y.grey,starting:y.yellow,running:"success",stopping:y.yellow,stopped:y.grey,error:"error",upgrading:y.yellow,restarting:y.yellow,corrupted:"error",deleting:y.yellow},v=(0,c.isInProgress)(t),O=p("blocklet.status.".concat(t));return"dot"===n?(0,d.jsx)(i.default,{title:p("blocklet.statusTip",{status:O}),children:(0,d.jsx)(u.default,b({color:m[t]},o))}):(0,d.jsxs)(s.default,b(b({type:{added:"primary",waiting:"warning",downloading:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning"}[t]},o),{},{children:[v&&(0,d.jsx)(a.default,{size:12,color:"inherit",style:{marginRight:5}}),O]}))}O.propTypes={status:o.default.string.isRequired,variant:o.default.oneOf(["dot","tag"]),source:o.default.string},O.defaultProps={variant:"tag",source:""}},33650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BlockletProvider=t.BlockletContext=t.BlockletConsumer=void 0,t.useBlockletContext=function(){return(0,r.useContext)(o)};var r=n(5057),o=(0,r.createContext)({});t.BlockletContext=o;var a=o.Provider,i=o.Consumer;t.BlockletConsumer=i,t.BlockletProvider=a},80514:function(e,t,n){var r=n(73408).default,o=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DeletingBlockletProvider=d,t.useDeletingBlockletContext=function(){return(0,a.useContext)(s)};var a=n(5057),i=u(n(55898)),l=u(n(69163)),c=n(96266);function u(e){return e&&e.__esModule?e:{default:e}}var s=(0,a.createContext)({});function d(e){var t=e.children,n=e.type,i=(0,a.useState)([]),u=o(i,2),d=u[0],f=u[1],p=(0,a.useRef)([]),m=function(e){if(p.current.includes(e)){var t=p.current.filter((function(t){return t!==e}));f(t),p.current=t}};return(0,c.jsx)(s.Provider,{value:{type:n,deletingBlocklets:d,addDeletingDid:function(e){if(!p.current.includes(e)){var t=[].concat(r(p.current),[e]);f(t),p.current=t}},removeDeletingDid:m,matchDeletingDid:function(e){var t=d.filter((function(t){return e.find((function(e){return e===t}))}));(0,l.default)(t,d).forEach((function(e){return m(e)}))}},children:t})}d.propTypes={type:i.default.string,children:i.default.node.isRequired},d.defaultProps={type:"blocklets"}},238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=(r=n(33518))&&r.__esModule?r:{default:r};var i,l,c={success:"#3ab39d",error:"#D0021B"},u="10px",s=a.default.div(o||(i=["\n display: inline-block;\n width: ",";\n height: ",";\n background: ",";\n border-radius: 100%;\n"],l||(l=i.slice(0)),o=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}}))),(function(e){return e.size||u}),(function(e){return e.size||u}),(function(e){return c[e.color]||e.color||c.success}));t.default=s},74655:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r=e.blocklet,l=(0,a.useNodeContext)().inService,c=(null===(t=window.env)||void 0===t?void 0:t.apiPrefix)||"/",u="?v=".concat(null===r||void 0===r||null===(n=r.meta)||void 0===n?void 0:n.version).concat((0,i.isInstalling)(null===r||void 0===r?void 0:r.status)?"~":"");return{logoUrl:(0,o.default)(c,"/blocklet/logo/".concat(l?"":r.meta.did),u)}};var r,o=(r=n(6352))&&r.__esModule?r:{default:r},a=n(22324),i=n(99875)},56048:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=l(n(55898)),o=l(n(39905)),a=n(96266),i=["children","style"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){var t=e.children,n=e.style,r=d(e,i);return(0,a.jsx)(o.default,u(u({style:n},r),{},{children:t}))}f.propTypes={children:r.default.any.isRequired,style:r.default.object},f.defaultProps={style:{}}}}]);
|