@abtnode/webapp 1.16.26-beta-351de484 → 1.16.26-beta-cca12425
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 +8 -8
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{4296.1d4de443.chunk.js → 4296.8887004f.chunk.js} +1 -1
- package/build/static/js/4804.0799b676.chunk.js +2 -0
- package/build/static/js/506.fe1f4c17.chunk.js +1 -0
- package/build/static/js/{5312.f3f7c64e.chunk.js → 5312.bb165dac.chunk.js} +1 -1
- package/build/static/js/9132.50e5bf38.chunk.js +1 -0
- package/build/static/js/9282.21bb92f3.chunk.js +2 -0
- package/build/static/js/main.38a3525f.js +2 -0
- package/package.json +1 -1
- package/build/static/js/4804.c4932a07.chunk.js +0 -2
- package/build/static/js/506.7795a2df.chunk.js +0 -1
- package/build/static/js/9132.8820847d.chunk.js +0 -1
- package/build/static/js/9282.21ff751b.chunk.js +0 -2
- package/build/static/js/main.6e41cfc3.js +0 -2
- /package/build/static/js/{4804.c4932a07.chunk.js.LICENSE.txt → 4804.0799b676.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9282.21ff751b.chunk.js.LICENSE.txt → 9282.21bb92f3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.6e41cfc3.js.LICENSE.txt → main.38a3525f.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 9282.21bb92f3.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9282],{87806:(e,i,t)=>{"use strict";i.Z=void 0;(n=t(5057))&&n.__esModule;var n,o=t(96266);function r(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?r(Object(t),!0).forEach((function(i){a(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}function a(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,i||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var l=function(e){return(0,o.jsx)("svg",s(s({},e),{},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},l.displayName="revoke";i.Z=l},4962:(e,i,t)=>{"use strict";t.d(i,{qY:()=>Z,YZ:()=>fe});t(1192),t(2484),t(5873),t(79787);var n=t(96266),o=t(47220),r=t(76223),s=t(68420),a=t(11337),l=t(43907),c=t(55498),d=t(13727),u=t(72113),p=t(7469),m=t(25228),b=t(39948),f=t(67680),w=t(99360),h=t(55898),v=t.n(h),g=t(5057),x=t(56556);function y(e){let{optionalComponent:i,index:t,installStatus:o,hasPermission:s,t:a}=e;const l="stopped"===o||"running"===o;return(0,n.jsxs)(b.Z,{children:[0===t?null:(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[(0,n.jsx)("img",{style:{width:60,height:60,minWidth:60,minHeight:60},src:i.logoUrl,alt:i.meta.title}),(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[(0,n.jsxs)(b.Z,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var e;return null===(e=i.meta)||void 0===e||e.did,void window.open(null===i||void 0===i?void 0:i.storeUrl,"_blank")},children:[i.meta.title,(0,n.jsxs)(b.Z,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[i.meta.version,(0,n.jsx)(c.JO,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:r.E.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),(0,n.jsx)(b.Z,{sx:{marginTop:0,opacity:.7},children:i.meta.description}),(0,n.jsx)(b.Z,{sx:{display:s?"flex":"none",flexDirection:"row",gap:1},children:o?(0,n.jsx)(b.Z,{sx:{marginTop:2,opacity:.7},children:l?(0,n.jsx)(x.Z,{variant:"contained",onClick:()=>{window.location.reload()},children:a("componentInstallerRefresh")},"refresh"):(0,n.jsx)(x.Z,{disabled:!0,sx:{color:"#333"},startIcon:(0,n.jsx)(c.JO,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:o},"status")}):(0,n.jsx)(x.Z,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var e;return null===(e=i.meta)||void 0===e||e.did,void window.open(null===i||void 0===i?void 0:i.installUrl,"_blank")},children:a("componentInstallerInstall")},"install")}),l?(0,n.jsx)(b.Z,{sx:{marginTop:2,opacity:.7},children:a("componentInstallerSuccessInstalled")}):null]})]})]})}y.propTypes={t:v().func.isRequired,optionalComponent:v().object.isRequired,index:v().number.isRequired,installStatus:v().string,hasPermission:v().bool.isRequired},y.defaultProps={installStatus:""};const k={zh:{componentInstallerTitle:"\u7f3a\u5c11\u7ec4\u4ef6",componentInstallerInstall:"\u5b89\u88c5",componentInstallerClose:"\u5173\u95ed",componentInstallerRefresh:"\u91cd\u8f7d\u9875\u9762",componentInstallerSuccessInstalled:"\u5b89\u88c5\u6210\u529f\uff0c\u8bf7\u91cd\u8f7d\u9875\u9762\u67e5\u770b\u53d8\u5316\u3002",componentInstallerSuggestions:"\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u5b89\u88c5\u8be5\u7ec4\u4ef6\u3002",componentInstallerNoDefinedInBlockletYML:"\u7ec4\u4ef6\u672a\u5728 blocklet.yml \u4e2d\u5b9a\u4e49"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}};var j=t(74958),S=t(6352),I=t.n(S);const O=e=>"string"===typeof e?new Set(e.split(";;")):new Set(e);const C=function(e){let{did:i,onInstalled:t,onError:n}=e;const o=Array.isArray(i)?i.join(";;"):i,[r,s]=(0,g.useState)({}),a=(0,g.useRef)({onInstalled:t,onError:n});a.current={onInstalled:t,onError:n};const{optionalComponents:l,componentMountPoints:c}=window.blocklet,d=(0,g.useMemo)((()=>{var e;if(!l||!l.length)return[];const i=O(o),t=l.filter((e=>i.has(e.meta.did)));return null===(e=t?a.current.onError:a.current.onInstalled)||void 0===e||e(t),t}),[o,l]),u=(0,g.useMemo)((()=>{if(d.length)return!0;const e=O(o);return(c||[]).find((i=>e.has(i.did)))}),[d,c,o]);return d.forEach((e=>{e.storeUrl=I()(e.meta.homepage,"blocklets",e.meta.did),e.installUrl=I()(window.blocklet.appUrl,j.Bu,"/admin/components?install-component=".concat(e.meta.did))})),(0,g.useEffect)((()=>{const e=e=>{var i,t;if(e.origin===window.blocklet.appUrl&&"component-installer"===(null===(i=e.data)||void 0===i?void 0:i.kind)&&null!==(t=e.data)&&void 0!==t&&null!==(t=t.blocklet)&&void 0!==t&&t.children){var n;let i=!1;const t=O(o);null===(n=e.data)||void 0===n||null===(n=n.blocklet)||void 0===n||n.children.forEach((e=>{var n;t.has(null===(n=e.meta)||void 0===n?void 0:n.did)&&(i=!0,s((i=>{var t;return{...i,[null===(t=e.meta)||void 0===t?void 0:t.did]:e.status||"waiting"}})))})),i||s({})}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[o]),{optComponents:d,installed:!d.length&&u,installStatus:r,setInstallStatus:s,definedInBlockletYML:u}};function T(e){let{warnIcon:i,did:t,noPermissionMute:h,onInstalled:v,onError:x,children:j,closeByOutSize:S,onClose:I,fallback:O,disabled:T,roles:Z=["owner","admin"]}=e;const{locale:_}=(0,s.PE)(),E=(0,w.Z)((function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.I)(k,e,_,"en",i)})),{installed:N,optComponents:A,installStatus:R,definedInBlockletYML:P}=C({did:t,onInstalled:v,onError:x}),z=(0,g.useContext)(o.B3),B=()=>{null===I||void 0===I||I(!1)};return T?j:(0,n.jsx)(l.Z,{session:null===z||void 0===z?void 0:z.session,roles:Z,children:e=>{let{hasPermission:o}=e;return N?j:h&&!o?O||null:"function"===typeof j?(0,n.jsxs)(n.Fragment,{children:[O,j({hasPermission:o,optComponents:A,installStatus:R})]}):(0,n.jsxs)(n.Fragment,{children:[O,(0,n.jsx)(u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),S&&B()},children:(0,n.jsx)(p.Z,{in:!0,timeout:350,children:(0,n.jsx)(m.Z,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:r.E.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:"0px 8px 16px 0px ".concat(r.E.gray6,", 0px 0px 0px 1px ").concat(r.E.gray6)},children:P?(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[i||(0,n.jsx)(c.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,n.jsx)(b.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:E("componentInstallerTitle")}),(0,n.jsx)(b.Z,{sx:{flex:1}}),I?(0,n.jsx)(f.Z,{variant:"outlined",className:"button",onClick:B,children:(0,n.jsx)(d.default,{})}):null]}),(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsx)(b.Z,{sx:{maxHeight:"70vh",overflowY:"auto"},children:A.map(((e,i)=>{var t,r;return(0,n.jsx)(y,{t:E,hasPermission:o,index:i,optionalComponent:e,installStatus:R[null===(t=e.meta)||void 0===t?void 0:t.did]},(null===(r=e.meta)||void 0===r?void 0:r.did)||i)}))}),o?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsx)(b.Z,{sx:{padding:"20px 24px"},children:(0,n.jsx)(b.Z,{sx:{opacity:1},children:E("componentInstallerSuggestions")})})]})]}):(0,n.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[i||(0,n.jsx)(c.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,n.jsx)(b.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:E("componentInstallerTitle")}),(0,n.jsx)(b.Z,{sx:{flex:1}}),I?(0,n.jsx)(f.Z,{variant:"outlined",className:"button",onClick:B,children:(0,n.jsx)(d.default,{})}):null]}),(0,n.jsx)(b.Z,{sx:{width:"100%",height:"1px",backgroundColor:r.E.gray6}}),(0,n.jsxs)(b.Z,{sx:{padding:"20px 24px",marginTop:0},children:[E("componentInstallerNoDefinedInBlockletYML"),": ",t]})]})})})})]})}})}function Z(e){return window.blocklet?(0,n.jsx)(T,{...e}):e.children}T.propTypes={disabled:v().bool,warnIcon:v().node,did:v().oneOfType([v().string,v().arrayOf(v().string)]).isRequired,noPermissionMute:v().bool,onInstalled:v().func,onError:v().func,children:v().any.isRequired,closeByOutSize:v().bool,onClose:v().func,fallback:v().node,roles:v().array},T.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]},Z.propTypes={...T.propTypes,children:v().any.isRequired},Z.defaultProps={...T.defaultProps};t(28018),t(94464),t(25710),t(28726);var _=t(13128);t(71569),t(25842);t(60251);var E=t(95712);t(47685),t(72966),t(92706);t(23939);var N=t(49384);t(21998);t(94457);var A=t(26538),R=t.n(A),P=t(87806);function z(e){let{passport:i,user:t,color:o,width:r,icon:a,children:l,createPassportSvg:c,...d}=e;const{t:u}=(0,s.PE)();return(0,n.jsxs)(b.Z,{...d,sx:{display:"flex",alignItems:"center",...null===d||void 0===d?void 0:d.sx},children:[(0,n.jsx)(b.Z,{className:"passport-item__display",dangerouslySetInnerHTML:{__html:c({title:i.title||i.name,issuer:i.issuer&&i.issuer.name,issuerDid:i.issuer&&i.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:i.revoked,preferredColor:o,width:r})}}),(0,n.jsxs)(b.Z,{className:"passport-item__body",sx:{p:0,ml:3,mt:0},children:[(0,n.jsxs)(b.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:[R()(i.title),(0,n.jsxs)(b.Z,{className:"passport-item__status-icon",sx:{svg:{fill:"#bfbfbf",height:"1.2em",marginLeft:"0.4em"}},children:[a,i.revoked&&(0,n.jsx)(P.Z,{})]})]}),i.expirationDate&&(0,n.jsx)(b.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:u("team.passport.validUntil",{date:i.expirationDate})}),l]})]})}z.propTypes={passport:v().any.isRequired,user:v().any.isRequired,color:v().string.isRequired,createPassportSvg:v().func.isRequired,icon:v().any,children:v().any,width:v().number},z.defaultProps={icon:null,children:null,width:150};t(30278),t(76818);const B=(0,g.createContext)({}),{Provider:L,Consumer:M}=B;t(82790),t(86229),t(82434),t(14506),t(16967);const D=new(t(99132).xb);var U=t(71171),q=(t(35966),t(33518)),W=(t(88577),t(75506),t(10458)),F=t.n(W);F().defaults.timeout=1e4;F().create();t.p;t(22256);t.p;var H;(0,q.Z)(b.Z)(H||(H=(0,U.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"])));var V;(0,q.Z)(b.Z)(V||(V=(0,U.Z)(["\n height: 100%;\n overflow-y: auto;\n"])));var Y=t(75760),G=t(79366),J=t(93066),$=t(62219),X=t.n($),K=t(35833),Q=t.n(K),ee=t(14520);class ie extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const te=e=>void 0===globalThis.DOMException?new ie(e):new DOMException(e),ne=e=>{const i=void 0===e.reason?te("This operation was aborted."):e.reason;return i instanceof Error?i:te(i)};const oe=Symbol("skip");async function re(e,i){return async function(e,i){let{concurrency:t=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((r,s)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError("Expected `input` to be either an `Iterable` or `AsyncIterable`, got (".concat(typeof e,")"));if("function"!==typeof i)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(t)&&t!==Number.POSITIVE_INFINITY||!(t>=1))throw new TypeError("Expected `concurrency` to be an integer from 1 and up or `Infinity`, got `".concat(t,"` (").concat(typeof t,")"));const a=[],l=[],c=new Map;let d=!1,u=!1,p=!1,m=0,b=0;const f=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),w=e=>{d=!0,u=!0,s(e)};o&&(o.aborted&&w(ne(o)),o.addEventListener("abort",(()=>{w(ne(o))})));const h=async()=>{if(u)return;const e=await f.next(),t=b;if(b++,e.done){if(p=!0,0===m&&!u){if(!n&&l.length>0)return void w(new AggregateError(l));if(u=!0,0===c.size)return void r(a);const e=[];for(const[i,t]of a.entries())c.get(i)!==oe&&e.push(t);r(e)}}else m++,(async()=>{try{const n=await e.value;if(u)return;const o=await i(n,t);o===oe&&c.set(t,o),a[t]=o,m--,await h()}catch(o){if(n)w(o);else{l.push(o),m--;try{await h()}catch(o){w(o)}}}})()};(async()=>{for(let i=0;i<t;i++){try{await h()}catch(e){w(e);break}if(p||d)break}})()}))}(e,(e=>e()),i)}var se=t(75239),ae=t(11750),le=t(19654);function ce(e){let{user:i,sessionUser:t}=e;const o=(0,J.Z)((()=>{var e;return null===(e=(null===i||void 0===i?void 0:i.passports)||[])||void 0===e?void 0:e.find((e=>e.name===t.role))}),[null===i||void 0===i?void 0:i.passports,null===t||void 0===t?void 0:t.role]);return(0,n.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(E.Z,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did}),(0,n.jsxs)(b.Z,{children:[(0,n.jsxs)(b.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(ae.Z,{sx:{whiteSpace:"normal",wordBreak:"break-all"},children:t.fullName}),(0,n.jsx)(le.Z,{label:(null===o||void 0===o?void 0:o.title)||(null===o||void 0===o?void 0:o.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:r.E.textBase,borderColor:r.E.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5}})]}),(0,n.jsx)(ae.Z,{variant:"body2",color:"grey",children:t.email})]})]})}const de={zh:{confirm:"\u786e\u8ba4",cancel:"\u53d6\u6d88",visitorId:"\u8bbe\u5907\u6807\u8bc6",deviceType:"\u8bbe\u5907\u7c7b\u578b",platform:"\u64cd\u4f5c\u7cfb\u7edf",walletOS:"\u94b1\u5305\u7c7b\u578b",role:"\u89d2\u8272",fullname:"\u59d3\u540d",email:"\u90ae\u7bb1",avatar:"\u5934\u50cf",user:"\u7528\u6237",createdAt:"\u9996\u6b21\u6d3b\u52a8\u65f6\u95f4",updatedAt:"\u6700\u8fd1\u6d3b\u52a8\u65f6\u95f4",lastLoginIp:"\u6700\u8fd1\u6d3b\u52a8\u5730\u5740",actions:"\u64cd\u4f5c",logoutAll:"\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd",logoutAllTips:"\u4e0d\u4f1a\u6ce8\u9500\u5f53\u524d\u4f1a\u8bdd",logout:"\u6ce8\u9500",currentSession:"\u5f53\u524d\u4f1a\u8bdd",unknown:"\u672a\u77e5",expired:"\u5df2\u8fc7\u671f",remove:"\u5220\u9664",logoutThisSession:"\u6ce8\u9500\u6307\u5b9a\u4f1a\u8bdd",logoutThisSessionConfirm:"\u786e\u5b9a\u8981\u6ce8\u9500\u6b64\u4f1a\u8bdd\u5417?",logoutAllSession:"\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd",logoutAllSessionConfirm:"\u786e\u5b9a\u8981\u6ce8\u9500\u6240\u6709\u4f1a\u8bdd\u5417?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},ue="Reserved IP",pe="ip-region-cache";async function me(e){let i="",t={};try{const e=localStorage.getItem(pe);e&&(t=JSON.parse(e))}catch{t={}}if(t[e])i=t[e];else{try{i=await async function(e){const i="https://api.ip.sb/geoip/".concat(e),t=await fetch(i),n=await t.json();let o="";return n.error?n.reserved&&(o=ue):o=[n.country,n.region,n.city].filter(Boolean).join("/"),o}(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!i)try{i=await async function(e){const i="https://ipapi.co/".concat(e,"/json/"),t=await fetch(i),n=await t.json();let o="";return n.error?n.reserved&&(o=ue):o=[n.country_name,n.region,n.city].filter(Boolean).join("/"),o}(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(i){const n=Object.keys(t);n.length>100&&delete t[n[0]],t[e]&&delete t[e],t[e]=i,localStorage.setItem(pe,JSON.stringify(t))}return i}const be=e=>new(Q())(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Q().BROWSER.NAME,Q().BROWSER.VERSION]]}).getResult();function fe(e){let{user:i,showAction:t=!0,showUser:o=!0}=e;const r=(0,ee.OP)(),{locale:l}=(0,s.PE)(),{confirmApi:c,confirmHolder:d}=(0,_.N4)(),u=(0,w.Z)((function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.I)(de,e,l,"en",i)})),p=(0,w.Z)((async()=>{let e=null===i||void 0===i?void 0:i.userSessions;e||(e=await D.userSession.getUserSessions({did:i.did}));try{var t;const i=null===(t=e)||void 0===t?void 0:t.map(((e,i)=>[i,e.lastLoginIp])).filter((e=>!!e[1])),n=null===i||void 0===i?void 0:i.map((e=>e[1])),o=await async function(e){return Promise.all(e.map((e=>me(e))))}(n);for(let t=0;t<o.length;t++){const n=o[t],r=i[t];e[r[0]].ipRegion=n}}catch(o){console.warn("Failed to convert ip to region"),console.error(o)}const n=(new Date).getTime();return X()(e,(e=>e.visitorId===r?-1:n-new Date(e.updatedAt).getTime()))})),m=(0,G.Z)(p),f=(0,J.Z)((()=>m.data||[]),[m.data]),h=(0,J.Z)((()=>f.reduce(((e,i)=>(e[i.lastLoginIp]=i.ipRegion,e)),{})),[f]),v=(0,w.Z)((e=>{let{visitorId:i}=e;c.open({title:u("logoutThisSession"),content:u("logoutThisSessionConfirm"),confirmButtonText:u("confirm"),cancelButtonText:u("cancel"),onConfirm:async()=>{await D.user.logout({visitorId:i}),m.refresh(),c.close()}})})),g=(0,J.Z)((()=>f.filter((e=>e.visitorId!==r))),[f]),y=(0,w.Z)((()=>{c.open({title:u("logoutAllSession"),content:u("logoutAllSessionConfirm"),confirmButtonText:u("confirm"),cancelButtonText:u("cancel"),onConfirm:async()=>{const e=g.map((e=>()=>D.user.logout({visitorId:e.visitorId})));await re(e,{concurrency:3,stopOnError:!1}),m.refresh(),c.close()}})})),k=[];t&&k.push((0,n.jsx)(se.Z,{title:u("logoutAllTips"),children:(0,n.jsx)(x.Z,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:y,disabled:0===g.length,children:u("logoutAll")})},"logoutAll"));const j=(0,J.Z)((()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600})),[]),S=[{label:u("platform"),name:"platform",options:{customBodyRenderLite:e=>{var i,t;const o=f[e],r=be(o.ua);return(0,n.jsx)(b.Z,{children:[null===(i=r.os)||void 0===i?void 0:i.name,null===(t=r.os)||void 0===t?void 0:t.version].filter(Boolean).join("/")||u("unknown")})}}},{label:u("deviceType"),name:"deviceType",options:{customBodyRenderLite:e=>{var i,t;const o=f[e],r=be(o.ua);return(0,n.jsx)(b.Z,{children:[null===(i=r.browser)||void 0===i?void 0:i.name,null===(t=r.browser)||void 0===t?void 0:t.version].filter(Boolean).join("/")||u("unknown")})}}},{label:u("walletOS"),name:"walletOS",options:{customBodyRenderLite:e=>{var i;const t=f[e];return(0,n.jsx)(b.Z,{children:(null===(i=t.extra)||void 0===i?void 0:i.walletOS)||u("unknown")})}}},o&&{label:u("user"),name:"user",options:{customBodyRenderLite:e=>{const t=f[e];return(0,n.jsx)(ce,{sessionUser:t.user,user:i})}}},{label:u("createdAt"),name:"createdAt",options:{customBodyRenderLite:e=>{const i=f[e];return i.createdAt?(0,n.jsx)(N.Z,{value:i.createdAt,relativeRange:2592e5,locale:l}):u("unknown")}}},{label:u("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:e=>{const i=f[e];return"expired"===i.status?u("expired"):(0,n.jsx)(N.Z,{value:i.updatedAt,relativeRange:2592e5,locale:l})}}},{label:u("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:e=>{const i=f[e];return(0,n.jsx)(b.Z,{children:h[i.lastLoginIp]?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ae.Z,{variant:"body2",children:h[i.lastLoginIp]}),(0,n.jsx)(ae.Z,{variant:"body2",color:"grey",children:i.lastLoginIp||u("unknown")})]}):(0,n.jsx)(ae.Z,{children:i.lastLoginIp||u("unknown")})})}}},t&&{label:u("actions"),name:"actions",options:{customBodyRenderLite:e=>{const i=f[e];return(0,n.jsx)(b.Z,{children:(0,n.jsx)(x.Z,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:r===i.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>v({visitorId:i.visitorId}),children:"expired"===i.status?u("remove"):r===i.visitorId?u("currentSession"):u("logout")})})}}}].filter(Boolean);return(0,n.jsxs)(b.Z,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[d,(0,n.jsx)(Y.Z,{locale:l,data:f,columns:S,customButtons:k,options:j,loading:m.loading})]})}t(21764),t(25125),t(13573),t(8708),t(54198)},30278:(e,i,t)=>{var n=t(31104),o=t(43676);e.exports=function(e,i){return e&&e.length?o(e,n(i,2)):[]}},94166:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)},o=this&&this.__rest||function(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};i.__esModule=!0;var r=t(5057),s=t(18294),a=t(49266);i.default=function(e){var i=e.delay,t=void 0===i?0:i,l=e.type,c=void 0===l?"text":l,d=e.color,u=void 0===d?"#CDCDCD":d,p=e.rows,m=void 0===p?3:p,b=e.ready,f=e.firstLaunchOnly,w=e.children,h=e.className,v=e.showLoadingAnimation,g=e.customPlaceholder,x=o(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),y=r.useState(b),k=y[0],j=y[1],S=r.useRef(null);return r.useEffect((function(){f||!k||b?b&&(S.current&&window.clearTimeout(S.current),k||j(!0)):t&&t>0?S.current=window.setTimeout((function(){j(!1)}),t):j(!1)}),[f,k,b,t]),r.useEffect((function(){return function(){S.current&&window.clearTimeout(S.current)}}),[]),k?w:function(){var e=v?a.joinClassNames("show-loading-animation",h):h;if(g&&r.isValidElement(g)){var i=a.joinClassNames(g.props.className,e);return r.cloneElement(g,{className:i})}if(g)return g;var t=s[c];return r.createElement(t,n({},x,{color:u,rows:m,className:e}))}()}},22256:(e,i,t)=>{"use strict";var n=t(94166);i.Z=n.default},98392:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)};i.__esModule=!0;var o=t(5057),r=t(49354),s=t(12208),a=t(49266),l={display:"flex"};i.default=function(e){var i=e.className,t=e.style,c=e.color,d=e.rows;return o.createElement("div",{className:a.joinClassNames("media-block",i),style:n(n({},l),t)},o.createElement(s.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),o.createElement(r.default,{color:c,rows:d}))}},16102:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)};i.__esModule=!0;var o=t(5057),r=t(49266);i.default=function(e){var i=e.className,t=e.style,s={backgroundColor:e.color,width:"100%",height:"100%",marginRight:10};return o.createElement("div",{className:r.joinClassNames("rect-shape",i),style:n(n({},s),t)})}},12208:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)};i.__esModule=!0;var o=t(5057),r=t(49266);i.default=function(e){var i=e.className,t=e.style,s={backgroundColor:e.color,borderRadius:"500rem",width:"100%",height:"100%"};return o.createElement("div",{className:r.joinClassNames("round-shape",i),style:n(n({},s),t)})}},49354:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)};i.__esModule=!0;var o=t(5057),r=t(13672),s=t(49266),a={width:"100%"},l=[97,100,94,90,98,95,98,40];i.default=function(e){var i=e.rows,t=e.lineSpacing,c=e.color,d=e.style,u=e.className,p=e.widths,m=void 0===p?l:p,b=function(e){return{maxHeight:100/(2*i-1)+"%",width:m[(e+m.length)%m.length]+"%"}};return o.createElement("div",{className:s.joinClassNames("text-block",u),style:n(n({},a),d)},Array.apply(null,Array(i)).map((function(e,i){return o.createElement(r.default,{color:c,style:b(i),lineSpacing:0!==i?t:0,key:i})})))}},13672:function(e,i,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++)for(var o in i=arguments[t])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e},n.apply(this,arguments)};i.__esModule=!0;var o=t(5057),r=t(49266);i.default=function(e){var i=e.className,t=e.maxHeight,s=e.color,a=e.lineSpacing,l=void 0===a?"0.7em":a,c=e.style,d={maxHeight:t,width:"100%",height:"1em",backgroundColor:s,marginTop:l};return o.createElement("div",{className:r.joinClassNames("text-row",i),style:n(n({},d),c)})}},18294:(e,i,t)=>{"use strict";i.__esModule=!0,i.media=i.text=i.rect=i.round=i.textRow=i.MediaBlock=i.TextBlock=i.RectShape=i.RoundShape=i.TextRow=void 0;var n=t(13672);i.TextRow=n.default;var o=t(12208);i.RoundShape=o.default;var r=t(16102);i.RectShape=r.default;var s=t(49354);i.TextBlock=s.default;var a=t(98392);i.MediaBlock=a.default,i.textRow=n.default,i.round=o.default,i.rect=r.default,i.text=s.default,i.media=a.default},49266:(e,i)=>{"use strict";i.__esModule=!0,i.joinClassNames=void 0,i.joinClassNames=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.filter((function(e){return e})).join(" ")}},35833:function(e,i,t){var n;!function(o,r){"use strict";var s="function",a="undefined",l="object",c="string",d="major",u="model",p="name",m="type",b="vendor",f="version",w="architecture",h="console",v="mobile",g="tablet",x="smarttv",y="wearable",k="embedded",j="Amazon",S="Apple",I="ASUS",O="BlackBerry",C="Browser",T="Chrome",Z="Firefox",_="Google",E="Huawei",N="LG",A="Microsoft",R="Motorola",P="Opera",z="Samsung",B="Sharp",L="Sony",M="Xiaomi",D="Zebra",U="Facebook",q="Chromium OS",W="Mac OS",F=function(e){for(var i={},t=0;t<e.length;t++)i[e[t].toUpperCase()]=e[t];return i},H=function(e,i){return typeof e===c&&-1!==V(i).indexOf(V(e))},V=function(e){return e.toLowerCase()},Y=function(e,i){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof i===a?e:e.substring(0,500)},G=function(e,i){for(var t,n,o,a,c,d,u=0;u<i.length&&!c;){var p=i[u],m=i[u+1];for(t=n=0;t<p.length&&!c&&p[t];)if(c=p[t++].exec(e))for(o=0;o<m.length;o++)d=c[++n],typeof(a=m[o])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,d):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=d?d.replace(a[1],a[2]):r:this[a[0]]=d?a[1].call(this,d,a[2]):r:4===a.length&&(this[a[0]]=d?a[3].call(this,d.replace(a[1],a[2])):r):this[a]=d||r;u+=2}},J=function(e,i){for(var t in i)if(typeof i[t]===l&&i[t].length>0){for(var n=0;n<i[t].length;n++)if(H(i[t][n],e))return"?"===t?r:t}else if(H(i[t],e))return"?"===t?r:t;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,f],[/opios[\/ ]+([\w\.]+)/i],[f,[p,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[p,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[p,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[p,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+C],f],[/\bfocus\/([\w\.]+)/i],[f,[p,Z+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[p,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[p,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[p,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[f,[p,Z]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+C]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+C],f],[/samsungbrowser\/([\w\.]+)/i],[f,[p,z+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],f],[/metasr[\/ ]?([\d\.]+)/i],[f,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,f],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,U],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[p,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,T+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[p,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[f,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[p,Z+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,f],[/(cobalt)\/([\w\.]+)/i],[p,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,V]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[b,z],[m,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[b,z],[m,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[b,S],[m,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[b,S],[m,g]],[/(macintosh);/i],[u,[b,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[b,B],[m,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[b,E],[m,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[b,E],[m,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[b,M],[m,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[b,M],[m,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[b,"OPPO"],[m,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[b,"Vivo"],[m,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[b,"Realme"],[m,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[b,R],[m,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[b,R],[m,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[b,N],[m,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[b,N],[m,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[b,"Lenovo"],[m,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[b,"Nokia"],[m,v]],[/(pixel c)\b/i],[u,[b,_],[m,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[b,_],[m,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[b,L],[m,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[b,L],[m,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[b,"OnePlus"],[m,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[b,j],[m,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[b,j],[m,v]],[/(playbook);[-\w\),; ]+(rim)/i],[u,b,[m,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[b,O],[m,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[b,I],[m,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[b,I],[m,v]],[/(nexus 9)/i],[u,[b,"HTC"],[m,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[u,/_/g," "],[m,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[b,"Acer"],[m,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[b,"Meizu"],[m,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[b,"Ulefone"],[m,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,u,[m,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,u,[m,g]],[/(surface duo)/i],[u,[b,A],[m,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[b,"Fairphone"],[m,v]],[/(u304aa)/i],[u,[b,"AT&T"],[m,v]],[/\bsie-(\w*)/i],[u,[b,"Siemens"],[m,v]],[/\b(rct\w+) b/i],[u,[b,"RCA"],[m,g]],[/\b(venue[\d ]{2,7}) b/i],[u,[b,"Dell"],[m,g]],[/\b(q(?:mv|ta)\w+) b/i],[u,[b,"Verizon"],[m,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[b,"Barnes & Noble"],[m,g]],[/\b(tm\d{3}\w+) b/i],[u,[b,"NuVision"],[m,g]],[/\b(k88) b/i],[u,[b,"ZTE"],[m,g]],[/\b(nx\d{3}j) b/i],[u,[b,"ZTE"],[m,v]],[/\b(gen\d{3}) b.+49h/i],[u,[b,"Swiss"],[m,v]],[/\b(zur\d{3}) b/i],[u,[b,"Swiss"],[m,g]],[/\b((zeki)?tb.*\b) b/i],[u,[b,"Zeki"],[m,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],u,[m,g]],[/\b(ns-?\w{0,9}) b/i],[u,[b,"Insignia"],[m,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[b,"NextBook"],[m,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],u,[m,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],u,[m,v]],[/\b(ph-1) /i],[u,[b,"Essential"],[m,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[b,"Envizen"],[m,g]],[/\b(trio[-\w\. ]+) b/i],[u,[b,"MachSpeed"],[m,g]],[/\btu_(1491) b/i],[u,[b,"Rotor"],[m,g]],[/(shield[\w ]+) b/i],[u,[b,"Nvidia"],[m,g]],[/(sprint) (\w+)/i],[b,u,[m,v]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[b,A],[m,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[b,D],[m,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[b,D],[m,v]],[/smart-tv.+(samsung)/i],[b,[m,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[b,z],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,N],[m,x]],[/(apple) ?tv/i],[b,[u,S+" TV"],[m,x]],[/crkey/i],[[u,T+"cast"],[b,_],[m,x]],[/droid.+aft(\w+)( bui|\))/i],[u,[b,j],[m,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[b,B],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[b,L],[m,x]],[/(mitv-\w{5}) bui/i],[u,[b,M],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[b,u,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Y],[u,Y],[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,u,[m,h]],[/droid.+; (shield) bui/i],[u,[b,"Nvidia"],[m,h]],[/(playstation [345portablevi]+)/i],[u,[b,L],[m,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[b,A],[m,h]],[/((pebble))app/i],[b,u,[m,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[b,S],[m,y]],[/droid.+; (glass) \d/i],[u,[b,_],[m,y]],[/droid.+; (wt63?0{2,3})\)/i],[u,[b,D],[m,y]],[/(quest( 2| pro)?)/i],[u,[b,U],[m,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[m,k]],[/(aeobc)\b/i],[u,[b,j],[m,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[m,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[m,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,v]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[f,J,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,J,$],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,W],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,f],[/\(bb(10);/i],[f,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[p,Z+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[p,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,q],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,f],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,f]]},K=function(e,i){if(typeof e===l&&(i=e,e=r),!(this instanceof K))return new K(e,i).getResult();var t=typeof o!==a&&o.navigator?o.navigator:r,n=e||(t&&t.userAgent?t.userAgent:""),h=t&&t.userAgentData?t.userAgentData:r,x=i?function(e,i){var t={};for(var n in e)i[n]&&i[n].length%2===0?t[n]=i[n].concat(e[n]):t[n]=e[n];return t}(X,i):X,y=t&&t.userAgent==n;return this.getBrowser=function(){var e,i={};return i[p]=r,i[f]=r,G.call(i,n,x.browser),i[d]=typeof(e=i[f])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:r,y&&t&&t.brave&&typeof t.brave.isBrave==s&&(i[p]="Brave"),i},this.getCPU=function(){var e={};return e[w]=r,G.call(e,n,x.cpu),e},this.getDevice=function(){var e={};return e[b]=r,e[u]=r,e[m]=r,G.call(e,n,x.device),y&&!e[m]&&h&&h.mobile&&(e[m]=v),y&&"Macintosh"==e[u]&&t&&typeof t.standalone!==a&&t.maxTouchPoints&&t.maxTouchPoints>2&&(e[u]="iPad",e[m]=g),e},this.getEngine=function(){var e={};return e[p]=r,e[f]=r,G.call(e,n,x.engine),e},this.getOS=function(){var e={};return e[p]=r,e[f]=r,G.call(e,n,x.os),y&&!e[p]&&h&&"Unknown"!=h.platform&&(e[p]=h.platform.replace(/chrome os/i,q).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>500?Y(e,500):e,this},this.setUA(n),this};K.VERSION="1.0.37",K.BROWSER=F([p,f,d]),K.CPU=F([w]),K.DEVICE=F([u,b,m,h,v,x,g,y,k]),K.ENGINE=K.OS=F([p,f]),typeof i!==a?(e.exports&&(i=e.exports=K),i.UAParser=K):t.amdO?(n=function(){return K}.call(i,t,i,e))===r||(e.exports=n):typeof o!==a&&(o.UAParser=K);var Q=typeof o!==a&&(o.jQuery||o.Zepto);if(Q&&!Q.ua){var ee=new K;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var i=ee.getResult();for(var t in i)Q.ua[t]=i[t]}}}("object"===typeof window?window:this)},81534:(e,i,t)=>{"use strict";function n(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var n in t)e[n]=t[n]}return e}t.d(i,{Z:()=>o});var o=function e(i,t){function o(e,o,r){if("undefined"!==typeof document){"number"===typeof(r=n({},t,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in r)r[a]&&(s+="; "+a,!0!==r[a]&&(s+="="+r[a].split(";")[0]));return document.cookie=e+"="+i.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var r=t[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(n[a]=i.read(s,a),e===a)break}catch(l){}}return e?n[e]:n}},remove:function(e,i){o(e,"",n({},i,{expires:-1}))},withAttributes:function(i){return e(this.converter,n({},this.attributes,i))},withConverter:function(i){return e(n({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(i)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
|