From f21c33351e65d564c5052f1009f990c692e14d3d Mon Sep 17 00:00:00 2001 From: Romeo Rosete <110788242+bombastictranz@users.noreply.github.com> Date: Sat, 13 Apr 2024 09:33:22 -0400 Subject: [PATCH 1/5] index.438dcc74.js.download Stock control supervisors --- index.438dcc74.js.download | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 index.438dcc74.js.download diff --git a/index.438dcc74.js.download b/index.438dcc74.js.download new file mode 100644 index 0000000..671373d --- /dev/null +++ b/index.438dcc74.js.download @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={4338:(e,t,n)=>{n.d(t,{EY:()=>o,sW:()=>a});var a={Dialog:"Dialog",Drawer:"Drawer",Popup:"Popup",Popover:"Popover",Tooltip:"Tooltip",Select:"Select",Dropdown:"Dropdown",DatePicker:"DatePicker",Cascader:"Cascader",Icon:"Icon",PowerLink:"PowerLink"},o={ESC:27}},2315:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(5671),o=n(3144),i=n(7906),r=n(9359),s=n(1413),c=n(8366),l=n(4338);const d=JSON.parse('{"Q":{"site":"common","project":"web_common"}}');var u=(0,s.Z)((0,s.Z)({},d.Q),{},{version:Date.now()}),h={isDev:!1,fetchConfig:u},v=(0,r.Z)("data"),m=new(function(){function e(){var t=this;(0,a.Z)(this,e),Object.defineProperty(this,v,{writable:!0,value:{okdNamespace:"okd5812b5",okdVersion:"5.8.12-beta.5",popupClassName:"",popupDir:void 0,frozenScroll:!0,localeProviderProps:(0,s.Z)((0,s.Z)({},h),{},{fetchConfig:(0,s.Z)({},u)})}}),this.setConfig=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign((0,i.Z)(t,v)[v],(0,s.Z)((0,s.Z)({},n),{},{localeProviderProps:(0,s.Z)((0,s.Z)((0,s.Z)({},h),(null===n||void 0===n?void 0:n.localeProviderProps)||{}),{},{fetchConfig:(0,s.Z)((0,s.Z)({},u),(null===n||void 0===n||null===(e=n.localeProviderProps)||void 0===e?void 0:e.fetchConfig)||{})})}))},this.getConfig=function(){return(0,i.Z)(t,v)[v]},this.mergeProps=function(e,n,a){var o=(0,i.Z)(t,v)[v][a];return(0,c.UO)(e,n,o)}}return(0,o.Z)(e,[{key:"data",get:function(){return(0,i.Z)(this,v)[v]}}]),e}());m.componentNames=l.sW,m.fetchConfig=u;const f=m},4429:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(1413),o=n(8361);const i=function(){var e;if("undefined"!==typeof globalThis)e=globalThis;else if("undefined"!==typeof window)e=window;else{if("undefined"===typeof n.g)throw new Error("unable to locate global object");e=n.g}var t={};return(0,o.y)()&&function(e){for(var t=["addEventListener","removeEventListener","IntersectionObserver","getComputedStyle","scrollTo"],n=["location","event","navigator"],a=["devicePixelRatio"],o=["devicePixelRatio","scrollY","scrollX","innerWidth","innerHeight"],i=0;i{n.d(t,{G6:()=>r,UO:()=>s,gn:()=>i});var a=n(1413),o=n(4429);function i(){var e,t;return!(null===o.Z||void 0===o.Z||null===(e=o.Z.navigator)||void 0===e||null===(t=e.userAgent)||void 0===t||!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))}function r(){var e;return/^((?!chrome|android).)*safari/i.test(null===o.Z||void 0===o.Z||null===(e=o.Z.navigator)||void 0===e?void 0:e.userAgent)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.invalidGlobalConfig||t.overrideGlobalConfig?t:(0,a.Z)((0,a.Z)({},t),function(e,t,n){var a={};return n&&Object.keys(n).forEach((function(o){t[o]===e[o]&&(a[o]=n[o])})),a}(e,t,n))}},5858:(e,t,n)=>{n.d(t,{JI:()=>r,x2:()=>i});var a=n(7363),o=(0,a.createContext)(),i=function(){return(0,a.useContext)(o)},r=o.Provider},5037:(e,t,n)=>{n.d(t,{Dv:()=>a});var a={project:{id:160,token:"b32011805ecf66fdb148c22d63d2803d"}}},2150:(e,t,n)=>{n.d(t,{i:()=>o});var a=n(8443),o=function(){var e=(0,a.zN)("/account/users"),t=(0,a.zN)("/balance");return{home:(0,a.zN)("/"),buyCrypto:(0,a.zN)("/buy-bitcoin"),shortcutTrade:(0,a.zN)("/buy-bitcoin/cny"),asset:"".concat(t,"/overview"),recharge:"".concat(t,"/recharge"),markets_spot:(0,a.zN)("/markets/spot-info"),spot:(0,a.zN)("/spot/trade"),newSpot:(0,a.zN)("/trade-spot"),register:(0,a.zN)("/account/register"),login:(0,a.zN)("/account/login"),createSubAccount:(0,a.zN)("/account/sub-account/batch-add"),subAccount:(0,a.zN)("/account/sub-account"),otc:(0,a.zN)("/otc/trade"),otcOrder:(0,a.zN)("/otc/order"),trade:(0,a.zN)("/trade-crypto/list"),newTrade:(0,a.zN)("/buy-"),otcIdentification:(0,a.zN)("/fiatIdentification"),verification:(0,a.zN)("verification"),future:(0,a.zN)("/derivatives/futures"),swap:(0,a.zN)("/derivatives/swap"),futureIndex:(0,a.zN)("/futureTrade/futureIndex"),futureMarket:(0,a.zN)("/futureTrade/futureMarket"),futureMarkPrice:(0,a.zN)("/futureTrade/markPrice"),futureTop:(0,a.zN)("/futureTrade/futureTop"),fullSpot:(0,a.zN)("/spot/full"),fullMargin:(0,a.zN)("/spot/full-margin"),fullFuture:(0,a.zN)("/derivatives/futures/full"),fullSwap:(0,a.zN)("/derivatives/swap/full"),jumpstartProject:(0,a.zN)("/jumpstart/project"),jumpstart:(0,a.zN)("/jumpstart"),starproject:(0,a.zN)("/starproject"),defectSubmit:"".concat(e,"/defect/defectSubmit"),defectRecords:"".concat(e,"/defect/defectRecords"),kyc:"".concat(e,"/verification"),kycOverview:(0,a.zN)("/account/kyc/personal/overview"),courseVideo:"".concat(e,"/course/video"),boundPhone:"".concat(e,"/phone/10"),defi:(0,a.zN)("/web3"),download:(0,a.zN)("/download"),supportChat:(0,a.zN)("/support-center/chat"),landingPage:e}}},2565:(e,t,n)=>{n.d(t,{Z:()=>a});const a={CHECK_COUNTRY_LIMIT:"/v3/users/support/common/check-country-limit",GET_AGREEMENT:"/v3/users/local-config/get-agreement",GET_TOS:"/v3/users/local-config/tos",UPDATE_AGREEMENT:"/v3/users/local-config/tos/acknowledge",SWITCH_ACCOUNT:"/v3/users/subaccount/switchAccount",SWITCH_TEAM_ACCOUNT:"/v3/users/rbac/switch-authorized-account",GET_SWITCHING_ACCOUNT_LIST:"/v3/users/subaccount/accountListForSwitching",GET_SWITCHING_TEAM_ACCOUNT_LIST:"/v3/users/rbac/switchable-authorized-account",CAN_SWITCH_ACCOUNT:"/v3/users/subaccount/canSwitchAccount",CAN_USER_LEVEL:"/v3/users/fee/getVolumeLevelInfo",CAN_SWITCH_REGION:"/v3/users/kyc/getCorChangeSwitch",REPORT_USER_LANGUAGE:"/v3/users/support/current/lang",POST_SIMULATED_BALANCE_RESET:"/priapi/v5/balance/reset",GET_ANNOUNCEMENT:"/v2/support/home/web",HEADER_NAV_TAG:"/v2/support/home/navigation/info",GET_PREFERENCE:"/v3/users/local-config/settings",GET_MARKET_STATUS:"/priapi/v5/ecotrade/user/copy-auth-status",POST_CHARGE_UNIT:"/v3/users/local-config/renewal-charge-unit",GET_ALL_CURRENCY:"/v3/users/common/list/currencies",GET_SITE_LIST:"/v3/users/support/common/site-limit-list",GET_ACCOUNT_PROFILE:"/v3/users/security/account-profile",GET_HOME_ACTIVITY_INFO:"/v2/support/home/web-config/info",GET_UK_BANNER_URL_CHECK:"/v3/users/support/common/url-check"}},1149:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(8361),o=n(5833),i=n.n(o);function r(e){var t=(e||{}).data;return t&&0===Number(t.code)?Promise.resolve(t):Promise.reject(t||{})}var s={};if(!(0,a.y)()){var c=function(e){return Promise.reject({status:e.statusCode,data:JSON.parse(e.body),headers:e.headers})};s.get=function(e,t,n){var a={params:t};return n&&(a.customToLogin=c),i().get(e,a).then(r)},s.getWithCache=function(e,t){return i().getWithCache(e,t).then(r)},s.post=function(e,t,n){var a=n?{customToLogin:c}:{};return i().post(e,t,a).then(r)},s.delete=function(e,t){return i().delete(e,t).then(r)}}const l=(0,a.y)()?{}:s},6110:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9439),o=n(7363),i=n(8443),r=n(4627),s=n.n(r);const c=function(){var e=(0,o.useState)(""),t=(0,a.Z)(e,2),n=t[0],r=t[1],c=(0,o.useState)(""),l=(0,a.Z)(c,2),d=l[0],u=l[1];return(0,o.useEffect)((function(){s().getDownloadQrCode().then((function(e){r(e)})).catch((function(){})),u((0,i.zN)("/download"))}),[]),{url:n,downloadUrl:d}}},1181:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9439),o=n(7363),i=n(1825),r=n(2706),s=n(4627),c=n.n(s),l=function(){var e=c().getSeoLanguageList(window.location.pathname),t=Object.values(e),n=(0,o.useState)(e),s=(0,a.Z)(n,2),l=s[0],d=s[1],u=(0,o.useState)(t),h=(0,a.Z)(u,2),v=h[0],m=h[1],f=(0,o.useState)({}),p=(0,a.Z)(f,2),_=p[0],g=p[1],b=(0,o.useState)({}),x=(0,a.Z)(b,2),A=x[0],w=x[1],y=(0,o.useState)([]),N=(0,a.Z)(y,2),k=N[0],C=N[1],j=(0,o.useState)(!1),S=(0,a.Z)(j,2),I=S[0],T=S[1],Z=i.Z.locale;(0,o.useEffect)((function(){T(!0),c().preference.getLanguageList().then((function(e){if(e&&Object.keys(e).length>0){d(e),g(e[Z]);var t=Object.values(e);m(t)}})).catch((function(){})),c().preference.getUnit().then((function(e){var t=e.nowCurrencyUnit,n=e.allCurrencyUnit;w(t),C(n)})).catch((function(){})),r.Z.listen("global_updated_currency",(function(e){w(e)}))}),[]);var E=(0,o.useCallback)((function(e){var t={nowLocale:e};c().preference.setLanguage(t)}),[]),L=(0,o.useCallback)((function(e){c().preference.setUnit(e)}),[]);return{languageList:v,nowLanguage:_,languageMap:l,nowCurrencyUnit:A,setNowCurrencyUnit:w,currencyList:k,setUnit:L,setLanguage:E,showTitle:I}}},6925:(e,t,n)=>{n.d(t,{g:()=>l});var a=n(1413),o=n(9439),i=n(7363),r=n(8361),s=n(4627),c=n.n(s),l=function(){if((0,r.y)())return{};var e=(0,i.useState)({}),t=(0,o.Z)(e,2),n=t[0],s=t[1];return(0,i.useEffect)((function(){(0,r.y)()||c().allAssociation&&c().allAssociation.then((function(e){s(e)}))}),[]),(0,a.Z)({},n)}},5351:(e,t,n)=>{n.d(t,{NQ:()=>r,Uh:()=>i});var a=n(9439),o=n(7363);function i(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,o.useState)(e),i=(0,a.Z)(n,2),r=i[0],s=i[1];return(0,o.useEffect)((function(){s(t)}),[]),r}var r=function(e,t){var n=(0,o.useState)(e),i=(0,a.Z)(n,2),r=i[0],s=i[1];return(0,o.useEffect)((function(){s(t)}),[]),r}},8839:(e,t,n)=>{n.d(t,{sX:()=>d,z9:()=>l});var a={act:function(){}};if("undefined"!==typeof window){var o=window.utils.monitor,i=(window._okGlobal||window.okGlobal).site,r=(void 0===i?{}:i).sign,s=void 0===r?"okex":r;a=o.newInstance({site:s.toLocaleLowerCase(),product:"app_web_homepage",commonParams:{}})}var c=a,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.button_name_tr,n=e.button_name,a=e.site;c.act({action:"HomePage_Header_Button_Click",anchor:"HomePage_Header_Button_Click",params:{button_name_tr:t,button_name:n,site:a},actionType:"",elementType:"",ampProject:"okx"})},d=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).button_name;c.act({action:"DefiHomePage_HeaderBuild_Button_Click",anchor:"DefiHomePage_HeaderBuild_Button_Click",params:{button_name:e},actionType:"",elementType:"",ampProject:"okx"})}},9867:(e,t,n)=>{n.d(t,{AU:()=>v,BU:()=>f,Iu:()=>u,bg:()=>h,cl:()=>p});var a=n(7e3),o=n(8361),i=n(5886),r=n(8443),s=n(5833),c=n.n(s),l=n(8562),d="undefined"!==typeof l?l:{},u=function(e,t){var n=d.javaUse;return void 0!==n&&n?"##".concat(e,"##"):(0,a.O4)(e,t)};var h=function(){return!(0,o.y)()&&!(null===c()||void 0===c()||!c().isLogin())},v=function(){return!(0,o.y)()&&(!!h()&&(i.Z.g.get("profile")||{}).currentIsSub)},m=function(e){var t=0;if(!(0,o.y)()){var n,a,i=document.body,r=document.querySelector("html");if(e)t=window.scrollY,i.style.top="".concat(-t,"px"),i.style.position="fixed",r.style.height="100vh",r.style.height="".concat(window.innerHeight,"px"),i.style.width="100%";else t=Math.abs(parseFloat(null===i||void 0===i||null===(n=i.style)||void 0===n||null===(a=n.top)||void 0===a?void 0:a.replace(/-?(\w+)px$/i,"$1"))),i.style.position="",i.style.top="",i.style.width="",r.style.height="",window.scrollTo(0,t)}},f=function(e){if(!(0,o.y)()){var t,n,a=document.body,i=Number(a.getAttribute("data-frozen-count")||0),r="fixed"===(null===a||void 0===a||null===(t=a.style)||void 0===t?void 0:t.position)&&"100%"===(null===a||void 0===a||null===(n=a.style)||void 0===n?void 0:n.width),s=m;e?(r?i++:s(!0),a.setAttribute("data-frozen-count",String(i))):(r&&i<=0?(s(!1),i=0):i=i<=0?0:i-1,a.setAttribute("data-frozen-count",String(i)))}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return(0,r.zN)(e)}},6240:(e,t,n)=>{var a=n(1413),o=n(7363),i=n.n(o),r=n(566),s=n(1825),c=n(7935),l=n(5037),d=n(2315),u=n(8361),h=n(3504),v=n(6235),m=n.n(v),f={Exchange:"1",Web3:"2",Okc:"3",Tr:"4"},p=0,_=1,g=2,b={zh_CN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAABICAQAAADSOpYzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAHdElNRQfmBwMMDRLjUdegAAAG5UlEQVR42u2bW3bURhCGv+L4PWIFyCtAZAFYhPfMkLyDyQYwWUBsswDAG8CeLCCMWQCWs4BYLABGbACLDUzlYTSa7lbrMvgmn6N/Hkbqi7r0d1dXVXcLBgwYMGDAgAEDBgwYMGDAAADkpgX4cSjExOXtkWQ3Kc2GbhM2lngreePrvOBuQ/ZMJlcjuMIjPlpJe51qBQSXJYPZdRsctpROSBoEi3nbUr8DkRqy29KdKxzIdPEWPLMYyju0Aw/4b22+6p+n/Czp4nrj8h57Aeyw3blsyrS4um+kCrv6wlv+nD+WLwtElyx5sLzoB5HBuhUUAoeUOpW9R0R69a/QDyJdZA15afEfd35a2pA35dNakr2o6/R+EvlckpYSwpZ1nxtzpD02c0OxXSjHctRdLBWe3S4iu8AkUnm0pEvhCf8YeafXI04/iYx0eZUtXQwNGAOQk5I5M6Q56oSRkaOlafIj0HANuRq87n4S+aa8ytgE0ICz0kE65A/H0KTWna30TSNSeGO0dSH0k8gVQo0lAcaGn/m9Muo+aEBYzF53LY80u654p59EpsaIi0nAIE45xvYh4dwYrzaS6xK5n0RODCKfsYfp7OSSqDjOz50aGhekNyFpdLWqGN8uq52TlFSFGpZqCzBV14c85Vfrfr8ch02uD4AyWdP9iW8XkXBqkDW2TMspWHG1MrEMht7MOlBfiTxit7weWYp7LOgZm0QEQE6GWKMkXYNGIdR4Dani+qWVnhIpmWal0OarJpKDQLac2xReWlXTtRraNTpsfWSrCGyDfe41Fh639FnSmNs22TfV9K3mHFVShIfGnV5XJAPA351LaqhtCC8ujx45z9wGjbu1pqLnRv5co4Z20Oet79MVc90xn91T1QZJNK9YyMSd/xTHjrbZ6ffc56cLC/eVjKm9c9BbIoFJRbl9E0Vk3TUqtkCuO0RlnZy8dZ3pcnBzqu1V7kpbKnrilDnRw3qZFN1zFDTiOnCjRAbW7Kc689QUp8wCH2vaQTedkl8ui6keq7bkemxtcFUUuzJDLhFr4N37FFyKRU8uJOSZ/Lm46DGRQGIROfWU2KqpueWlvbr1HHbevaxrpyDyzs0w1BGJeeMxC1JDpFR3dBQ2+evqRO33iIwsKmIPlXFNzZET74BU9s5zUihCzRUWbbh7lGUktcammyX8DRqbSvqeUwt91OAuB07ZJ66Z0dBjfD56n1w63ypuO8sW+q3aWw137u6Mi7FT9rXTC/uSUT0wsNycddM9HoONHhOp7lpLXBn992srWxG4x8ykMqHaFVrOym7087VN2h4T6TnGMrbICRrnK6Ms4pgZ5bfiyh3lX4vybhdlbcL2mciqRbbHT+Tk2se17I3WwMp7JVnhhYZW+ipSd9PzNmF7a7U18nh4pqPtqmXCxPI6YVyelFMeGKN3uYooTnlzLTOqSa/Fhh62uKRHjbkhb2z76IomL/kxbHtTx4Y89ohNSTDXi4StJZECmfseCmFlzP9b5MROepfzQa3uTdxYO26r3oUz73rkmfdxJ0sa9K7joIwqCxjfGtt0ly9U54t3VXHkma8ODN4690dDQ7kyY7MrKsd/7FQ5RflgpQT1g0Bhs7LJkEkCCuOKyndYde8pkZbNPTDi5mXE4QaHqeS42x7SYNWryxfKfpHz2snJWhaLgf4SaRoS+/D10+K/csJHIHUOQD/EC8Vz1DqRiTdHu5xNp6dzpDl7zZyVyW+edcW5jsAzu33zGUJPYKj6RcO6HKvuLZsjzdGWgOSGA7KY+SKnxqeCI9u+Bt4z4161lqwmZ6+byP0kMjauF272apYURhUfcnUoYGqle6Jxr1ofFGpdXa+cStct116qtqXYABoYae9UHOfoXfkk0ZmV43wM4l0x+qxBodYzJ2fuRvf1qt3PyCZhEaRlHCwSJNd9RgSA8oHQUln7UIB9sCAyNx0UNnnntKU8lhwQ9ipmZn+N4y+9HJHNbbrb/Ma48eRtGzWl0tJcd731VFU/e9q+ZcYmbMx1fUj7VO7UKVu6QArbFVf7TJbeo7sNoTxeXaosfvWeaT9UO3Ve8FBHtZ/ETTh1iExM3jS3zvuWhsu7ZzPjdwAVj/d4UH4GAJulNQ+dJ6SrGn1Q7ahVihUOKz6k1Qkq+tan+J6jBHN9uiDK61cGK05rTwwZUXgvVFvSIjzrhsi5tyPh6nHnuIigY6fcQeHaSCXqVl5aK5D+4aAkcrC86QWRIHs873iy8buj9K9syypw4nTLYhVoxhla/s7ZLxf4lJRzFGXGDOWEJ2J3Rsas8nvPtvxitNvyvfb5inMfNGCn8bXX+l5bO3xLLZn1zbV37bq9xIABAwYMGDBgwIABAwYMGHBl+B/kHqyAlyF6iAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNy0wM1QxMjoxMzoxOCswMDowMGmV7swAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDctMDNUMTI6MTM6MTgrMDA6MDAYyFZwAAAAAElFTkSuQmCC",en_US:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAABICAQAAADSOpYzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAHdElNRQfmBwMNKhI4Vg/yAAABMklEQVR42u3aQW6DMBBAUZyT5eSFE/RInS5psOKx8Scq0n9ZNXjA+VE3VpZFkiRJkiShYo0rrYPPWyf3+3VYXZL138nTuudLxLVfVCmHrcXY+uqjteejPF7/XH5G1teXe+ebt1E/Q0IMCTEkxJAQQ0IMCTEkxJAQQ0IMCTEkxJCQ+4XcBq+Orj87n54oPlv3iWc2Xk3A55tzZs8rd+l55OT54PB5ZLrhMjd/2M3keeXufv/a/5QhIYaEGBJiSIghIYaEGBJiSIghIYaEGBJiSEgaMjtG+/B+tw/f8eVqlPq1X7xYlX5wfTXfPj/095Hv1tdfRPLJ/X3kvRkSYkiIISGGhBgSYkiIISGGhBgSYkiIISGGhDwuOOH7a+t4p//qmflticYrf946OS9JkiRJkk75BUgSur6QrNyYAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA3LTAzVDEzOjQyOjE4KzAwOjAwKpbwNQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNy0wM1QxMzo0MjoxOCswMDowMFvLSIkAAAAASUVORK5CYII="},x={en_US:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQEAAAA2CAYAAADH5CxcAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQTSURBVHgB7d3vWdpQFMfxQ5++1w16O0HrBGUENyhOgE6gTmCdoDhBdQLpBOIEphOUTpCeAxeLFEhyLtGEfD/Pc2NrIASDP29y/0QEAAAAAAB0Up7nD3n7PBS8p6Dld+5zLwn0+ee53+lbbbvE+3rKfZ60HIqTPvc4b7anLfue8jks9dpa7rX80HKqpS8O77V8lvYp2ue+Fu8Hry9p+uL3Sd5u20WC+ASZH6+x+LgD5JWEgnV17n+Qf69/bAsNgql+udVy0+v1xmU28k4A7BMLnYGW+1hTGBQ9gRAA9lfQ8l2DwErY9CBCANh/A5nXDMK6lYQA0A1BNgQBIQB0R9BiLQkvLlYSAkC3WEvNi+ZiQgDonuFybYAQALrHAuC5NkAIAN00XPyDEEDTTaXZmr5/mxzqKcGs5+17ARqs1+vd6of1Y4WnLKq6X8XnTObdbsuqKwTO9L1/W/1mPJcPMr/Ady7+7tymr2VCCKDx9Jchq/J4/UWp9PgVt1VfryaTdd/UfZvGdVZG+l5H4g+8YAtOB3bvl/j9KVif8lenaNtF2lrt3XdW6/EemwNbpNYELI2uxccuTDRyBKP1tRYfOxhWhbPqpGf0WFE11KqqN85tTxLelx3nI/GNYszKjmZDdVYz0OM6ljiKsKJgi9QQuNadGImD7rh98X4o6zYQvzs7j5UaxGpqJg5xNNlAnPS1LexHgiZKquVxOgC03wfxmYUHIQC0WBwQ1BefzBaEANBSsZ0/ZTq8sS1oIgSaabhlIhD7/hdJnwpv1gxJCADNdCy+K/5lTRb9ITgdALrpuWmfEAC6J1tu2icEgO65XP4PIQB0y+VqBz9CAOgOuyHJxeo3CQGgG6yL/2DdCkIA2G82qO1EA2DjvSjpJwDsr0zLUZyDYKPUEBjG0YCu50pzjcQvK3P/tzXsQI23HbA4q4ynA8ls2zJvGz6Q6h7jHW+DVDeta1QlCmVFAWBSQ8D6Ljd1OLCb/uBOxCmO2R+Iz0jLtte2bXt7kV1vqxIWyRPSXp9qf40mgqoymc8d4Zk/wvTtluXrpilbxjWB3QtSH++HwXhqALuSst9dZefxNreiTeaSMqvT+eodh1YRAkAzZbaI/fu9s3cZC4CrbQ8gBIDms+p8Jn6DeE1nLUIAaLh4ce9M0my8dkcIAC0QW1jG4he0NnCxbgUhALTHpaRZO1EJIQC0RJy6/Ub87CLhf6cFhADQLik3GzHWd+BFXxNCAGiReJEwpcnQXC33HSAEgPZJbTIMMr+Z6QwhALTMjpoMTxe3JicEgBbaQZOhmfUkJASA9kptMpwNMLIQyKR9soL1E/G/r7GkuRO/R6lv2z8lTSY+U3n9z5h3xGImu70Fe+bcXqmfWWwyTA0CBncBAAAAANBRfwFxMsdADgDaLgAAAABJRU5ErkJggg=="},A=(m().string,m().string,m().bool,m().oneOf(Object.values(f)),n(2416)),w=n.n(A),y=n(4627),N=n.n(y),k=n(9439),C=n(1149),j=n(2565),S=n(9867),I=n(6110),T=n(4829);const Z=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).inIframe,t=void 0!==e&&e,n=(0,I.Z)(),a=n.url,i=n.downloadUrl,r=(0,o.useState)(!1),c=(0,k.Z)(r,2),l=c[0],d=c[1],u=s.Z.site,h=(void 0===u?{}:u).is,v=!!(void 0===h?{}:h).TR;return(0,T.jsxs)("li",{className:"nav-download other-wrap",onMouseEnter:function(){d(!0)},children:[(0,T.jsx)("div",{className:"download-app icon okx-header-footer-download"}),(0,T.jsx)("div",{className:"drop-down-list drop-c-right-align drop-animation",children:l&&(0,T.jsxs)("div",{className:"download-box",children:[(0,T.jsxs)("div",{className:"qr-box",children:[(0,T.jsx)("div",{className:"qr-code-desc",children:(0,S.Iu)("home_header_nav_download_app")}),(0,T.jsx)("div",{className:"img-box",children:a&&(0,T.jsx)("img",{className:"qr-code-img",src:a,alt:""})})]}),!v&&(0,T.jsxs)("div",{className:"pc-box",children:[(0,T.jsx)("a",{className:"download-btn",href:i,target:t?"_blank":void 0,rel:"noreferrer",children:(0,S.Iu)("home_header_dropdown_download_more_options")}),(0,T.jsx)("div",{className:"download-desc",children:(0,S.Iu)("home_header_dropdown_download_desc")})]})]})})]})};var E=n(4942),L=n(5886);const D=function(){var e=(0,o.useState)(),t=(0,k.Z)(e,2),n=t[0],a=t[1],i=(0,o.useState)(),r=(0,k.Z)(i,2),s=r[0],c=r[1],l=(0,o.useState)(!1),d=(0,k.Z)(l,2),u=d[0],h=d[1];return(0,o.useEffect)((function(){var e=L.Z.g.get("profile")||{},t=e.accountType,n=void 0===t?"":t,o=e.thirdPartyCustodyBound;a(5===n||9===n),c(o),h((0,S.AU)())}),[]),{isSubCopper:n,isBindCopper:s,isSubState:u}};var z=n(5351),W=function(e){var t=e.tagType,n=e.onlyColumn,a=void 0!==n&&n;return"hot"===t.tag?(0,T.jsx)("i",{className:"icon okx-header-footer-hot nav-hot-tag ".concat(a?"only-column":"")}):(0,T.jsx)("span",{className:"nav-new-tag ".concat(a?"only-column":""),children:(0,S.Iu)("home_nav_new_tag_text")})},U=function(e){var t=e.tagName,n=e.tagClassName;return(0,T.jsx)("span",{className:"nav-tag ".concat(n),children:t})},B=function(e){var t=e.listItemClass,n=e.data,a=e.tagData,o=void 0===a?{}:a;return n.map((function(e,n){return e.length>0?(0,T.jsx)("div",{className:"drop-menu-list-item ".concat(t),children:e.map((function(e,t){var n=e.href,a=e.title,i=e.monitorFunc,r=e.itemClass,s=e.tagId,c=e.target,l=void 0===c?void 0:c;return(0,T.jsxs)("a",{className:"drop-menu-item ".concat(r),href:n,onClick:i,"data-header-id":s,"aria-label":a,target:l,children:[o[s]?(0,T.jsxs)("span",{className:"new-tag-title-container",children:[" ",a]}):a,o[s]&&(0,T.jsx)(W,{tagType:o[s]})]},"".concat(s,"_").concat(t))}))},"".concat(n)):null}))},M=function(e){var t=e.parentClass,n=e.clickHandle,a=e.subHide,o=e.isLeft,i=e.href,r=e.tagId,s=e.title,c=e.tagData,l=void 0===c?{}:c,d=e.target,u=void 0===d?void 0:d,h=w()("nav-item",{"is-left":o},t);return D().isSubState&&a?null:(0,T.jsx)("li",{className:h,children:(0,T.jsxs)("a",{className:"nav-link",onClick:function(e){n(e)},href:i,"data-header-id":r,"aria-label":s,target:u,children:[s,l[r]&&(0,T.jsx)(W,{tagType:l[r]})]})})},O=function(e){var t=e.parentClass,n=e.domData,i=e.isLeft,r=e.isSmallBox,s=e.subHide,c=void 0!==s&&s,l=e.tagData,d=void 0===l?{}:l,u=e.isColumn,h=void 0!==u&&u,v=n.title,m=n.list,f=void 0===m?[]:m,p=n.tagId,_=(0,o.useState)(!1),g=(0,k.Z)(_,2),b=g[0],x=g[1],A=(0,z.Uh)(!1,!0),y=w()("nav-item",{"is-left":i},{"show-more":b},t),N=(0,o.useCallback)((function(){x(!b)}),[b]),C=D().isSubState;if(C&&c)return null;var j=(0,T.jsx)(T.Fragment,{children:(0,T.jsxs)("span",{className:"tab nav-text mu-txt icon okx-header-footer-arrow-chevrons-down",onClick:N,children:[v,d[p]&&(0,T.jsx)(W,{tagType:d[p]})]})});return(0,T.jsxs)("li",{className:y,children:[j,(0,T.jsx)("div",{className:"u-in-ext dp-c-l-ag ".concat(A?"drop-animation":""),children:(0,T.jsx)("div",{className:"extend-box ".concat(r?"extend-small-box":""),children:f&&f.map((function(e,t){var n=e.iconName,o=e.menuTitle,i=e.menuDesc,r=e.thirdMenuList,s=void 0===r?[]:r,c=e.thirdMenuClass,l=e.thirdMenuListClass,u=e.href,v=e.monitorFunc,m=e.isLink,f=void 0===m||m,p=e.tagId,_=e.parentTagId,g=void 0===_?"":_,b=e.menuClass,x=e.target,A=void 0===x?void 0:x,y=e.withoutHref,N=e.tagName,k=void 0===N?"":N,j=e.tagClassName,S=void 0===j?"":j,I=w()("icon",n),Z=w()("box-item",b,(0,E.Z)({},I,!h));if(!o&&0===s.length)return null;if(C&&e.subHide)return null;if(!f&&s.length>0){var L={listItemClass:l,data:s,tagData:d};return(0,T.jsx)("div",{className:"drop-menu-desc-list ".concat(c),children:(0,T.jsx)(B,(0,a.Z)({},L))},"child_".concat(t,"_").concat(g))}var D=w()("item-title",{"title-without-tag":!k&&h&&!d[p]}),z=(0,T.jsxs)("div",{className:"item-box",children:[(0,T.jsxs)("div",{className:D,children:[o,k&&(0,T.jsx)(U,{tagName:k,tagClassName:S}),d[p]&&(0,T.jsx)(W,{onlyColumn:d[p].onlyColumn,tagType:d[p]})]}),i&&!h&&(0,T.jsx)("div",{className:"desc",children:i})]});return y?(0,T.jsx)("div",{className:Z,onClick:v,children:z},"".concat(t,"_").concat(p)):(0,T.jsx)("a",{href:u,className:Z,onClick:v,"aria-label":o,target:A,children:z},"".concat(t,"_").concat(p))}))})})]})},R=n(4165),P=n(5861),G=n(5671),H=n(3144),Q=n(136),q=n(1129);const F=function(e){(0,Q.Z)(n,e);var t=(0,q.Z)(n);function n(e){var a;return(0,G.Z)(this,n),(a=t.call(this,e)).state={hasError:!1},a}return(0,H.Z)(n,[{key:"render",value:function(){return this.state.hasError?null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(i().Component);var Y=n(5858),V={explorer_main_header_dropdown_input_search_chains:"explorer_main_header_dropdown_input_search_chain",explorer_main_header_dropdown_link_all_chain:"explorer_main_header_dropdown_link_all_chains",explorer_tracker_homepage_common_new:"explorer_tracker_homepage_common_explorer_new",explorer_main_header_emptystate_no_result:"explorer_main_header_emptystate_no_results",explorer_main_header_emptystate_network_errors:"explorer_main_header_emptystate_network_error",explorer_main_header_emptystate_loading_fail:"explorer_main_header_emptystate_loading_failed"};const J="index_wrapper__Gz-hE",X="index_loadingWrapper__fVVla",K="index_loading__aE-vB";var $=i().lazy((0,P.Z)((0,R.Z)().mark((function e(){return(0,R.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([n.e(736),n.e(5),n.e(738),n.e(194),n.e(527)]).then(n.bind(n,7718)));case 1:case"end":return e.stop()}}),e)})))),ee=[];const te=function(e){var t=e.localeData,n=(0,o.useState)(ee),a=(0,k.Z)(n,2),i=a[0],r=a[1],s=(0,o.useState)(!ee.length),c=(0,k.Z)(s,2),l=c[0],d=c[1];(0,o.useEffect)((function(){ee=i}),[i]);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.useCallback)((function(t,n){var a=e[V[t]];return a?n&&Object.keys(n).length?(Object.keys(n).forEach((function(e){a=a.replace("{".concat(e,"}"),n[e])})),a):a:""}),[e])}(t);return(0,T.jsx)("div",{className:J,children:(0,T.jsx)(F,{children:(0,T.jsxs)(Y.JI,{value:{getLocale:u,chains:i,setChains:r,loading:l,setLoading:d},children:[(0,T.jsx)(o.Suspense,{fallback:null,children:(0,T.jsx)($,{})}),l&&(0,T.jsx)("div",{className:X,children:(0,T.jsx)("div",{className:K})})]})})})};const ne=function(e){var t=e.parentClass,n=e.title,a=e.tagId,i=e.isLeft,r=e.tagData,s=void 0===r?{}:r,c=e.localeData,l=e.isColumn,d=(0,z.Uh)(!1,!0),u=w()("nav-item",{"is-left":i},t),h=(0,o.useState)(!1),v=(0,k.Z)(h,2),m=v[0],f=v[1],p=(0,o.useState)(0),_=(0,k.Z)(p,2),g=_[0],b=_[1],x=function(){l?f(!1):(f(!0),b(1))},A=(0,o.useRef)(null);(0,o.useEffect)((function(){!m&&null!==A&&void 0!==A&&A.current&&("1"===window.getComputedStyle(A.current).getPropertyValue("opacity")&&x())}),[]);var y=(0,T.jsx)("span",{className:"tab nav-text mu-txt icon okx-header-footer-arrow-chevrons-down",children:s[a]?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("span",{className:"title-text",children:n}),(0,T.jsx)(W,{tagType:s[a]})]}):n}),N=w()("u-in-ext","dp-c-l-ag",{"drop-animation":d});return(0,T.jsxs)("li",{className:u,onMouseEnter:function(){x()},onMouseLeave:function(){l||b(2)},children:[y,(0,T.jsx)("div",{className:N,ref:A,children:m&&(0,T.jsx)(te,{localeData:c,leavePanel:2===g})})]})};var ae=n(8443),oe=n(7423),ie=n(2150),re=n(8839),se=n(9252);const ce=function(e){var t,n,a,o,i,r,s,c,l=e.limitClick,d=e.inIframe,u=(0,ie.i)(),h=null===(t=N().restriction.web3Perpetual)||void 0===t?void 0:t.hidden,v=null===(n=N().restriction.web3Perpetual)||void 0===n?void 0:n.limit,m=null===(a=N().restriction.web3Dex)||void 0===a?void 0:a.hidden,f=null===(o=N().restriction.web3Dex)||void 0===o?void 0:o.limit,p=null===(i=N().restriction.web3Nft)||void 0===i?void 0:i.hidden,_=null===(r=N().restriction.web3Discover)||void 0===r?void 0:r.hidden,g=null===(s=N().restriction.web3Defi)||void 0===s?void 0:s.hidden,b=null===(c=N().restriction.web3Defi)||void 0===c?void 0:c.limit,x={parentClass:"nav-dashboard",href:(0,ae.zN)("/web3"),isLeft:!0,isSub:!1,clickHandle:function(e){e.preventDefault();var t=(L.Z.getProjectStorage("onChain")||{}).walletData,n=void 0===t?{}:t;Object.values(n).length>0?(0,oe.k)(u.defi,d?"_blank":"_self"):N().onchain.getWalletWidget().then((function(e){e.connect({successCallback:function(){}})})).catch((function(){})),(0,se.eM2)()},tagId:"108",title:(0,S.Iu)("view_home_navi_dashboard")},A={parentClass:"nav-defi-trade",href:(0,ae.zN)("/web3/dex"),isLeft:!0,clickHandle:se.uXs,tagId:"109",title:(0,S.Iu)("view_home_navi_defi_trade"),domData:{isLeft:!0,tagId:"109",title:(0,S.Iu)("view_home_navi_defi_trade"),list:[m?{}:{href:(0,ae.zN)("/web3/dex-swap"),menuTitle:(0,S.Iu)("perpetual_navigation_tab_swap"),menuDesc:(0,S.Iu)("perpetual_navigation_text_swap_desc"),iconName:"okx-header-footer-trade-swap",tagId:"10901",monitorFunc:function(e){f&&(e.preventDefault(),l({link:(0,ae.zN)("/web3/dex-swap"),type:"web3Dex",inIframe:d})),(0,se.uXs)()}},h?{}:{href:(0,ae.zN)("/web3/dex-spot"),menuTitle:(0,S.Iu)("perpetual_navigation_tab_spot"),menuDesc:(0,S.Iu)("perpetual_navigation_text_spot_desc"),iconName:"okx-header-footer-arbitrage-order",tagId:"10903",tagName:(0,S.Iu)("perpetual_list_tag_testnet"),tagClassName:"nav-tag-testnet",target:d?"_blank":void 0,monitorFunc:function(e){v&&(e.preventDefault(),l({link:(0,ae.zN)("/web3/dex-spot"),type:"web3Perpetual",inIframe:d}))}},h?{}:{href:(0,ae.zN)("/web3/dex-perp"),menuTitle:(0,S.Iu)("perpetual_navigation_tab_perpetual"),menuDesc:(0,S.Iu)("perpetual_navigation_text_perpetual_desc"),iconName:"okx-header-footer-trade-perp",tagId:"10902",tagName:(0,S.Iu)("perpetual_list_tag_testnet"),tagClassName:"nav-tag-testnet",target:d?"_blank":void 0,monitorFunc:function(e){v&&(e.preventDefault(),l({link:(0,ae.zN)("/web3/dex-perp"),type:"web3Perpetual",inIframe:d})),(0,se.uXs)()}}]}},w=p?{}:{parentClass:"nav-nft",href:(0,ae.zN)("/web3/marketplace/nft"),isLeft:!0,clickHandle:se.Izw,tagId:"110",title:(0,S.Iu)("view_home_navi_nft"),target:d?"_blank":void 0},y={parentClass:"nav-explorer",href:(0,S.cl)("/explorer"),isLeft:!0,clickHandle:function(){},tagId:"",title:(0,S.Iu)("seo_tdk_dropdown_blockchain_explorer"),target:d?"_blank":void 0,isExplorer:!0,localeData:{explorer_main_header_dropdown_input_search_chain:(0,S.Iu)("explorer_main_header_dropdown_input_search_chain"),explorer_main_header_dropdown_link_all_chains:(0,S.Iu)("explorer_main_header_dropdown_link_all_chains"),explorer_tracker_homepage_common_explorer_new:(0,S.Iu)("explorer_tracker_homepage_common_explorer_new"),explorer_main_header_emptystate_no_results:(0,S.Iu)("explorer_main_header_emptystate_no_results"),explorer_main_header_emptystate_network_error:(0,S.Iu)("explorer_main_header_emptystate_network_error"),explorer_main_header_emptystate_loading_failed:(0,S.Iu)("explorer_main_header_emptystate_loading_failed")}},k=g?{}:{parentClass:"nav-invest",href:(0,ae.zN)("/web3/defi"),isLeft:!0,clickHandle:function(e){b&&(e.preventDefault(),l({link:(0,ae.zN)("/web3/defi"),type:"web3Defi",inIframe:d}))},tagId:113,title:(0,S.Iu)("wallet_home_header_tab_invest"),target:d?"_blank":void 0},C={parentClass:"nav-discovery",href:(0,ae.zN)("/web3/discover"),isLeft:!0,clickHandle:se.Jty,tagId:111,title:(0,S.Iu)("dapp_header_nav_discovery"),domData:{isLeft:!0,tagId:"111",title:(0,S.Iu)("dapp_header_nav_discovery"),list:[{href:(0,ae.zN)("/web3/discover"),menuTitle:(0,S.Iu)("discoverhome_navbar_header_dropzone_dapp_store"),menuDesc:(0,S.Iu)("discoverhome_navbar_header_dropzone_dapp_store_desc"),iconName:"okx-header-footer-dapp",monitorFunc:function(){},tagId:"11102",target:d?"_blank":void 0},{href:(0,ae.zN)("/web3/discover/event"),menuTitle:(0,S.Iu)("discoverhome_navbar_header_dropzone_web3_event"),menuDesc:(0,S.Iu)("discoverhome_navbar_subtitle_dropzone_web3_event_desc"),iconName:"okx-header-footer-event",monitorFunc:function(){},tagId:"11103",target:d?"_blank":void 0},{isLink:!1,thirdMenuClass:"discovery-desc-list",thirdMenuListClass:"discovery-list-item",thirdMenuList:[[{href:(0,ae.zN)("/web3/discover/profile"),itemClass:"discovery-item",title:(0,S.Iu)("discoverhome_navbar_btn_tab_my_event"),tagId:"1110301",monitorFunc:function(){},target:d?"_blank":void 0}],[{href:(0,ae.zN)("/web3/discover/form"),itemClass:"discovery-item",title:(0,S.Iu)("discoverhome_navbar_btn_tab_summit_event"),tagId:"1110302",monitorFunc:function(){},target:d?"_blank":void 0}]]},{href:(0,ae.zN)("/web3/discover/cryptopedia"),menuTitle:(0,S.Iu)("discoverhome_navbar_header_dropzone_cryptopedia"),menuDesc:(0,S.Iu)("discoverhome_navbar_subtitle_dropzone_cryptopedia_desc"),iconName:"okx-header-footer-rewards",monitorFunc:function(){},tagId:"11101",target:d?"_blank":void 0},{isLink:!1,thirdMenuClass:"discovery-desc-list",thirdMenuListClass:"discovery-list-item",thirdMenuList:[[{href:(0,ae.zN)("/web3/discover/cryptopedia/rewards"),itemClass:"discovery-item",title:(0,S.Iu)("discoverhome_navbar_btn_tab_reward_center"),tagId:"1110101",monitorFunc:function(){},target:d?"_blank":void 0}],[]]}]}},j={parentClass:"nav-doc",domData:{tagId:"112",title:(0,S.Iu)("dapp_header_nav_developers"),list:[{href:(0,ae.zN)("/web3/build"),menuTitle:(0,S.Iu)("build_header_title_okx_build"),menuDesc:(0,S.Iu)("build_header_subtitle_okx_build"),iconName:"okx-header-footer-home-1",monitorFunc:function(){(0,re.sX)({button_name:"okx_build"})},tagId:"11203",target:d?"_blank":void 0},{href:(0,ae.zN)("/web3/build/dev-portal"),menuTitle:(0,S.Iu)("build_header_title_developer_portal"),menuDesc:(0,S.Iu)("build_header_subtitle_developer_portal"),iconName:"okx-header-footer-api-1",monitorFunc:function(){(0,re.sX)({button_name:"developer_portal"})},tagId:"11201",target:d?"_blank":void 0},{href:(0,ae.zN)("/web3/build/docs/home/welcome"),menuTitle:(0,S.Iu)("build_header_title_documentation"),menuDesc:(0,S.Iu)("build_header_subtitle_documentation"),iconName:"okx-header-footer-doc",monitorFunc:function(){(0,re.sX)({button_name:"documentation"})},tagId:"11202",target:d?"_blank":void 0}]},isLeft:!0,isSmallBox:!1},I=[];return I.push(x),m&&h||I.push(A),I.push(w,k),_||I.push(C),I.push(y,j),I};const le=function(e){var t=e.tagData,n=e.isColumn,r=void 0!==n&&n,s=e.inIframe,c=e.limitClick,l=(0,o.useMemo)((function(){return ce({limitClick:c,inIframe:s})}),[s,c]);return(0,T.jsx)(i().Fragment,{children:l.map((function(e,n){var o=e.domData,i=void 0===o?null:o,s=e.isExplorer;return!r&&(void 0!==s&&s)?(0,T.jsx)(ne,(0,a.Z)({tagData:t},e),"web3-header".concat(n)):i?(0,T.jsx)(O,(0,a.Z)({tagData:t,isColumn:r},e),"web3-header".concat(n)):(0,T.jsx)(M,(0,a.Z)({tagData:t},e),"web3-header".concat(n))}))})};const de=function(e){var t=e.menuSwitchHandle;if(e.isActive)return(0,T.jsx)("div",{className:"action-container",onClick:t,children:(0,T.jsx)("div",{className:"header-menu-btn icon okx-header-footer-close",id:"headerMenuBtn"})});var n=(0,T.jsx)("div",{className:"header-menu-btn icon okx-header-footer-hamburger",id:"headerMenuBtn"});return(0,T.jsx)("li",{className:"action-container",onClick:t,children:n})};var ue=function(){return(0,T.jsx)("li",{id:"headerModeAddress",className:"nav-item nav-address"})},he=function(){return(0,T.jsx)("li",{id:"headerModeLogin",className:"mode-no-login"})},ve=function(){return(0,T.jsx)("li",{id:"headerModeLoginMobile",className:"mode-no-login"})},me=function(){return(0,T.jsx)("li",{id:"headerModeGas",className:"nav-item nav-gas"})},fe=function(){return(0,T.jsx)("li",{id:"headerModeGasMobile",className:"nav-item nav-gas"})},pe=function(){return{showLanguageDialog:(0,o.useCallback)((function(){(0,u.y)()||Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(547),n.e(29)]).then(n.bind(n,6527)).then((function(e){e.default.show()})).catch((function(e){}))}),[])}};const _e=function(){var e=pe().showLanguageDialog;return(0,T.jsx)("li",{className:"nav-item nav-language other-wrap",onClick:e,children:(0,T.jsx)("div",{className:"now-language icon okx-header-footer-language"})})};var ge=n(8694),be=n(6427);const xe=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).inIframe,t=void 0!==e&&e,n=s.Z.langPath,i=s.Z.cdnBaseUrl,r=function(){var e=(0,o.useState)([]),t=(0,k.Z)(e,2),n=t[0],i=t[1],r=(0,o.useState)(!1),s=(0,k.Z)(r,2),c=s[0],l=s[1];return(0,o.useEffect)((function(){(0,u.y)()||C.Z.get(j.Z.GET_ANNOUNCEMENT).then((function(e){ge.Z&&ge.Z.send("g_notice",e.data);var t=e.data.notices,n=void 0===t?[]:t;if(n.length>0){var o=Math.min(n.length,5),r=n.map((function(e){var t=e.publishDate?(0,be.o0)(e.publishDate,{format:"yyyyMMddHHmmss"}):"";return(0,a.Z)((0,a.Z)({},e),{},{date:t})})).slice(0,o);i(r)}else i([])})).catch((function(){})).finally((function(){l(!0)}))}),[]),{noticeList:n,pendStatus:c}}(),c=r.noticeList,l=r.pendStatus,d=(0,z.Uh)(!1,!0),h=(0,o.useState)(!1),v=(0,k.Z)(h,2),m=v[0],f=v[1];return(0,T.jsxs)("li",{className:"nav-notice other-wrap ",onMouseEnter:function(){f(!0)},children:[(0,T.jsx)("div",{className:"notice-icon icon okx-header-footer-notice"}),d&&(0,T.jsx)("div",{className:"drop-down-list drop-c-right-align drop-animation",children:m&&(0,T.jsxs)(T.Fragment,{children:[c.length>0&&(0,T.jsxs)("div",{className:"notice-box",children:[(0,T.jsx)("div",{className:"notice-list",children:c.map((function(e,n){var a=e.link,o=e.text,i=e.date;return(0,T.jsxs)("a",{href:a,className:"notice-item",onClick:function(a){a.preventDefault(),function(e,n){if(!(0,u.y)()){(0,se.L4D)({item:e});var a=e.link;0===n&&localStorage.setItem("recordNoticeLink",a),(0,oe.k)(a,t?"_blank":"_self")}}(e,n)},children:[(0,T.jsx)("div",{className:"item-title",children:o}),(0,T.jsx)("div",{className:"item-date",children:i})]},a)}))}),(0,T.jsx)("a",{id:"moreNews",href:(0,ae.zN)("".concat(n,"/help/category/announcements")),className:"notice-more",onClick:function(){(0,se.WRK)({name:"",type:""})},target:t?"_blank":void 0,rel:"noreferrer",children:(0,S.Iu)("home_header_notice_dropdown_more")})]}),l&&0===c.length&&(0,T.jsxs)("div",{className:"notice-empty",children:[(0,T.jsx)("img",{className:"empty-icon",src:"".concat(i,"/cdn/assets/imgs/231/085FB656EC834A19.svg"),alt:(0,S.Iu)("home_header_notice_dropdown_text_desc"),width:80,height:80}),(0,T.jsx)("span",{className:"empty-desc",children:(0,S.Iu)("home_header_notice_dropdown_text_desc")})]})]})})]})};var Ae=n(6925);const we=function(e){var t=e.locale,n=e.isColumn,a=e.inIframe,i=void 0!==a&&a,r=e.isVip,s=void 0!==r&&r,c=e.vipSupportHandle,l=(0,o.useState)(!1),d=(0,k.Z)(l,2),h=d[0],v=d[1],m=(0,o.useState)(""),f=(0,k.Z)(m,2),p=f[0],_=f[1],g=w()("nav-item","nav-custom","other-wrap",{"show-more":h}),b=(0,z.Uh)(!1,!0),x=(0,ae.zN)("/community"),A=(0,Ae.g)().mediaInfo,y=void 0===A?[]:A;(0,o.useEffect)((function(){(0,u.y)()||y.forEach((function(e){var t=e.nameEn,n=void 0===t?"":t,a=e.linkUrl,o=void 0===a?"":a;"telegram"===n.replace(/\s/g,"").toLowerCase()&&_(o)}))}),[y.length]);var N=(0,o.useCallback)((function(){v(!h)}),[h]);return(0,T.jsxs)("li",{className:g,children:[(0,T.jsx)("div",{className:"custom-logo icon okx-header-footer-question"}),(0,T.jsx)("span",{className:"user-arrow icon okx-header-footer-arrow-chevrons-down",onClick:N}),(0,T.jsx)("span",{className:"nav-text user-support-text",onClick:N,children:(0,S.Iu)("view_home_nav_support_title")}),(0,T.jsxs)("div",{className:"drop-down-list drop-c-right-align ".concat(b?"drop-animation":""),children:[!n&&s&&(0,T.jsx)("div",{className:"vip-con",children:(0,T.jsxs)("div",{className:"vip-support-btn",onClick:function(){c("Support_Icon_Web")},children:[(0,T.jsx)("i",{className:"okx-header-footer-support vip-icon"}),(0,S.Iu)("home_header_avatar_dropdown_vip_support")]})}),(0,T.jsx)("a",{className:"extend-link",href:(0,ae.zN)("/help"),onClick:se.w0H,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,children:(0,S.Iu)("home_header_dropdowntitle_support_center")}),(0,T.jsx)("a",{id:"myRequest",className:"extend-link request-link",onClick:se.lrF,href:(0,ae.zN)("/support-center/history"),target:i?"_blank":void 0,rel:i?"noreferrer":void 0,children:(0,S.Iu)("home_header_dropdowntitle_my_request")}),(0,T.jsx)("a",{className:"extend-link",href:x,onClick:se.RR3,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,children:(0,S.Iu)("home_header_dropdowntitle_connect_with_okx")}),(0,T.jsxs)("a",{className:"extend-link",href:"zh_CN"===t||"zh_TW"===t?"https://discord.gg/hkCGKbbbqf":"https://discord.gg/2ZW42SS9g6",onClick:se.RR3,target:"_blank",rel:"noreferrer",children:[(0,S.Iu)("home_header_dropdowntitle_discord"),(0,T.jsx)("i",{className:"icon okx-header-footer-discord"})]}),"zh_CN"!==t&&"zh_HK"!==t&&"zh_TW"!==t&&(0,T.jsxs)("a",{className:"extend-link header-telegram-link",target:"_blank",href:p,onClick:se.Ok5,rel:"noreferrer",children:[(0,S.Iu)("home_header_dropdowntitle_telegram"),(0,T.jsx)("i",{className:"icon okx-header-footer-telegram"})]})]})]})};const ye=function(e){var t=e.menuSwitchHandle,n=e.tagData,o=e.inIframe,i=e.javaUse,r=e.langPath,s=e.locale,c=e.ssr,l=e.showWeb3LimitDialog,d=e.isVip,u=e.vipSupportHandle,h={locale:s,javaUse:i,langPath:r,tagData:n,inIframe:o},v="other-language-left-section";return("zh_CN"===s||"zh_HK"===s||"zh_TW"===s)&&(v="web3-other-language-left-section-zh"),"en_US"===s&&(v="web3-other-language-left-section-en"),(0,T.jsx)("div",{id:"navContainer",className:"nav-container","data-from":"2",children:(0,T.jsxs)("ul",{className:"nav-scroll-box",children:[(0,T.jsx)("li",{className:"nav-l-sec ".concat(v),children:(0,T.jsx)("ul",{className:"nav-l-con",children:(0,T.jsx)(le,(0,a.Z)({limitClick:l},h))})}),(0,T.jsx)("li",{className:"nav-null"}),(0,T.jsx)("li",{className:"header-search-box",id:"headerSearchBox"}),(0,T.jsx)(he,{}),(0,T.jsx)(ue,{}),(0,T.jsx)(me,{}),(0,T.jsx)("li",{className:"mode-line"}),(0,T.jsx)("li",{className:"nav-r-sec",children:(0,T.jsxs)("ul",{className:"nav-r-con",children:[(0,T.jsx)(Z,(0,a.Z)({},h)),(0,T.jsx)(xe,{inIframe:o,javaUse:i}),(0,T.jsx)(we,(0,a.Z)({isVip:d,vipSupportHandle:u},h)),(0,T.jsx)(_e,(0,a.Z)({ssr:c},h))]})}),(0,T.jsx)(de,{menuSwitchHandle:t,isActive:!1})]})})};const Ne=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).inIframe,t=void 0!==e&&e,n=(0,I.Z)().downloadUrl;return(0,T.jsx)("li",{className:"nav-item nav-mobile-download",id:"mobileDownloadNav",children:(0,T.jsx)("div",{className:"app-box",children:(0,T.jsx)("a",{href:n,className:"download-text",target:t?"_blank":void 0,rel:t?"noreferrer":void 0,children:(0,S.Iu)("home_menu_btn_download")})})})};const ke=function(e){var t=e.headerType,n=e.inIframe,a=void 0!==n&&n,o=(0,ie.i)();return(0,T.jsx)("li",{className:"nav-item nav-mode sm-mode ".concat(t!==f.Web3?" mode-okex":"mode-chain"),children:(0,T.jsxs)("div",{className:"mode-box",children:[(0,T.jsx)("a",{href:o.home,className:"box-item switch-exchange",target:a?"_blank":void 0,rel:a?"noreferrer":void 0,children:(0,T.jsx)("div",{className:"item-box item-okex",children:(0,T.jsx)("div",{className:"item-title",children:(0,S.Iu)("home_header_nav_switch_exchange")})})}),(0,T.jsx)("a",{href:o.defi,className:"box-item switch-metax",target:a?"_blank":void 0,rel:a?"noreferrer":void 0,children:(0,T.jsx)("div",{className:"item-box item-chain",children:(0,T.jsx)("div",{className:"item-title",children:(0,S.Iu)("home_header_nav_switch_metax")})})})]})})};var Ce=n(1181);const je=function(){var e=(0,o.useState)(""),t=(0,k.Z)(e,2),n=t[0],a=t[1],i=(0,Ce.A)(!1),r=i.nowLanguage,s=(i.nowCurrencyUnit||{}).isoCode,c=void 0===s?"":s;(0,o.useEffect)((function(){var e=(r||{}).text,t=void 0===e?"":e,n=c?"".concat(t,"/").concat(c):t;a(n)}),[r,c]);var l=pe().showLanguageDialog;return(0,T.jsx)("li",{className:"nav-item nav-language-column",onClick:l,children:(0,T.jsx)("span",{className:"nav-link",children:n})})};const Se=function(e){var t=e.menuSwitchHandle,n=e.javaUse,o=e.langPath,i=e.headerType,r=e.tagData,s=e.locale,c=e.inIframe,l=e.showWeb3LimitDialog,d={locale:s,javaUse:n,langPath:o,tagData:r,isColumn:!0,inIframe:c},u=(0,z.Uh)(!1,!0);return(0,T.jsxs)("div",{id:"navColumnContainer",className:"column-nav-container","data-from":"2",children:[(0,T.jsx)(de,{menuSwitchHandle:t,isActive:!0}),(0,T.jsxs)("ul",{className:"nav-scroll-box",children:[(0,T.jsx)(ve,{}),(0,T.jsx)(ke,{inIframe:c,headerType:i}),(0,T.jsx)(le,(0,a.Z)({limitClick:l},d)),(0,T.jsx)(fe,(0,a.Z)({},d)),(0,T.jsx)(we,(0,a.Z)({isColumn:!0},d)),u&&(0,T.jsx)(je,{}),(0,T.jsx)(Ne,{inIframe:c,javaUse:n,langPath:o})]})]})};const Ie=function(e){var t=e.locale,n=e.headerType,a=e.logo,o=e.isTR,i=e.logoWidth,r=void 0===i?82:i,c=e.logoHeight,l=void 0===c?36:c,d=e.inIframe,u=void 0!==d&&d,h=(0,ie.i)(),v=a[t]||a.en_US,m=s.Z.simulatedTrading;return(0,T.jsx)("div",{className:"logo-container mode-container",id:"logoCon","data-chain":n===f.Web3,children:(0,T.jsxs)("div",{className:"mode-logo",children:[(0,T.jsxs)("a",{className:"logo-wrap",href:n===f.Web3?h.defi:h.home,target:u?"_blank":null,rel:u?"noreferrer":null,children:[(0,T.jsx)("img",{width:r,height:l,className:"logo-img ".concat(o?"tr-logo-img":void 0),src:v,alt:(0,S.Iu)("home_header_logo_text_desc"),title:(0,S.Iu)("seo_tdk_brand_name")}),m&&(0,T.jsx)("span",{className:"simulated-sign",children:(0,S.Iu)("home_nav_dropdown_demo_trading")})]}),(0,T.jsxs)("div",{className:"new-mode-tab",children:[(0,T.jsx)("a",{href:h.home,className:"switch-exchange tab-exchange ".concat(n!==f.Web3?" active":""),target:u?"_blank":null,rel:u?"noreferrer":null,children:(0,S.Iu)("home_header_nav_switch_exchange")}),(0,T.jsx)("a",{href:h.defi,className:"switch-metax tab-defi ".concat(n===f.Web3?" active":""),target:u?"_blank":null,rel:u?"noreferrer":null,children:(0,S.Iu)("home_header_nav_switch_metax")})]})]})})};var Te=n(9408),Ze=n(5312),Ee=n(7762),Le=n(2706),De={flexWith:24,academyWidth:0,gasWidth:0,initWidth:0,initFlexNullWidth:0,initStep:1,initMobileWith:!1,hasResize:!1,initFlexShrink:!1,shrink:function(){for(var e,t=null===(e=document.querySelector(".nav-container .nav-null"))||void 0===e?void 0:e.offsetWidth,n=tDe.flexWith;a&&n>0;){var o,i=n-1;0===i&&document.getElementsByClassName("header-main")[0].setAttribute("data-shrink",!1),document.getElementsByClassName("header-main")[0].setAttribute("data-shrink-step",i),n--,a=(t=null===(o=document.querySelector(".nav-container .nav-null"))||void 0===o?void 0:o.offsetWidth)-this.getCurStepWidth(n)>De.flexWith}Le.Z.trigger("g_demo_trading_tip",n)},observerGas:function(e){var t=this;if(window.ResizeObserver){var n=new ResizeObserver((function(e){var n,a=(0,Ee.Z)(e);try{for(a.s();!(n=a.n()).done;){var o=n.value.target;if(o&&o.className.includes("nav-gas")&&t.gasWidth!==o.offsetWidth&&(t.gasWidth=o.offsetWidth,t.shrink()),o&&o.className.includes("nav-null")&&!t.initFlexShrink&&t.initFlexNullWidth!==o.offsetWidth){var i=o.offsetWidth>t.initFlexNullWidth;t.initFlexNullWidth=o.offsetWidth,i?t.open():t.shrink()}o&&"headerModeAddress"===o.id&&t.shrink()}}catch(r){a.e(r)}finally{a.f()}}));1!==e&&4!==e||n.observe(document.querySelector(".nav-container .nav-null")),2===e&&n.observe(document.querySelector(".nav-container .nav-gas")),3!==e&&2!==e||n.observe(document.querySelector("#headerModeAddress"))}},removeClass:function(){var e,t,n,a,o,i;1!==this.headerType&&4!==this.headerType||(null===(e=document.querySelector(".nav-container .nav-l-sec"))||void 0===e||e.classList.remove("other-language-left-section-zh"),null===(t=document.querySelector(".nav-container .nav-l-sec"))||void 0===t||t.classList.remove("other-language-left-section-en"));2===this.headerType&&(null===(n=document.querySelector(".nav-container .nav-l-sec"))||void 0===n||n.classList.remove("web3-other-language-left-section-zh"),null===(a=document.querySelector(".nav-container .nav-l-sec"))||void 0===a||a.classList.remove("web3-other-language-left-section-en"));3===this.headerType&&(null===(o=document.querySelector(".nav-container .nav-l-sec"))||void 0===o||o.classList.remove("okc-other-language-left-section-zh"),null===(i=document.querySelector(".nav-container .nav-l-sec"))||void 0===i||i.classList.remove("okc-other-language-left-section-en"))},init:function(e){var t,n=this;this.headerType=e;var a=window.matchMedia("(min-width: 1024px)");if(this.initWidth=window.innerWidth,this.initFlexNullWidth=null===(t=document.querySelector(".nav-container .nav-null"))||void 0===t?void 0:t.offsetWidth,a.matches){var o,i,r;if(2===this.headerType)this.gasWidth=null===(r=document.querySelector(".nav-container .nav-gas"))||void 0===r?void 0:r.offsetWidth;else if(4===this.headerType){var s;this.academyWidth=null===(s=document.querySelector(".nav-container .nav-support"))||void 0===s?void 0:s.offsetWidth}else{var c;this.academyWidth=null===(c=document.querySelector(".nav-container .nav-academy"))||void 0===c?void 0:c.offsetWidth}this.shrink(),this.initFlexNullWidth=null===(o=document.querySelector(".nav-container .nav-null"))||void 0===o?void 0:o.offsetWidth,this.observerGas(e),null===(i=document.querySelector(".nav-container .nav-l-sec"))||void 0===i||i.classList.remove("other-language-left-section"),this.removeClass(),Le.Z.listen("global_responsive_search",(function(){n.shrink()}))}else{var l;this.initMobileWith=!0,null===(l=document.querySelector(".nav-container .nav-l-sec"))||void 0===l||l.classList.remove("other-language-left-section"),this.removeClass()}window.addEventListener("resize",(function(){var t=window.innerWidth,o=t>n.initWidth;if(n.initWidth=t,n.initFlexShrink=!0,n.initMobileWith&&!n.hasResize&&a.matches){var i;if(2===n.headerType)n.gasWidth=null===(i=document.querySelector(".nav-container .nav-gas"))||void 0===i?void 0:i.offsetWidth;else if(4===n.headerType){var r;n.academyWidth=null===(r=document.querySelector(".nav-container .nav-support"))||void 0===r?void 0:r.offsetWidth}else{var s;n.academyWidth=null===(s=document.querySelector(".nav-container .nav-academy"))||void 0===s?void 0:s.offsetWidth}n.observerGas(e),n.shrink(),n.hasResize=!0}a.matches&&(o?n.open():n.shrink())}))}};const ze=De;var We=n(9512);const Ue=function(e){var t,i,r=s.Z.locale,c=s.Z.langPath,l=s.Z.isInnerDomain,d=s.Z.isRenderByNode,h=s.Z.site,v=!(null===(t=(void 0===h?{}:h).is)||void 0===t||!t.TR);i=d?(0,a.Z)((0,a.Z)({},e),{},{headerType:f.Web3,locale:r,langPath:c,isInnerDomain:l,javaUse:!1,isSub:(0,S.AU)()}):{headerType:f.Web3,locale:r,langPath:c,isInnerDomain:l,javaUse:!1,isSub:(0,S.AU)()},(0,o.useEffect)((function(){N().getWatcher().send("global_dom_updated")}),[]);var m=!!d&&(0,u.y)(),A=(0,z.NQ)(m,!1),y=function(e,t){var n=(0,o.useState)(0),a=(0,k.Z)(n,2),i=a[0],r=a[1],s=(0,o.useRef)(),c=(0,o.useTransition)(),l=(0,k.Z)(c,2)[1];s.current=i,(0,o.useEffect)((function(){ze.init(e)}),[i]);var d=(0,o.useCallback)((function(){l((function(){t&&(i===p?(r(_),"sm"===(0,Te.Z)().media&&(document.body.setAttribute("data-scroll-disabled",!0),(0,S.BU)(!0))):(r(p),document.body.getAttribute("data-scroll-disabled")&&(document.body.removeAttribute("data-scroll-disabled"),(0,S.BU)(!1))))}))}),[i,t]),u=(0,o.useCallback)((function(){l((function(){t&&(i===p?(r(g),document.body.setAttribute("data-scroll-disabled",!0),(0,S.BU)(!0)):(r(p),document.body.getAttribute("data-scroll-disabled")&&(document.body.removeAttribute("data-scroll-disabled"),(0,S.BU)(!1))))}))}),[i,t]);return(0,o.useEffect)((function(){(new Ze.Z).watch((function(e){var t=e.media,n=s.current;n===g&&"sm"!==t&&"md"!==t&&r(p),n!==p&&"sm"!==t&&document.body.getAttribute("data-scroll-disabled")&&(document.body.removeAttribute("data-scroll-disabled"),(0,S.BU)(!1))}),{runNow:!0})}),[]),{menuActive:i,userSwitchHandle:u,menuSwitchHandle:d}}(2,!A),I=y.menuActive,Z=y.userSwitchHandle,E=y.menuSwitchHandle,D=function(){var e=s.Z.envSign,t=(0,o.useState)({}),n=(0,k.Z)(t,2),i=n[0],r=n[1];return(0,o.useEffect)((function(){(0,u.y)()||C.Z.get(j.Z.HEADER_NAV_TAG,{onlineStatus:"prod"===e?1:0}).then((function(e){var t=e.data,n={};t.forEach((function(e){var o=e.tag,i=e.level,r=e.id,s=e.pid;n[r]=e,i>=3&&(t.find((function(e){return e.id===s}))||("hot"===o?n[s]=(0,a.Z)((0,a.Z)({},e),{},{onlyColumn:!0}):n[s]||(n[s]=(0,a.Z)((0,a.Z)({},e),{},{onlyColumn:!0}))))})),r(n)})).catch((function(){}))}),[]),{tagData:i}}(),W=D.tagData,U=w()("header-main",{active:I!==p}),B=function(){var e=(0,o.useState)(!1),t=(0,k.Z)(e,2),n=t[0],a=t[1];return(0,o.useEffect)((function(){window.self!==window.top&&a(!0)}),[]),n}(),M=function(){var e=(0,o.useState)(!1),t=(0,k.Z)(e,2),a=t[0],i=t[1],r=(0,o.useCallback)((function(e){n.e(684).then(n.bind(n,6684)).then((function(t){(0,t.default)(e),e.onLoad&&e.onLoad()})).catch((function(){e.onLoad&&e.onLoad()})).finally((function(){e.onLoad&&e.onLoad()}))}),[]),s=(0,o.useCallback)((function(e){var t=e.link,n=e.type,o=e.inIframe;a||(i(!0),r({type:n,onConfirm:function(){},onLoad:function(){i(!1)},onLimitChangeFalse:function(){(0,oe.k)(t,o?"_blank":"_self")}}))}),[a]);return(0,o.useEffect)((function(){ge.Z.receive("global_web3_limit_dialog",r)}),[]),{showWeb3LimitDialog:r,limitClickHandel:s}}(),O=M.limitClickHandel,R=function(){var e=(0,o.useState)(!1),t=(0,k.Z)(e,2),n=t[0],a=t[1],i=(0,o.useState)(!1),r=(0,k.Z)(i,2),c=r[0],l=r[1],d=(0,We.Z)((function(e){N().showCS({from:e}),(0,re.z9)({button_name:"vip_cs"})}),500);return(0,o.useEffect)((function(){var e=s.Z.site,t=(void 0===e?{}:e).is,n=!!(void 0===t?{}:t).TR,o=N().isCsBlacklistedPage(window.location.pathname);if((0,S.bg)()){var i,r=(null===(i=L.Z.g.get("profile"))||void 0===i?void 0:i.uuid)||"",c="".concat(j.Z.GET_ACCOUNT_PROFILE,"?uuid=").concat(r);C.Z.getWithCache(c,{cacheSeconds:600}).then((function(e){var t=!n&&!o,i=e.data,r=i.feeLevel,s=i.hideVipEntry,c=i.subAccountToggle,d=void 0!==c&&c;a(t&&!s&&r>1&&r<101),l(d)})).catch((function(){a(!1)}))}}),[]),{isVip:n,vipSupportHandle:d,showSubDeposit:c}}(),P=R.isVip,G=R.vipSupportHandle;return(0,T.jsx)("div",{className:"header-wrap",children:(0,T.jsxs)("div",{className:U,"data-from":"2",children:[v&&(0,T.jsx)(Ie,(0,a.Z)((0,a.Z)({isTR:!0,inIframe:B,logo:x,logoWidth:128,logoHeight:27},i),{},{ssr:A})),!v&&(0,T.jsx)(Ie,(0,a.Z)({inIframe:B,logo:b,ssr:A},i)),(0,T.jsx)("div",{className:"head-spl-lin"}),(0,T.jsx)(ye,(0,a.Z)({tagData:W,ssr:A,inIframe:B,menuSwitchHandle:E,userSwitchHandle:Z,showWeb3LimitDialog:O,vipSupportHandle:G,isVip:P},i)),(0,T.jsx)(Se,(0,a.Z)({menuSwitchHandle:E,tagData:W,inIframe:B,showWeb3LimitDialog:O,userSwitchHandle:Z,isAssetActive:I===g,ssr:A},i))]})})};var Be=n(6274),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.Z.isRenderByNode,n=e.i18nData;t||(n=window.okx_web_seo_tdk),!(0,u.y)()&&t&&(n=window.__INIT_STATE__.headerContext.i18nData);var i=t?n:window.okx_web_seo_tdk;return(0,o.useMemo)((function(){d.Z.setConfig({popupDir:s.Z.isRTL?"rtl":void 0})}),[]),(0,T.jsx)(h.Z,{localeData:i,noRemoteData:!0,isDev:!0,fetchConfig:Be.Q,children:(0,T.jsx)(Ue,(0,a.Z)({},e))})};Me.defaultProps={locale:"",langPath:"",isInnerDomain:!1,headerType:"2"};const Oe=Me;!function(){var e=document.getElementById("headerContainer"),t=s.Z.isRenderByNode,n=s.Z.isApp;if(t)e&&(0,r.hydrateRoot)(e,(0,T.jsx)(Oe,{}),{onRecoverableError:function(e,t){var o;"prod"===s.Z.envSign&&!n&&e?(c.k.error("nav header hydrate fail!",(0,a.Z)((0,a.Z)({},t),{},{error:e.message,type:"web3",customConfig:l.Dv})),null===(o=window.OkPerf)||void 0===o||o.customLog({type:"hydrate"})):console.error(e)}});else{var o=e&&(0,r.createRoot)(e);e&&o.render((0,T.jsx)(Oe,{}))}}()},9252:(e,t,n)=>{n.d(t,{Izw:()=>d,Jty:()=>l,L4D:()=>_,Ok5:()=>v,RR3:()=>f,WRK:()=>g,eM2:()=>h,lrF:()=>p,uXs:()=>u,w0H:()=>m});var a={act:function(){}};if("undefined"!==typeof window){var o=window.utils.monitor,i=(window._okGlobal||window.okGlobal).site,r=(void 0===i?{}:i).sign,s=void 0===r?"okex":r;a=o.newInstance({site:s.toLocaleLowerCase(),product:"seo",commonParams:{}})}var c=a,l=function(){c.act({action:"web_header_metax_discover_click",anchor:"web_header_metax_discover_click",params:{},actionType:"",elementType:""})},d=function(){c.act({action:"web_header_metax_nftmarketplace_click",anchor:"web_header_metax_nftmarketplace_click",params:{},actionType:"",elementType:""})},u=function(){c.act({action:"web_header_metax_trade_click",anchor:"web_header_metax_trade_click",params:{},actionType:"",elementType:""})},h=function(){c.act({action:"web_header_metax_dashboad_click",anchor:"web_header_metax_dashboad_click",params:{},actionType:"",elementType:""})},v=function(){c.act({action:"web_top_navigation_support_telegram_click",anchor:"web_top_navigation_support_telegram_click",params:{},actionType:"",elementType:""})},m=function(){c.act({action:"web_top_navigation_support_helpcenter_click",anchor:"web_top_navigation_support_helpcenter_click",params:{},actionType:"",elementType:""})},f=function(){c.act({action:"web_top_navigation_support_community_click",anchor:"web_top_navigation_support_community_click",params:{},actionType:"",elementType:""})},p=function(){c.act({action:"web_top_navigation_support_myrequest_click",anchor:"web_top_navigation_support_myrequest_click",params:{},actionType:"",elementType:""})},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.link,n=e.publishDate,a=e.sort,o=e.startTime,i=e.title,r=e.text;c.act({action:"header_notice_click",anchor:"header_notice_click",params:{link:t,publishDate:n,sort:a,startTime:o,title:i,text:r},actionType:"",elementType:""})},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.type;c.act({action:"header_notice_click_more",anchor:"header_notice_click_more",params:{name:t,type:n},actionType:"",elementType:""})}},7363:e=>{e.exports=React},1533:e=>{e.exports=ReactDOM},4627:e=>{e.exports=okxGlobal},5833:e=>{e.exports=utils.ont},6274:e=>{e.exports=JSON.parse('{"Q":{"project":"okx_web_seo_tdk","site":"okx"}}')}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.m=e,(()=>{var e=[];n.O=(t,a,o,i)=>{if(!a){var r=1/0;for(d=0;d=i)&&Object.keys(n.O).every((e=>n.O[e](a[c])))?a.splice(c--,1):(s=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[a,o,i]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,a)=>(n.f[a](e,t),t)),[])),n.u=e=>"common/"+e+"."+{5:"b3781675",29:"a4d65272",105:"145bb493",194:"9a809d56",527:"cbef3cff",547:"29919dc2",566:"6c3f9f8a",684:"ac8a7d05",738:"1b6fb859",961:"08df0459"}[e]+".js",n.miniCssF=e=>"common/"+e+"."+{5:"9aeefec4",29:"72e67264",194:"cd96cf36",527:"22b1da78",547:"7a1c2a8a",566:"12fd15af",738:"8ca0a482",961:"1cf97fc5"}[e]+".css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="okx-nav:";n.l=(a,o,i,r)=>{if(e[a])e[a].push(o);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(v);var o=e[a];if(delete e[a],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},v=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=807,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var o=a.length-1;o>-1&&!e;)e=a[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{try{if(n.miniCssF){var e=n.miniCssF;n.miniCssF=function(t){var n=e(t);if("string"!==typeof n)return n;var a=window._okGlobal||window.okGlobal;return a&&a.isRTL&&/\.css$/.test(n)?n.replace(/\.css$/,".rtl.css"):n}}}catch(t){}})(),(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,a)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),a=0;a{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)a();else{var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=r,c.request=s,i.parentNode&&i.parentNode.removeChild(i),o(c)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,i,null,t,a)})),t={807:0};n.f.miniCss=(n,a)=>{t[n]?a.push(t[n]):0!==t[n]&&{5:1,29:1,194:1,527:1,547:1,566:1,738:1,961:1}[n]&&a.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={807:0};n.f.j=(t,a)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)a.push(o[2]);else if(/^(5|738)$/.test(t))e[t]=0;else{var i=new Promise(((n,a)=>o=e[t]=[n,a]));a.push(o[2]=i);var r=n.p+n.u(t),s=new Error;n.l(r,(a=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=a&&("load"===a.type?"missing":a.type),r=a&&a.target&&a.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,o[1](s)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,a)=>{var o,i,[r,s,c]=a,l=0;if(r.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)var d=c(n)}for(t&&t(a);ln(6240)));a=n.O(a)})(); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/okx-nav/web3Header/index.438dcc74.js.map \ No newline at end of file From d0993cd434985b18735044a41646a23b4beff11c Mon Sep 17 00:00:00 2001 From: Romeo Rosete <110788242+bombastictranz@users.noreply.github.com> Date: Sat, 13 Apr 2024 09:35:28 -0400 Subject: [PATCH 2/5] index.734eded6.js.download Stock control supervisors --- index.734eded6.js.download | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 index.734eded6.js.download diff --git a/index.734eded6.js.download b/index.734eded6.js.download new file mode 100644 index 0000000..2fa699e --- /dev/null +++ b/index.734eded6.js.download @@ -0,0 +1,2 @@ +(()=>{"use strict";var e={4338:(e,t,n)=>{n.d(t,{EY:()=>r,sW:()=>o});var o={Dialog:"Dialog",Drawer:"Drawer",Popup:"Popup",Popover:"Popover",Tooltip:"Tooltip",Select:"Select",Dropdown:"Dropdown",DatePicker:"DatePicker",Cascader:"Cascader",Icon:"Icon",PowerLink:"PowerLink"},r={ESC:27}},2315:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(5671),r=n(3144),i=n(7906),a=n(9359),c=n(1413),s=n(8366),u=n(4338);const l=JSON.parse('{"Q":{"site":"common","project":"web_common"}}');var d=(0,c.Z)((0,c.Z)({},l.Q),{},{version:Date.now()}),f={isDev:!1,fetchConfig:d},v=(0,a.Z)("data"),g=new(function(){function e(){var t=this;(0,o.Z)(this,e),Object.defineProperty(this,v,{writable:!0,value:{okdNamespace:"okd5812b5",okdVersion:"5.8.12-beta.5",popupClassName:"",popupDir:void 0,frozenScroll:!0,localeProviderProps:(0,c.Z)((0,c.Z)({},f),{},{fetchConfig:(0,c.Z)({},d)})}}),this.setConfig=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign((0,i.Z)(t,v)[v],(0,c.Z)((0,c.Z)({},n),{},{localeProviderProps:(0,c.Z)((0,c.Z)((0,c.Z)({},f),(null===n||void 0===n?void 0:n.localeProviderProps)||{}),{},{fetchConfig:(0,c.Z)((0,c.Z)({},d),(null===n||void 0===n||null===(e=n.localeProviderProps)||void 0===e?void 0:e.fetchConfig)||{})})}))},this.getConfig=function(){return(0,i.Z)(t,v)[v]},this.mergeProps=function(e,n,o){var r=(0,i.Z)(t,v)[v][o];return(0,s.UO)(e,n,r)}}return(0,r.Z)(e,[{key:"data",get:function(){return(0,i.Z)(this,v)[v]}}]),e}());g.componentNames=u.sW,g.fetchConfig=d;const p=g},4429:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(1413),r=n(8361);const i=function(){var e;if("undefined"!==typeof globalThis)e=globalThis;else if("undefined"!==typeof window)e=window;else{if("undefined"===typeof n.g)throw new Error("unable to locate global object");e=n.g}var t={};return(0,r.y)()&&function(e){for(var t=["addEventListener","removeEventListener","IntersectionObserver","getComputedStyle","scrollTo"],n=["location","event","navigator"],o=["devicePixelRatio"],r=["devicePixelRatio","scrollY","scrollX","innerWidth","innerHeight"],i=0;i{n.d(t,{UO:()=>a,gn:()=>i});var o=n(1413),r=n(4429);function i(){var e,t;return!(null===r.Z||void 0===r.Z||null===(e=r.Z.navigator)||void 0===e||null===(t=e.userAgent)||void 0===t||!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.invalidGlobalConfig||t.overrideGlobalConfig?t:(0,o.Z)((0,o.Z)({},t),function(e,t,n){var o={};return n&&Object.keys(n).forEach((function(r){t[r]===e[r]&&(o[r]=n[r])})),o}(e,t,n))}},5037:(e,t,n)=>{n.d(t,{Dv:()=>o,dT:()=>r});var o={project:{id:160,token:"b32011805ecf66fdb148c22d63d2803d"}},r={OKX_HEADER_SITE_LIST:"okx_header_site_list"}},2150:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(8443),r=function(){var e=(0,o.zN)("/account/users"),t=(0,o.zN)("/balance");return{home:(0,o.zN)("/"),buyCrypto:(0,o.zN)("/buy-bitcoin"),shortcutTrade:(0,o.zN)("/buy-bitcoin/cny"),asset:"".concat(t,"/overview"),recharge:"".concat(t,"/recharge"),markets_spot:(0,o.zN)("/markets/spot-info"),spot:(0,o.zN)("/spot/trade"),newSpot:(0,o.zN)("/trade-spot"),register:(0,o.zN)("/account/register"),login:(0,o.zN)("/account/login"),createSubAccount:(0,o.zN)("/account/sub-account/batch-add"),subAccount:(0,o.zN)("/account/sub-account"),otc:(0,o.zN)("/otc/trade"),otcOrder:(0,o.zN)("/otc/order"),trade:(0,o.zN)("/trade-crypto/list"),newTrade:(0,o.zN)("/buy-"),otcIdentification:(0,o.zN)("/fiatIdentification"),verification:(0,o.zN)("verification"),future:(0,o.zN)("/derivatives/futures"),swap:(0,o.zN)("/derivatives/swap"),futureIndex:(0,o.zN)("/futureTrade/futureIndex"),futureMarket:(0,o.zN)("/futureTrade/futureMarket"),futureMarkPrice:(0,o.zN)("/futureTrade/markPrice"),futureTop:(0,o.zN)("/futureTrade/futureTop"),fullSpot:(0,o.zN)("/spot/full"),fullMargin:(0,o.zN)("/spot/full-margin"),fullFuture:(0,o.zN)("/derivatives/futures/full"),fullSwap:(0,o.zN)("/derivatives/swap/full"),jumpstartProject:(0,o.zN)("/jumpstart/project"),jumpstart:(0,o.zN)("/jumpstart"),starproject:(0,o.zN)("/starproject"),defectSubmit:"".concat(e,"/defect/defectSubmit"),defectRecords:"".concat(e,"/defect/defectRecords"),kyc:"".concat(e,"/verification"),kycOverview:(0,o.zN)("/account/kyc/personal/overview"),courseVideo:"".concat(e,"/course/video"),boundPhone:"".concat(e,"/phone/10"),defi:(0,o.zN)("/web3"),download:(0,o.zN)("/download"),supportChat:(0,o.zN)("/support-center/chat"),landingPage:e}}},2565:(e,t,n)=>{n.d(t,{Z:()=>o});const o={CHECK_COUNTRY_LIMIT:"/v3/users/support/common/check-country-limit",GET_AGREEMENT:"/v3/users/local-config/get-agreement",GET_TOS:"/v3/users/local-config/tos",UPDATE_AGREEMENT:"/v3/users/local-config/tos/acknowledge",SWITCH_ACCOUNT:"/v3/users/subaccount/switchAccount",SWITCH_TEAM_ACCOUNT:"/v3/users/rbac/switch-authorized-account",GET_SWITCHING_ACCOUNT_LIST:"/v3/users/subaccount/accountListForSwitching",GET_SWITCHING_TEAM_ACCOUNT_LIST:"/v3/users/rbac/switchable-authorized-account",CAN_SWITCH_ACCOUNT:"/v3/users/subaccount/canSwitchAccount",CAN_USER_LEVEL:"/v3/users/fee/getVolumeLevelInfo",CAN_SWITCH_REGION:"/v3/users/kyc/getCorChangeSwitch",REPORT_USER_LANGUAGE:"/v3/users/support/current/lang",POST_SIMULATED_BALANCE_RESET:"/priapi/v5/balance/reset",GET_ANNOUNCEMENT:"/v2/support/home/web",HEADER_NAV_TAG:"/v2/support/home/navigation/info",GET_PREFERENCE:"/v3/users/local-config/settings",GET_MARKET_STATUS:"/priapi/v5/ecotrade/user/copy-auth-status",POST_CHARGE_UNIT:"/v3/users/local-config/renewal-charge-unit",GET_ALL_CURRENCY:"/v3/users/common/list/currencies",GET_SITE_LIST:"/v3/users/support/common/site-limit-list",GET_ACCOUNT_PROFILE:"/v3/users/security/account-profile",GET_HOME_ACTIVITY_INFO:"/v2/support/home/web-config/info",GET_UK_BANNER_URL_CHECK:"/v3/users/support/common/url-check"}},1149:(e,t,n)=>{n.d(t,{Z:()=>u});var o=n(8361),r=n(5833),i=n.n(r);function a(e){var t=(e||{}).data;return t&&0===Number(t.code)?Promise.resolve(t):Promise.reject(t||{})}var c={};if(!(0,o.y)()){var s=function(e){return Promise.reject({status:e.statusCode,data:JSON.parse(e.body),headers:e.headers})};c.get=function(e,t,n){var o={params:t};return n&&(o.customToLogin=s),i().get(e,o).then(a)},c.getWithCache=function(e,t){return i().getWithCache(e,t).then(a)},c.post=function(e,t,n){var o=n?{customToLogin:s}:{};return i().post(e,t,o).then(a)},c.delete=function(e,t){return i().delete(e,t).then(a)}}const u=(0,o.y)()?{}:c},9867:(e,t,n)=>{n.d(t,{Dv:()=>g,Ej:()=>w,Wb:()=>d,bg:()=>f,lC:()=>m,lE:()=>p,wm:()=>h,y7:()=>v});var o=n(4165),r=n(5861),i=n(1825),a=n(8361),c=n(6724),s=n(8443),u=n(5833),l=n.n(u);n(8562);var d=function(){var e=("undefined"!==typeof window?window.location:{}).pathname,t=(i.Z||{}).langPath;return"/"===e||e===t},f=function(){return!(0,a.y)()&&!(null===l()||void 0===l()||!l().isLogin())},v=function(){var e=(0,r.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l().checkIsLogin();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(e){for(var t=window.location.search.substring(1).split("&"),n={},o=0;o{n.d(t,{J:()=>o});var o={FOT:"_fot",FQT:"_frt"}},2215:(e,t,n)=>{var o=n(5671),r=n(3144),i=n(8361),a=n(1825),c=n(2315),s=(n(4925),n(9827)),u=n(8825),l=n(8443),d=n(5886),f=n(6724),v=n(1149),g=n(2565),p=n(9867),m=n(4627),h=n.n(m),w={whiteListReg:/^\/(trade|markets|balance|kyc|account|login|register|academy|learn|support-center|help-center|help|status|fees|about|join-us|community|pisces|demo-trading-explorer|download|feedback|broker|cloud|liquid-marketplace|trading-bot)/i,blackListReg:/^\/trade-convert/i,newTradeUrl:(0,l.zN)("/trade"),checkSimulatedTrading:function(){"1"===localStorage.getItem("simulatedTrading")!==a.Z.simulatedTrading&&window.location.reload()},simulatedStatusListen:function(){var e="hidden",t="visibilitychange";"undefined"!==typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),"undefined"!==typeof document.addEventListener&&"undefined"!==typeof document[e]&&document.addEventListener(t,(function(){document[e]||w.checkSimulatedTrading()}),!1),window.addEventListener("storage",(function(e){"simulatedTradingNotice"===e.key&&w.checkSimulatedTrading()}))},getReceiveCoin:function(){var e=d.Z.g.get("profile")||{};!e.simulatedReceive&&new Promise((function(e){v.Z.post(g.Z.POST_SIMULATED_BALANCE_RESET).then((function(){e()})).catch((function(t){"18002"===t.code&&e()}))})).then((function(){(e=d.Z.g.get("profile")||{}).simulatedReceive=1,d.Z.g.set("profile",e)}))},getReceiveHandle:function(){(0,p.bg)()&&a.Z.simulatedTrading&&w.getReceiveCoin()},checkWhiteUrl:function(){var e,t,n=a.Z.envSign,o=a.Z.simulatedTrading,r=a.Z.langPath,i=w.whiteListReg,c=w.newTradeUrl,s=w.blackListReg,u=window.location.pathname.replace(r,"");"prod"===n&&o&&(!s.test(u)&&i.test(u)||(window.location.href=null!==(e=h().restriction)&&void 0!==e&&null!==(t=e.spot)&&void 0!==t&&t.hidden?(0,l.zN)("/balance/overview"):c))},init:function(){var e=a.Z.isApp;if(!(0,i.y)()){var t=(0,p.y7)();(window.location.search.indexOf("logout")>-1||!t)&&(localStorage.removeItem("simulatedTrading"),f.Z.set("simulatedTrading","1",{expires:-1}))}(0,i.y)()||e||(w.simulatedStatusListen(),w.getReceiveHandle(),w.checkWhiteUrl())}};w.init();var b=n(7179),y=n(1413),T=n(2163);var Z=function(){var e=window.location.pathname,t=a.Z.locale,o=a.Z.langPath,r=void 0===o?"":o,i=a.Z.ipRegion,c=a.Z.isInnerDomain,s=localStorage.getItem("dnsSwitchTest"),u=(0,T.Z)("isNewRegister");if(!/android|webos|iphone|ipod|blackberry|ipad|okex|electron/i.test(navigator.userAgent.toLowerCase())&&!u&&("/"===e||e===r)){var l=d.Z.g.get("dnsSwitch");(s||c&&"CN"===i&&("zh_CN"===t||"zh_HK"===t||"zh_TW"===t)&&!l)&&Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(577)]).then(n.bind(n,4428)).then((function(e){(0,e.default)()})).catch((function(e){}))}},_=n(7607),S=function(){!function(){var e=window.location.pathname,t=!1;return["/download"].forEach((function(n){e.includes(n)&&(t=!0)})),t}()&&function(){var e=localStorage.getItem("okx_pc_update_debug");return _.X.isOKXDesktop||e}()&&Promise.all([n.e(736),n.e(887)]).then(n.bind(n,1887)).then((function(e){e.default.init()})).catch((function(){}))},C=n(2706),E=n(5037);var k=function(){var e=a.Z.locale,t="?locale=".concat(void 0===e?"en_US":e);v.Z.getWithCache(g.Z.GET_ALL_CURRENCY+t,{cacheSeconds:60}).then((function(e){var t=e.data,n=void 0===t?[]:t;d.Z.g.set("allCurrencyUnit",n);var o,r=(0,p.y7)(),i=localStorage.getItem("willReportCurrencyId");r&&i&&(n.forEach((function(e){var t=e.currencyId,n=void 0===t?0:t;Number(i)===n&&(o=e)})),function(e){var t={currencyId:e.currencyId};v.Z.post(g.Z.POST_CHARGE_UNIT,t).then((function(){localStorage.removeItem("willReportCurrencyId")})).catch((function(){f.Z.set("C_PREFER_EXP","2",{expires:18250})}))}(o))})).catch()},N=function e(t){v.Z.post(g.Z.REPORT_USER_LANGUAGE,{},!0).then((function(){sessionStorage.removeItem("reportedLanguage")})).catch((function(){var n=t-1;n>=0&&e(n)}))},I=function(){var e=sessionStorage.getItem("reportedLanguage");(0,p.y7)()&&e&&N(3)},L=n(4165),P=n(5861),A=n(7935),R=n(5833),O=n.n(R),x={project:{id:160,token:"b32011805ecf66fdb148c22d63d2803d"}};function U(e,t){return z.apply(this,arguments)}function z(){return(z=(0,P.Z)((0,L.Z)().mark((function e(t,n){var o,r;return(0,L.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.Z.isApp){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,navigator.serviceWorker.register("/sw.js",{scope:"/"});case 6:o=e.sent,navigator.serviceWorker.addEventListener("controllerchange",(function(e){var o,r;null===e||void 0===e||null===(o=e.currentTarget)||void 0===o||null===(r=o.controller)||void 0===r||r.postMessage({cdnBaseUrl:a.Z.cdnBaseUrl,simulatedTrading:a.Z.simulatedTrading,isLogin:O().isLogin(),sw:t,envSign:n})})),o.installing&&o.installing.addEventListener("statechange",(function(e){var r;"activated"===e.target.state&&(null===o||void 0===o||null===(r=o.active)||void 0===r||r.postMessage({cdnBaseUrl:a.Z.cdnBaseUrl,simulatedTrading:a.Z.simulatedTrading,isLogin:O().isLogin(),sw:t,envSign:n}))})),o&&o.active&&(null===o||void 0===o||null===(r=o.active)||void 0===r||r.postMessage({cdnBaseUrl:a.Z.cdnBaseUrl,simulatedTrading:a.Z.simulatedTrading,isLogin:O().isLogin(),sw:t,envSign:n})),navigator.serviceWorker.addEventListener("message",(function(e){var t=e.data,n=t.data;A.k.info("sw message(".concat(n,")"),{message:t,customConfig:x})})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),A.k.info("sw register error",{name:e.t0.name,message:e.t0.message,customConfig:x});case 16:case"end":return e.stop()}}),e,null,[[3,13]])})))).apply(this,arguments)}function j(){return D.apply(this,arguments)}function D(){return(D=(0,P.Z)((0,L.Z)().mark((function e(){var t,n,o,r,i;return(0,L.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=navigator.serviceWorker)||"function"!==typeof t.getRegistrations){e.next=13;break}return e.next=5,t.getRegistrations();case 5:return n=e.sent,o=n.map((function(e){return Promise.all([e.unregister()])})),e.next=9,Promise.all(o);case 9:(r=e.sent)&&r.length&&r.every((function(e){return!0===e}))&&window.location.reload(),e.next=22;break;case 13:if(!t||"function"!==typeof t.getRegistration){e.next=22;break}return e.next=16,t.getRegistration();case 16:if(!(i=e.sent)){e.next=22;break}return e.next=20,i.unregister();case 20:!0===e.sent&&window.location.reload();case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(0),A.k.info("sw unregister error",{name:e.t0.name,message:e.t0.message,customConfig:x});case 27:case"end":return e.stop()}}),e,null,[[0,24]])})))).apply(this,arguments)}var G=function(){var e=(0,P.Z)((0,L.Z)().mark((function e(){var t,n,o,r,i,c,s;return(0,L.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.Z.sw,n=a.Z.envSign,t&&n){e.next=3;break}return e.abrupt("return");case 3:o="prod"===n||"pre"===n,"serviceWorker"in navigator&&o&&(r=_.X.isOKXDesktop,i=_.X.isMobile,c="browser",r&&(c="desktop"),i&&(c="mobile"),(s=t[c])&&(s.open?U((0,y.Z)((0,y.Z)({},s),{},{type:c}),n):j()));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=n(7423);window.setTimeout((function(){!function(){var e=f.Z.get("with-okfe-extension");if(("prod"!==(a.Z||{}).envSign||e)&&99!==Number(e)){var t=/^okfe.*Url$/m,n=f.Z.get(),o=Object.keys(n).filter((function(e){return t.test(e)})),r=f.Z.get("okfe_pisces")||{};if(0!==o.length||0!==Object.keys(r).length){var i=document.createElement("div");i.id="okfePiscesDebugCon",i.innerHTML='
\n \u53cc\u9c7c\u5ea7-pisces\n \n reset\n \n \n home\n \n
',document.body.appendChild(i);var c=document.querySelector(".ghost-debug-con .pisces-container"),s=document.querySelector("#pisces-tips");c&&(c.style.display="none"),s&&(s.style.display="none"),document.querySelector("#resetGhostBtn").addEventListener("click",(function(){o.forEach((function(e){f.Z.remove(e)})),f.Z.remove("okfe_pisces"),window.location.reload()})),document.querySelector("#closePisecesBtn").addEventListener("click",(function(){var e=localStorage.getItem("piscesPath")||"/pisces",t="".concat(window.location.protocol,"//").concat(window.location.host);(0,W.k)("".concat(t).concat(e))}))}}}()}),3e3);var M=n(2150),H=(d.Z.g.get("profile")||{}).uuid,B=void 0===H?" ":H,F="limit_country_expire_time_".concat(B),q="limit_country_expire_time",K={kycRequired:!1,limit:!1,displayCountryName:"",country:"",euroList:["MT","IT"],got:!1,needShowCheckIpDialog:!1,expireTimeKey:q},X={dialog:null,isLogin:(0,p.bg)(),init:function(){var e=this,t=a.Z.site,o=(void 0===t?{}:t).is;!!!(void 0===o?{}:o).TR&&v.Z.get(g.Z.CHECK_COUNTRY_LIMIT).then((function(t){var o=t.data,r=o.cefi,i=void 0===r?{}:r,a=o.web3,c=void 0===a?{}:a,s=o.register,u=void 0===s?{}:s,l=o.reroutePopup,d=u,f=8;u.limit||(d=i,f=6);var v=X.isLogin?i:d,g=v.limit,p=void 0!==g&&g,m=v.displayCountryName,w=void 0===m?"":m,b=v.country,T=void 0===b?"":b,Z=v.province,_=void 0===Z?"":Z,S=v.provinceCode,C=void 0===S?"":S,E=v.kycLevel,k=X.isLogin?6:f;if(h().restriction.routePopupRestrict)Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(770)]).then(n.bind(n,630)).then((function(e){(0,e.default)((0,y.Z)({isLogin:X.isLogin},l))})).catch((function(){}));else if(p){var N=!!X.isLogin&&E<2,I=p&&c.limit,L=(0,y.Z)((0,y.Z)({},K),{},{kycRequired:N,limit:p,displayCountryName:w,country:T,province:_,provinceCode:C,isLogin:!!X.isLogin,allLimit:I,type:k});e.showFooterLayer(L)}})).catch((function(){})),X.getAgreement()},showFooterLayer:function(e){var t=window.location.pathname,o=(0,M.i)().download===t,r="true"===(0,p.Dv)("isReferral");if((0,p.Wb)()||o&&r){var i=localStorage.getItem(F),a=localStorage.getItem(q);i&&!a?(localStorage.setItem(q,i),a=i,localStorage.removeItem(F)):localStorage.removeItem(F);var c=!0;if(a){var s=Number(a)+6048e5;c=(new Date).getTime()-s>0}c&&(localStorage.setItem(q,""),localStorage.removeItem(F)),c&&Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(913),n.e(587)]).then(n.bind(n,587)).then((function(t){(0,t.default)(e)})).catch((function(){}))}},getAgreement:function(){if(X.isLogin){var e=window.location.href.includes("help"),t="".concat("global_tosAgreement_").concat(B),o=localStorage.getItem(t);e||o||v.Z.get(g.Z.GET_TOS,{},!0).then((function(e){var o=e.data,r=o.show,i=void 0===r||r,a=o.summary,c=o.url;if(i){var s={summary:a,url:c,localKey:t};Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(261),n.e(913),n.e(854)]).then(n.bind(n,3012)).then((function(e){(0,e.default)(s)})).catch((function(){}))}else localStorage.setItem(t,"1",259200)})).catch((function(){}))}},showWeb3Limit:function(){var e=window.location.pathname,t=localStorage.getItem("global_web3_limit_dialog");e===(0,l.zN)("/web3")&&h().restriction.web3Popup.limit&&!t&&Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(938)]).then(n.bind(n,9158)).then((function(e){(0,e.default)()})).catch((function(){}))}};!function(){if(!(0,i.y)()){var e,t=window.navigator.userAgent.toLowerCase().includes("electron"),n=null===(e=a.Z.site)||void 0===e?void 0:e.linkInOKX;(0,p.lC)()||a.Z.isApp||a.Z.isOnChainMode||_.X.isSpider||n||t||X.init(),X.showWeb3Limit()}}();var V=function(){(function(){var e,t,n=null===(e=navigator)||void 0===e||null===(t=e.userAgent)||void 0===t?void 0:t.toLowerCase();return!(null==n.match(/msie/)&&null==n.match(/trident/))})()||window.addEventListener("storage",(function(e){var t=e.key,n=e.oldValue,o=e.newValue;"_tk"!==t&&"_eid"!==t||n!==o&&window.location.reload(),t&&t.includes("global_tosAgreement_")&&"2"===o&&window.location.reload()}))},Y=n(9408),J=n(4920),$=n(3465);function Q(){return(Q=(0,P.Z)((0,L.Z)().mark((function e(){var t,n;return(0,L.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.loadWasm){e.next=2;break}return e.abrupt("return",window.loadWasm.loadEnd);case 2:return n=a.Z.cdnBaseUrl,a.Z.envSign,"cdn",e.next=6,(0,$.f)({url:"".concat(n,"/").concat("cdn","/assets/okfe/libs/iePolyfill/ie-polyfill-1.2.5-min.js"),retry:2,unique:!0});case 6:return null!==(t=window.loadWasm)&&void 0!==t&&t.loadEnd||(window.loadWasm={},window.loadWasm.loadEnd=new Promise((function(e){window.loadWasm.loadFinish?e(window.Module):window.Module.onRuntimeInitialized=function(){window.loadWasm.loadFinish=!0,e(window.Module)}}))),e.abrupt("return",window.loadWasm.loadEnd);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ee=function(e){var t=window.location,n=void 0===t?{}:t,o=a.Z.langPath;return n.pathname.toLowerCase().startsWith("".concat(o).concat(e))},te=function(e){(function(){return Q.apply(this,arguments)})().then((function(t){var n=JSON.stringify(e),o=n.length,r=t._malloc(o);t.writeAsciiToMemory(n,r);var i=t.cwrap("getData",null,["number","number","number"])(r,o),a=t.UTF8ToString(i);t._free(r),t._free(i);var c=e.deviceInfo.transactionSessionId,s=JSON.parse(a);v.Z.post("/api/v5/fd/dp/".concat(c),{et:s.data,st:s.timestamp}).then((function(e){var t=e.data.fingerprintId;f.Z.set("fingerprint_id",t,(0,y.Z)({},(0,p.Ej)()))})).catch((function(){}))})).catch((function(){}))},ne=function(){var e=a.Z.okUtilsConfig,t=void 0===e?{}:e,o=t.enableFingerPrint,r=t.enableFingerPrintEncrypt;if(o){var i=localStorage.getItem(J.J.FOT);i||(i=Date.now(),localStorage.setItem(J.J.FOT,i));var c=ee("/account/login"),s=ee("/account/register");(c||s)&&Promise.all([n.e(736),n.e(709)]).then(n.bind(n,2709)).then((function(e){(0,e.default)().then((function(e){var t={page:c?"account_signin":"account_signup"},n={deviceInfo:(0,y.Z)((0,y.Z)({},e),t)};r?te(n):function(e){var t=e.deviceInfo.transactionSessionId;v.Z.post("/api/v5/fd/dp/".concat(t),e).then((function(e){var t=e.data.fingerprintId;f.Z.set("fingerprint_id",t,(0,y.Z)({},(0,p.Ej)()))})).catch((function(){}))}(n)})).catch((function(){}))})).catch((function(){}))}};function oe(){try{var e=window.location.pathname,t=a.Z.localeMap,n=a.Z.langPath||"/",o=e.split("/")[1]||"";Object.values(t).includes(o)&&n!=="/".concat(o)&&A.k.info("LangPath_Error",{okGlobal:a.Z,customConfig:E.Dv})}catch(r){}}function re(){if(!(0,i.y)()){setTimeout(oe,1e3);var e=[".zd-chat-container","#ada-entry",".f-l .language-list",".header-language-dialog-scroll-container .language-ul",".nav-notice"],t="logger_link_info",n=!!document.querySelector(".home-container-404");!n&&window.localStorage.removeItem(t);var o=document.querySelector("body"),r=document.querySelector("#headerContainer"),c=document.querySelector("#footerContainer"),s=function(e,n){var o=function(e){for(var t=e.target,n=0;n<5;n++){if("A"===t.tagName)return t;if(!(t=t.parentElement))break}return null}(e),r=e.target;if(o){var i=window.__INIT_STATE__.appContext,c=i.project,s=i.version,u=window.location.pathname;try{var f=function(e){if(!(e instanceof Element))return"";for(var t=e,n=[],o=[t],r=0;r<4;r++){var i,a;o.push(null===(i=t)||void 0===i?void 0:i.parentNode),t=null===(a=t)||void 0===a?void 0:a.parentNode}return o.forEach((function(e){if(e instanceof Element){var t=e.tagName.toLowerCase();if(e.id)t+="#".concat(e.id);else if(e.className){var o=e.className.split(" ").filter(Boolean);t+=".".concat(o.join("."))}n.unshift(t)}})),n.join(">")}(o),v=document.querySelector(".nav-search"),g=document.querySelector(".trade-drop-panel-box-list"),p=v&&v.contains(o),m=g&&g.contains(o),h=c;if(n)h=p||m?"trade-common":"nav";else{var w=document.querySelector(".account-home-page");u===(0,l.zN)("/account/users")&&w&&w.contains(o)&&(h="growth")}var b=n?"okxNavVersion":s,y=o.getAttribute("href")||"",T="href=".concat(encodeURIComponent(y),",project=").concat(h,",selector=").concat(f,",triggerText=").concat(r.innerText,",fromUrl=").concat(u,",fromPath=").concat(u.replace(a.Z.langPath,""),",version=").concat(b,",isNav=").concat(n?"1":"0");if("defi-mode"===h){var Z=(d.Z.getProjectStorage("onChain")||{}).assetTabId;T+=",tab=".concat(Z)}window.localStorage.setItem(t,T)}catch(_){}}};o&&o.addEventListener("mousedown",(function(t){if(!e.some((function(e){var n=document.querySelector(e);return n&&n.contains(t.target)}))){var o=r&&r.contains(t.target),i=c&&c.contains(t.target);i&&n||s(t,o||i)}}))}}(new(function(){function e(){(0,o.Z)(this,e)}return(0,r.Z)(e,[{key:"init",value:function(){if(!(0,i.y)()){var e,t=a.Z.site,o=void 0===t?{}:t,r=a.Z.envSign,l=o.is,f=!!(void 0===l?{}:l).TR;window.setTimeout((function(){!f&&(0,s.j6)()}),200),c.Z.setConfig({popupDir:a.Z.isRTL?"rtl":void 0}),window.okui||(window.okui={}),window.addEventListener("load",G),k(),I(),!f&&ne(),!f&&Z(),!f&&((0,i.y)()||window.location.hash.includes("global-show-uk-risky-dialog")&&h().ui.showUkRiskDialog()),!f&&C.Z.listen(E.dT.OKX_HEADER_SITE_LIST,(function(e){e.isTRIp&&1!==d.Z.g.get("globalSiteListDialogHide")&&Promise.all([n.e(736),n.e(5),n.e(738),n.e(566),n.e(105),n.e(913),n.e(982)]).then(n.bind(n,3982)).then((function(t){(0,t.default)(e)})).catch((function(e){}))})),function(){var e=(0,p.Dv)(["irclickid","af_sub1"]),t=e.irclickid,n=e.af_sub1;t&&(0,p.lE)("ir_click_id",t),n&&(0,p.lE)("af_sub1",n)}(),V(),function(){var e,t=function(e){return(null===e||void 0===e?void 0:e.offsetHeight)||0},n=(0,M.i)(),o=window.innerHeight,r=document.querySelector("#headerContainer"),i=document.querySelector("#footerContainer"),c=document.querySelector("body > .home-container"),s=c&&((null===(e=window.getComputedStyle(c))||void 0===e?void 0:e.minHeight)||""),u=900;s&&s.includes("px")&&(u=Number(s.slice(0,-2))||900);var l=t(r)+t(i),d=(0,Y.Z)().media;o-l>u&&"sm"!==d&&c&&(window.location.pathname!==n.supportChat||!a.Z.isApp)&&(c.style.cssText+="min-height: calc(100vh - ".concat(l,"px);"))}(),!f&&S();var m=a.Z.cdnBaseUrl;if(!(null===(e=a.Z.site)||void 0===e?void 0:e.linkInOKX))try{u.Z.init({needContainer:!1,list:[{name:"chatbotLoader",skipCss:!0}]})}catch(T){}window.utils.monitor.newInstance({site:"okex",product:"seo",withPV:!0});var w=window.navigator.userAgent;/Googlebot/i.test(w)||f||n.e(968).then(n.bind(n,1968)).then((function(e){(0,e.default)()})).catch((function(){})),a.Z.isApp||f||Promise.all([n.e(736),n.e(390)]).then(n.bind(n,1390)).then((function(e){e.default.show()})).catch((function(){})),f&&function(){var e=window.navigator.userAgent.toLowerCase().includes("electron"),t=a.Z.isApp,o=a.Z.locale;if(!e&&!t){var r="".concat(g.Z.GET_HOME_ACTIVITY_INFO,"?locale=").concat(o);v.Z.getWithCache(r,{cacheSeconds:300}).then((function(e){var t=e.data.id,o=void 0===t?"":t,r="homeBannerClose",i=localStorage.getItem(r),a=Number(i)===Number(o);a||localStorage.removeItem(r),o&&!a&&Promise.all([n.e(736),n.e(117)]).then(n.bind(n,5117)).then((function(t){t.default.show((0,y.Z)((0,y.Z)({},e.data),{},{ACTIVITY_ID:r}))})).catch((function(e){}))})).catch((function(){}))}}(),["prod","pre"].includes(r)&&(0,b.ZP)({delay:!0,cdnBaseUrl:m}),re()}}}]),e}())).init()},7363:e=>{e.exports=React},1533:e=>{e.exports=ReactDOM},4627:e=>{e.exports=okxGlobal},5833:e=>{e.exports=utils.ont}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.m=e,(()=>{var e=[];n.O=(t,o,r,i)=>{if(!o){var a=1/0;for(l=0;l=i)&&Object.keys(n.O).every((e=>n.O[e](o[s])))?o.splice(s--,1):(c=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[o,r,i]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,o)=>(n.f[o](e,t),t)),[])),n.u=e=>"common/"+e+"."+{5:"b3781675",105:"145bb493",117:"bccd79a6",261:"a419a171",390:"065de0eb",566:"6c3f9f8a",577:"3fd68c8e",587:"2b73b564",709:"d7999e24",738:"1b6fb859",770:"e3e739ea",854:"45831071",887:"2071668a",913:"520e212e",938:"51a6f298",968:"5bccae81",982:"095b562a"}[e]+".js",n.miniCssF=e=>"common/"+e+"."+{5:"9aeefec4",390:"c6a3d156",566:"12fd15af",577:"1dff6414",587:"afee9bda",738:"8ca0a482",770:"635d3fef",854:"d25295c0",887:"10931396",913:"29717259",938:"635d3fef",982:"14d3a486"}[e]+".css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="okx-nav:";n.l=(o,r,i,a)=>{if(e[o])e[o].push(r);else{var c,s;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l{c.onerror=c.onload=null,clearTimeout(v);var r=e[o];if(delete e[o],c.parentNode&&c.parentNode.removeChild(c),r&&r.forEach((e=>e(n))),t)return t(n)},v=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=172,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&!e;)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{try{if(n.miniCssF){var e=n.miniCssF;n.miniCssF=function(t){var n=e(t);if("string"!==typeof n)return n;var o=window._okGlobal||window.okGlobal;return o&&o.isRTL&&/\.css$/.test(n)?n.replace(/\.css$/,".rtl.css"):n}}}catch(t){}})(),(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,o)=>{var r=n.miniCssF(e),i=n.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)o();else{var a=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=a,s.request=c,i.parentNode&&i.parentNode.removeChild(i),r(s)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,i,null,t,o)})),t={172:0};n.f.miniCss=(n,o)=>{t[n]?o.push(t[n]):0!==t[n]&&{5:1,390:1,566:1,577:1,587:1,738:1,770:1,854:1,887:1,913:1,938:1,982:1}[n]&&o.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={172:0};n.f.j=(t,o)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(/^(5|738|913)$/.test(t))e[t]=0;else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));o.push(r[2]=i);var a=n.p+n.u(t),c=new Error;n.l(a,(o=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",c.name="ChunkLoadError",c.type=i,c.request=a,r[1](c)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,o)=>{var r,i,[a,c,s]=o,u=0;if(a.some((t=>0!==e[t]))){for(r in c)n.o(c,r)&&(n.m[r]=c[r]);if(s)var l=s(n)}for(t&&t(o);un(2215)));o=n.O(o)})(); +//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/okx-nav/global/index.734eded6.js.map \ No newline at end of file From c8d8a50605094f2cccb94d127f18b622cf68cda8 Mon Sep 17 00:00:00 2001 From: Romeo Rosete <110788242+bombastictranz@users.noreply.github.com> Date: Sat, 13 Apr 2024 09:36:48 -0400 Subject: [PATCH 3/5] mobx-6.6.1.min.js.download Stock control supervisors --- mobx-6.6.1.min.js.download | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mobx-6.6.1.min.js.download diff --git a/mobx-6.6.1.min.js.download b/mobx-6.6.1.min.js.download new file mode 100644 index 0000000..4d46ba0 --- /dev/null +++ b/mobx-6.6.1.min.js.download @@ -0,0 +1,2 @@ +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).mobx={})}(this,(function(t){function n(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;rt.length)&&(n=t.length);for(var i=0,r=new Array(n);i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(t){return Object.assign((function(n,i){S(n,i,t)}),t)}function S(t,n,i){y(t,Kn)||c(t,Kn,w({},t[Kn])),function(t){return"override"===t.t}(i)||(t[Kn][n]=i)}function x(t,n,i){void 0===n&&(n=kn),void 0===i&&(i=kn);var r=new In(t);return n!==kn&&Mt(r,n),i!==kn&&Vt(r,i),r}function M(t,n,i){return Pt(t)?t:Array.isArray(t)?Jn.array(t,{name:i}):f(t)?Jn.object(t,void 0,{name:i}):l(t)?Jn.map(t,{name:i}):d(t)?Jn.set(t,{name:i}):"function"!=typeof t||_t(t)||Kt(t)?t:a(t)?ki(t):xi(i,t)}function V(t){return t}function N(t,n){return{t:t,i:n,u:R,o:k}}function R(t,n,i,r){var e;if(null!=(e=this.i)&&e.bound)return null===this.o(t,n,i,!1)?0:1;if(r===t.s)return null===this.o(t,n,i,!1)?0:2;if(_t(i.value))return 1;var u=E(t,this,n,i,!1);return Sn(r,n,u),2}function k(t,n,i,r){var e=E(t,this,n,i);return t.h(n,e,r)}function E(t,n,i,r,e){var u,o,s,f,a,c,h;void 0===e&&(e=pi.safeDescriptors);var v,l=r.value;return null!=(u=n.i)&&u.bound&&(l=l.bind(null!=(v=t.v)?v:t.s)),{value:$(null!=(o=null==(s=n.i)?void 0:s.name)?o:i.toString(),l,null!=(f=null==(a=n.i)?void 0:a.autoAction)&&f,null!=(c=n.i)&&c.bound?null!=(h=t.v)?h:t.s:void 0),configurable:!e||t.l,enumerable:!1,writable:!e}}function T(t,n){return{t:t,i:n,u:C,o:K}}function C(t,n,i,r){var e;if(r===t.s)return null===this.o(t,n,i,!1)?0:2;if(null!=(e=this.i)&&e.bound&&(!y(t.s,n)||!Kt(t.s[n]))&&null===this.o(t,n,i,!1))return 0;if(Kt(i.value))return 1;var u=L(t,0,0,i,!1,!1);return Sn(r,n,u),2}function K(t,n,i,r){var e,u=L(t,0,0,i,null==(e=this.i)?void 0:e.bound);return t.h(n,u,r)}function L(t,n,i,r,e,u){void 0===u&&(u=pi.safeDescriptors);var o,s=r.value;return Kt(s)||(s=ki(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.s)).isMobXFlow=!0),{value:s,configurable:!u||t.l,enumerable:!1,writable:!u}}function I(t,n){return{t:t,i:n,u:P,o:D}}function P(t,n,i){return null===this.o(t,n,i,!1)?0:1}function D(t,n,i,r){return t.p(n,w({},this.i,{get:i.get,set:i.set}),r)}function B(t,n){return{t:t,i:n,u:q,o:G}}function q(t,n,i){return null===this.o(t,n,i,!1)?0:1}function G(t,n,i,r){var e,u;return t.m(n,i.value,null!=(e=null==(u=this.i)?void 0:u.enhancer)?e:M,r)}function X(t){return{t:"true",i:t,u:W,o:H}}function W(t,n,i,r){var e,u,o,s;if(i.get)return Zn.u(t,n,i,r);if(i.set){var f=$(n.toString(),i.set);return r===t.s?null===t.h(n,{configurable:!pi.safeDescriptors||t.l,set:f})?0:2:(Sn(r,n,{configurable:!0,set:f}),2)}if(r!==t.s&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.i)&&s.autoBind?ki.bound:ki).u(t,n,i,r):(null!=(o=this.i)&&o.autoBind?xi.bound:xi).u(t,n,i,r);var c,h=!1===(null==(e=this.i)?void 0:e.deep)?Jn.ref:Jn;return"function"==typeof i.value&&null!=(u=this.i)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.s)),h.u(t,n,i,r)}function H(t,n,i,r){var e,u,o;return i.get?Zn.o(t,n,i,r):i.set?t.h(n,{configurable:!pi.safeDescriptors||t.l,set:$(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.i)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.s)),(!1===(null==(u=this.i)?void 0:u.deep)?Jn.ref:Jn).o(t,n,i,r))}function U(t){return t||Gn}function F(t){return!0===t.deep?M:!1===t.deep?V:(n=t.defaultDecorator)&&null!=(i=null==(r=n.i)?void 0:r.enhancer)?i:M;var n,i,r}function z(t,n,i){if(!o(n))return Pt(t)?t:f(t)?Jn.object(t,n,i):Array.isArray(t)?Jn.array(t,n):l(t)?Jn.map(t,n):d(t)?Jn.set(t,n):"object"==typeof t&&null!==t?t:Jn.box(t,n);S(t,n,Xn)}function $(t,n,i,r){function e(){return J(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,ri&&(ei.value=t,Object.defineProperty(e,"name",ei)),e}function J(t,n,i,r,e){var u=Y(0,n);try{return i.apply(r,e)}catch(t){throw u.j=t,t}finally{Q(u)}}function Y(t,n){var i=pi.trackingDerivation,r=!n||!i;bt();var e=pi.allowStateChanges;r&&(st(),e=tt(!0));var u={O:r,A:i,g:e,_:at(!0),S:!1,M:0,V:ii++,N:ni};return ni=u.V,u}function Q(t){ni!==t.V&&n(30),ni=t.N,void 0!==t.j&&(pi.suppressReactionErrors=!0),nt(t.g),ct(t._),yt(),t.O&&ft(t.A),pi.suppressReactionErrors=!1}function Z(t,n){var i=tt(t);try{return n()}finally{nt(i)}}function tt(t){var n=pi.allowStateChanges;return pi.allowStateChanges=t,n}function nt(t){pi.allowStateChanges=t}function it(t){return t instanceof vi}function rt(t){switch(t.R){case fi.k:return!1;case fi.T:case fi.C:return!0;case fi.K:for(var n=at(!0),i=st(),r=t.L,e=r.length,u=0;ur&&(r=s.R)}for(i.length=e,t.I=null,u=n.length;u--;){var f=n[u];0===f.B&<(f,t),f.B=0}for(;e--;){var a=i[e];1===a.B&&(a.B=0,vt(a,t))}r!==fi.k&&(t.R=r,t.q())}(t),ct(r),e}function ut(t){var n=t.L;t.L=[];for(var i=n.length;i--;)lt(n[i],t);t.R=fi.T}function ot(t){var n=st();try{return t()}finally{ft(n)}}function st(){var t=pi.trackingDerivation;return pi.trackingDerivation=null,t}function ft(t){pi.trackingDerivation=t}function at(t){var n=pi.allowStateReads;return pi.allowStateReads=t,n}function ct(t){pi.allowStateReads=t}function ht(t){if(t.R!==fi.k){t.R=fi.k;for(var n=t.L,i=n.length;i--;)n[i].G=fi.k}}function vt(t,n){t.X.add(n),t.G>n.R&&(t.G=n.R)}function lt(t,n){t.X.delete(n),0===t.X.size&&dt(t)}function dt(t){!1===t.W&&(t.W=!0,pi.pendingUnobservations.push(t))}function bt(){pi.inBatch++}function yt(){if(0==--pi.inBatch){wt();for(var t=pi.pendingUnobservations,n=0;n0&&dt(t),!1)}function mt(t){t.G!==fi.C&&(t.G=fi.C,t.X.forEach((function(t){t.R===fi.k&&t.q(),t.R=fi.C})))}function wt(){pi.inBatch>0||pi.isRunningReactions||wi(jt)}function jt(){pi.isRunningReactions=!0;for(var t=pi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r",n,t):u(i)?$(n,i,t):o(i)?S(n,i,t?gi:Oi):o(n)?_(N(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function gt(t){return J(0,!1,t,this,void 0)}function _t(t){return u(t)&&!0===t.isMobxAction}function St(t,n){function i(){t(u)}var r,e;void 0===n&&(n=Vn);var u,o=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var s=xt(n),f=!1;u=new mi(o,(function(){f||(f=!0,s((function(){f=!1,u.J||u.track(i)})))}),n.onError,n.requiresObservable)}else u=new mi(o,(function(){this.track(i)}),n.onError,n.requiresObservable);return u.Y(),u.Z()}function xt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Mi}function Mt(t,n,i){return Nt("onBO",t,n,i)}function Vt(t,n,i){return Nt("onBUO",t,n,i)}function Nt(t,n,i,r){var e="function"==typeof r?bn(n,i):bn(n),o=u(r)?r:i,s=t+"L";return e[s]?e[s].add(o):e[s]=new Set([o]),function(){var t=e[s];t&&(t.delete(o),0===t.size&&delete e[s])}}function Rt(t,n,i,r){var e=Cn(n),u=fn(t,r)[Ln];bt();try{Tn(e).forEach((function(t){u.o(t,e[t],!i||!(t in i)||i[t])}))}finally{yt()}return t}function kt(t){var n,i={name:t.tt};return t.L&&t.L.length>0&&(i.dependencies=(n=t.L,Array.from(new Set(n))).map(kt)),i}function Et(t){var n={name:t.tt};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(Et)),n}function Tt(){this.message="FLOW_CANCELLED"}function Ct(t){u(t.cancel)&&t.cancel()}function Kt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Lt(t,n){if(void 0===n)return hi(t);if(!1===cn(t))return!1;if(!t[Ln].nt.has(n))return!1;var i=bn(t,n);return hi(i)}function It(t,n){return!!t&&(void 0!==n?!!cn(t)&&t[Ln].nt.has(n):cn(t)||!!t[Ln]||Pn(t)||ji(t)||hi(t))}function Pt(t){return It(t)}function Dt(t){return cn(t)?t[Ln].it():Ui(t)||Yi(t)?Array.from(t.keys()):sn(t)?t.map((function(t,n){return n})):void n(5)}function Bt(t,i){return cn(t)?t[Ln].rt(i):Ui(t)||Yi(t)?t.has(i):sn(t)?i>=0&&i0}function Jt(t,n){var i=t.ot||(t.ot=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Yt(t,i){var r=st();try{for(var e=[].concat(t.ot||[]),u=0,o=e.length;u0}function Zt(t,n){var i=t.st||(t.st=[]);return i.push(n),e((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function tn(t,n){var i=st(),r=t.st;if(r){for(var e=0,u=(r=r.slice()).length;enr){for(var n=nr;n=0&&r++}n=wn(n),i=wn(i);var a="[object Array]"===f;if(!a){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(u(c)&&c instanceof c&&u(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(e=e||[]).length;v--;)if(e[v]===n)return o[v]===i;if(e.push(n),o.push(i),a){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,e,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!y(i,l=d[v])||!t(n[l],i[l],r-1,e,o))return!1}return e.pop(),o.pop(),!0}(t,n,i)}function wn(t){return sn(t)?t.slice():l(t)||Ui(t)||d(t)||Yi(t)?Array.from(t.entries()):t}function jn(t){return t[Symbol.iterator]=On,t}function On(){return this}var An={},gn=Object.assign,_n=Object.getOwnPropertyDescriptor,Sn=Object.defineProperty,xn=Object.prototype,Mn=[];Object.freeze(Mn);var Vn={};Object.freeze(Vn);var Nn="undefined"!=typeof Proxy,Rn=Object.toString(),kn=function(){},En=void 0!==Object.getOwnPropertySymbols,Tn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:En?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Cn=Object.getOwnPropertyDescriptors||function(t){var n={};return Tn(t).forEach((function(i){n[i]=_n(t,i)})),n},Kn=Symbol("mobx-stored-annotations"),Ln=Symbol("mobx administration"),In=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.W=!1,this.H=!1,this.X=new Set,this.B=0,this.F=0,this.G=fi.T,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return pt(this)},n.reportChanged=function(){bt(),mt(this),yt()},n.toString=function(){return this.tt},t}(),Pn=v("Atom",In),Dn={identity:function(t,n){return t===n},structural:function(t,n){return mn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return mn(t,n,1)}},Bn=_({t:"override",u:function(){return 0},o:function(){n("'"+this.t+"' can only be used with 'makeObservable'")}}),qn=X(),Gn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Gn);var Xn=B("observable"),Wn=B("observable.ref",{enhancer:V}),Hn=B("observable.shallow",{enhancer:function(t,n,i){return null==t||cn(t)||sn(t)||Ui(t)||Yi(t)?t:Array.isArray(t)?Jn.array(t,{name:i,deep:!1}):f(t)?Jn.object(t,void 0,{name:i,deep:!1}):l(t)?Jn.map(t,{name:i,deep:!1}):d(t)?Jn.set(t,{name:i,deep:!1}):void 0}}),Un=B("observable.struct",{enhancer:function(t,n){return mn(t,n)?n:t}}),Fn=_(Xn);Object.assign(z,Fn);var zn,$n,Jn=gn(z,{box:function(t,n){var i=U(n);return new oi(t,F(i),i.name,!0,i.equals)},array:function(t,n){var i=U(n);return(!1===pi.useProxies||!1===i.proxy?dn:nn)(t,F(i),i.name)},map:function(t,n){var i=U(n);return new Hi(t,F(i),i.name)},set:function(t,n){var i=U(n);return new Ji(t,F(i),i.name)},object:function(t,n,i){return Rt(!1===pi.useProxies||!1===(null==i?void 0:i.proxy)?fn({},i):function(t,n){var i,e;return r(),null!=(e=(i=(t=fn(t,n))[Ln]).v)?e:i.v=new Proxy(t,Ei)}({},i),t,n)},ref:_(Wn),shallow:_(Hn),deep:Fn,struct:_(Un)}),Yn=I("computed"),Qn=I("computed.struct",{equals:Dn.structural}),Zn=function(t,n){if(o(n))return S(t,n,Yn);if(f(t))return _(I("computed",t));var i=f(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new ci(i)};Object.assign(Zn,Yn),Zn.struct=_(Qn);var ti,ni=0,ii=1,ri=null!=(zn=null==($n=_n((function(){}),"name"))?void 0:$n.configurable)&&zn,ei={value:"action",configurable:!0,writable:!1,enumerable:!1};ti=Symbol.toPrimitive;var ui,oi=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=Dn.default),(o=t.call(this,r)||this).enhancer=void 0,o.tt=void 0,o.equals=void 0,o.wt=!1,o.ot=void 0,o.st=void 0,o.jt=void 0,o.dehancer=void 0,o.enhancer=i,o.tt=r,o.equals=u,o.jt=i(n,void 0,r),o}j(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.Ot(t))!==pi.UNCHANGED&&this.At(t)},i.Ot=function(t){if($t(this)){var n=Yt(this,{object:this,type:Ci,newValue:t});if(!n)return pi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.tt),this.equals(this.jt,t)?pi.UNCHANGED:t},i.At=function(t){var n=this.jt;this.jt=t,this.reportChanged(),Qt(this)&&tn(this,{type:Ci,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i.gt=function(t){return Jt(this,t)},i._t=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:Ci,newValue:this.jt,oldValue:void 0}),Zt(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.jt+"]"},i.valueOf=function(){return b(this.get())},i[ti]=function(){return this.valueOf()},n}(In),si=v("ObservableValue",oi);ui=Symbol.toPrimitive;var fi,ai,ci=function(){function t(t){this.R=fi.T,this.L=[],this.I=null,this.H=!1,this.W=!1,this.X=new Set,this.B=0,this.D=0,this.F=0,this.G=fi.k,this.P=0,this.jt=new vi(null),this.tt=void 0,this.St=void 0,this.xt=!1,this.Mt=!1,this.derivation=void 0,this.Vt=void 0,this.ut=ai.NONE,this.Nt=void 0,this.Rt=void 0,this.kt=void 0,this.Et=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.tt=t.name||"ComputedValue",t.set&&(this.Vt=$("ComputedValue-setter",t.set)),this.Rt=t.equals||(t.compareStructural||t.struct?Dn.structural:Dn.default),this.Nt=t.context,this.kt=t.requiresReaction,this.Et=!!t.keepAlive}var i=t.prototype;return i.q=function(){!function(t){t.G===fi.k&&(t.G=fi.K,t.X.forEach((function(t){t.R===fi.k&&(t.R=fi.K,t.q())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.xt&&n(32,this.tt,this.derivation),0!==pi.inBatch||0!==this.X.size||this.Et){if(pt(this),rt(this)){var t=pi.trackingContext;this.Et&&!t&&(pi.trackingContext=this),this.trackAndCompute()&&function(t){t.G!==fi.C&&(t.G=fi.C,t.X.forEach((function(n){n.R===fi.K?n.R=fi.C:n.R===fi.k&&(t.G=fi.k)})))}(this),pi.trackingContext=t}}else rt(this)&&(this.Tt(),bt(),this.jt=this.Ct(!1),yt());var i=this.jt;if(it(i))throw i.cause;return i},i.set=function(t){if(this.Vt){this.Mt&&n(33,this.tt),this.Mt=!0;try{this.Vt.call(this.Nt,t)}finally{this.Mt=!1}}else n(34,this.tt)},i.trackAndCompute=function(){var t=this.jt,n=this.R===fi.T,i=this.Ct(!0),r=n||it(t)||it(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.xt=!0;var n,i=tt(!1);if(t)n=et(this,this.derivation,this.Nt);else if(!0===pi.disableErrorBoundaries)n=this.derivation.call(this.Nt);else try{n=this.derivation.call(this.Nt)}catch(t){n=new vi(t)}return nt(i),this.xt=!1,n},i.U=function(){this.Et||(ut(this),this.jt=void 0)},i._t=function(t,n){var i=this,r=!0,e=void 0;return St((function(){var u=i.get();if(!r||n){var o=st();t({observableKind:"computed",debugObjectName:i.tt,type:Ci,object:i,newValue:u,oldValue:e}),ft(o)}r=!1,e=u}))},i.Tt=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return b(this.get())},i[ui]=function(){return this.valueOf()},t}(),hi=v("ComputedValue",ci);!function(t){t[t.T=-1]="NOT_TRACKING_",t[t.k=0]="UP_TO_DATE_",t[t.K=1]="POSSIBLY_STALE_",t[t.C=2]="STALE_"}(fi||(fi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(ai||(ai={}));var vi=function(t){this.cause=void 0,this.cause=t},li=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],di=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},bi=!0,yi=!1,pi=function(){var t=i();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(bi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new di).version&&(bi=!1),bi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new di):(setTimeout((function(){yi||n(35)}),1),new di)}(),mi=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.Kt=void 0,this.Lt=void 0,this.It=void 0,this.L=[],this.I=[],this.R=fi.T,this.B=0,this.D=0,this.P=0,this.J=!1,this.Pt=!1,this.Dt=!1,this.Bt=!1,this.ut=ai.NONE,this.tt=t,this.Kt=n,this.Lt=i,this.It=r}var n=t.prototype;return n.q=function(){this.Y()},n.Y=function(){this.Pt||(this.Pt=!0,pi.pendingReactions.push(this),wt())},n.isScheduled=function(){return this.Pt},n.$=function(){if(!this.J){bt(),this.Pt=!1;var t=pi.trackingContext;if(pi.trackingContext=this,rt(this)){this.Dt=!0;try{this.Kt()}catch(t){this.qt(t)}}pi.trackingContext=t,yt()}},n.track=function(t){if(!this.J){bt(),this.Bt=!0;var n=pi.trackingContext;pi.trackingContext=this;var i=et(this,t,void 0);pi.trackingContext=n,this.Bt=!1,this.Dt=!1,this.J&&ut(this),it(i)&&this.qt(i.cause),yt()}},n.qt=function(t){var n=this;if(this.Lt)this.Lt(t,this);else{if(pi.disableErrorBoundaries)throw t;pi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),pi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.J||(this.J=!0,this.Bt||(bt(),ut(this),yt()))},n.Z=function(){var t=this.dispose.bind(this);return t[Ln]=this,t},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(t){void 0===t&&(t=!1),Xt(this,t)},t}(),wi=function(t){return t()},ji=v("Reaction",mi),Oi=N("action"),Ai=N("action.bound",{bound:!0}),gi=N("autoAction",{autoAction:!0}),_i=N("autoAction.bound",{autoAction:!0,bound:!0}),Si=At(!1);Object.assign(Si,Oi);var xi=At(!0);Object.assign(xi,gi),Si.bound=_(Ai),xi.bound=_(_i);var Mi=function(t){return t()},Vi=0;Tt.prototype=Object.create(Error.prototype);var Ni=T("flow"),Ri=T("flow.bound",{bound:!0}),ki=Object.assign((function(t,n){if(o(n))return S(t,n,Ni);var i=t,r=i.name||"",e=function(){var t,n=this,e=arguments,o=++Vi,s=Si(r+" - runid: "+o+" - init",i).apply(n,e),f=void 0,a=new Promise((function(n,i){function e(t){var n;f=void 0;try{n=Si(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function a(t){var n;f=void 0;try{n=Si(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!u(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(e,a);t.then(c,i)}var h=0;t=i,e(void 0)}));return a.cancel=Si(r+" - runid: "+o+" - cancel",(function(){try{f&&Ct(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(kn,kn),Ct(i),t(new Tt)}catch(n){t(n)}})),a};return e.isMobXFlow=!0,e}),Ni);ki.bound=_(Ri);var Ei={has:function(t,n){return zt(t).rt(n)},get:function(t,n){return zt(t).lt(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=zt(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=zt(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=zt(t).h(n,i))||r},ownKeys:function(t){return zt(t).et()},preventExtensions:function(){n(13)}},Ti=Symbol("mobx-keys"),Ci="update",Ki={get:function(t,n){var i=t[Ln];return n===Ln?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?y(Ii,n)?Ii[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[Ln];return"length"===n&&r.Wt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){n(15)}},Li=function(){function t(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ht=void 0,this.Ut=void 0,this.at=void 0,this.nt=[],this.ot=void 0,this.st=void 0,this.Ft=void 0,this.dehancer=void 0,this.v=void 0,this.zt=0,this.Ht=i,this.Ut=r,this.at=new In(t),this.Ft=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=t.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ct=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.gt=function(t){return Jt(this,t)},i._t=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.at.tt,type:"splice",index:0,added:this.nt.slice(),addedCount:this.nt.length,removed:[],removedCount:0}),Zt(this,t)},i.Xt=function(){return this.at.reportObserved(),this.nt.length},i.Wt=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var i=this.nt.length;if(t!==i)if(t>i){for(var r=new Array(t-i),e=0;e0&&ln(t+i+1)},i.ft=function(t,n,i){var r=this,e=this.nt.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Mn),$t(this)){var u=Yt(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return Mn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Ft(t,void 0)})),this.Ut){var o=i.length-n;this.Jt(e,o)}var s=this.Yt(t,n,i);return 0===n&&0===i.length||this.Qt(t,i,s),this.ct(s)},i.Yt=function(t,n,i){var r;if(i.length<1e4)return(r=this.nt).splice.apply(r,[t,n].concat(i));var e=this.nt.slice(t,t+n),u=this.nt.slice(t+n);this.nt.length+=i.length-n;for(var o=0;o2?i-2:0),e=2;e-1&&(this.splice(i,1),!0)}};rn("concat",en),rn("flat",en),rn("includes",en),rn("indexOf",en),rn("join",en),rn("lastIndexOf",en),rn("slice",en),rn("toString",en),rn("toLocaleString",en),rn("every",un),rn("filter",un),rn("find",un),rn("findIndex",un),rn("flatMap",un),rn("forEach",un),rn("map",un),rn("some",un),rn("reduce",on),rn("reduceRight",on);var Pi,Di,Bi=v("ObservableArrayAdministration",Li),qi={},Gi="add";Pi=Symbol.iterator,Di=Symbol.toStringTag;var Xi,Wi,Hi=function(){function t(t,i,r){var e=this;void 0===i&&(i=M),void 0===r&&(r="ObservableMap"),this.Ft=void 0,this.tt=void 0,this[Ln]=qi,this.yt=void 0,this.pt=void 0,this.bt=void 0,this.ot=void 0,this.st=void 0,this.dehancer=void 0,this.Ft=i,this.tt=r,u(Map)||n(18),this.bt=x("ObservableMap.keys()"),this.yt=new Map,this.pt=new Map,Z(!0,(function(){e.merge(t)}))}var i=t.prototype;return i.rt=function(t){return this.yt.has(t)},i.has=function(t){var n=this;if(!pi.trackingDerivation)return this.rt(t);var i=this.pt.get(t);if(!i){var r=i=new oi(this.rt(t),V,"ObservableMap.key?",!1);this.pt.set(t,r),Vt(r,(function(){return n.pt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.rt(t);if($t(this)){var r=Yt(this,{type:i?Ci:Gi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.tn(t,n):this.nn(t,n),this},i.delete=function(t){var n=this;if($t(this)&&!Yt(this,{type:"delete",object:this,name:t}))return!1;if(this.rt(t)){var i=Qt(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.yt.get(t).jt,name:t}:null;return Ht((function(){var i;n.bt.reportChanged(),null==(i=n.pt.get(t))||i.At(!1),n.yt.get(t).At(void 0),n.yt.delete(t)})),i&&tn(this,r),!0}return!1},i.tn=function(t,n){var i=this.yt.get(t);if((n=i.Ot(n))!==pi.UNCHANGED){var r=Qt(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:Ci,object:this,oldValue:i.jt,name:t,newValue:n}:null;i.At(n),r&&tn(this,e)}},i.nn=function(t,n){var i=this;Ht((function(){var r,e=new oi(n,i.Ft,"ObservableMap.key",!1);i.yt.set(t,e),n=e.jt,null==(r=i.pt.get(t))||r.At(!0),i.bt.reportChanged()}));var r=Qt(this);r&&tn(this,r?{observableKind:"map",debugObjectName:this.tt,type:Gi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.$t(this.yt.get(t).get()):this.$t(void 0)},i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.yt.keys()},i.values=function(){var t=this,n=this.keys();return jn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return jn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Pi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(t){var i=this;return Ui(t)&&(t=new Map(t)),Ht((function(){f(t)?function(t){var n=Object.keys(t);if(!En)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return xn.propertyIsEnumerable.call(t,n)}))):n}(t).forEach((function(n){return i.set(n,t[n])})):Array.isArray(t)?t.forEach((function(t){return i.set(t[0],t[1])})):l(t)?(t.constructor!==Map&&n(19,t),t.forEach((function(t,n){return i.set(n,t)}))):null!=t&&n(20,t)})),this},i.clear=function(){var t=this;Ht((function(){ot((function(){for(var n,i=g(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(t){var i=this;return Ht((function(){for(var r,e=function(t){if(l(t)||Ui(t))return t;if(Array.isArray(t))return new Map(t);if(f(t)){var i=new Map;for(var r in t)i.set(r,t[r]);return i}return n(21,t)}(t),u=new Map,o=!1,s=g(i.yt.keys());!(r=s()).done;){var a=r.value;if(!e.has(a))if(i.delete(a))o=!0;else{var c=i.yt.get(a);u.set(a,c)}}for(var h,v=g(e.entries());!(h=v()).done;){var d=h.value,b=d[0],y=d[1],p=i.yt.has(b);if(i.set(b,y),i.yt.has(b)){var m=i.yt.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.yt.size!==u.size)i.bt.reportChanged();else for(var w=i.yt.keys(),j=u.keys(),O=w.next(),A=j.next();!O.done;){if(O.value!==A.value){i.bt.reportChanged();break}O=w.next(),A=j.next()}i.yt=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i._t=function(t){return Zt(this,t)},i.gt=function(t){return Jt(this,t)},m(t,[{key:"size",get:function(){return this.bt.reportObserved(),this.yt.size}},{key:Di,get:function(){return"Map"}}]),t}(),Ui=v("ObservableMap",Hi),Fi={};Xi=Symbol.iterator,Wi=Symbol.toStringTag;var zi,$i,Ji=function(){function t(t,i,r){void 0===i&&(i=M),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[Ln]=Fi,this.yt=new Set,this.at=void 0,this.st=void 0,this.ot=void 0,this.dehancer=void 0,this.Ft=void 0,this.tt=r,u(Set)||n(22),this.at=x(this.tt),this.Ft=function(t,n){return i(t,n,r)},t&&this.replace(t)}var i=t.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Ht((function(){ot((function(){for(var n,i=g(t.yt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=g(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if($t(this)&&!Yt(this,{type:Gi,object:this,newValue:t}))return this;if(!this.has(t)){Ht((function(){n.yt.add(n.Ft(t,void 0)),n.at.reportChanged()}));var i=Qt(this);i&&tn(this,i?{observableKind:"set",debugObjectName:this.tt,type:Gi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if($t(this)&&!Yt(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=Qt(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return Ht((function(){n.at.reportChanged(),n.yt.delete(t)})),i&&tn(this,r),!0}return!1},i.has=function(t){return this.at.reportObserved(),this.yt.has(this.$t(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return jn({next:function(){var r=t;return t+=1,r=0&&pi.globalReactionErrorHandlers.splice(n,1)}},t.override=Bn,t.ownKeys=qt,t.reaction=function(t,n,i){function r(){if(d=!1,!y.J){var n=!1;y.track((function(){var i=Z(!1,(function(){return t(y)}));n=l||!b(s,i),f=s,s=i})),(l&&i.fireImmediately||!l&&n)&&c(s,f,y),l=!1}}var e;void 0===i&&(i=Vn);var u,o,s,f,a=null!=(e=i.name)?e:"Reaction",c=Si(a,i.onError?(u=i.onError,o=n,function(){try{return o.apply(this,arguments)}catch(t){u.call(this,t)}}):n),h=!i.scheduler&&!i.delay,v=xt(i),l=!0,d=!1,b=i.compareStructural?Dn.structural:i.equals||Dn.default,y=new mi(a,(function(){l||h?r():d||(d=!0,v(r))}),i.onError,i.requiresObservable);return y.Y(),y.Z()},t.remove=function(t,i){cn(t)?t[Ln].Gt(i):Ui(t)||Yi(t)?t.delete(i):sn(t)?("number"!=typeof i&&(i=parseInt(i,10)),t.splice(i,1)):n(9)},t.runInAction=gt,t.set=function t(i,r,e){if(2!==arguments.length||Yi(i))cn(i)?i[Ln].dt(r,e):Ui(i)?i.set(r,e):Yi(i)?i.add(r):sn(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&n("Invalid index: '"+r+"'"),bt(),r>=i.length&&(i.length=r+1),i[r]=e,yt()):n(8);else{bt();var u=r;try{for(var o in u)t(i,o,u[o])}finally{yt()}}},t.spy=Ot,t.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Pt(n))return n;if(si(n)||hi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(sn(n)){var r=Gt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Yi(n)){var e=Gt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ui(n)){var u=Gt(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=Gt(i,n,{});return qt(n).forEach((function(r){xn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)},t.trace=Xt,t.transaction=Ht,t.untracked=ot,t.values=function(t){return cn(t)?Dt(t).map((function(n){return t[n]})):Ui(t)?Dt(t).map((function(n){return t.get(n)})):Yi(t)?Array.from(t.values()):sn(t)?t.slice():void n(6)},t.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Ft(t,n):Ut(t,n,i||{})},Object.defineProperty(t,"__esModule",{value:!0})})); +//# sourceMappingURL=mobx.umd.production.min.js.map From 193a195526d1a38c9d770048b1bf5bc925f87243 Mon Sep 17 00:00:00 2001 From: Romeo Rosete <110788242+bombastictranz@users.noreply.github.com> Date: Sat, 13 Apr 2024 09:38:15 -0400 Subject: [PATCH 4/5] mobxreact-7.5.1.min.js.download Stock control supervisors --- mobxreact-7.5.1.min.js.download | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mobxreact-7.5.1.min.js.download diff --git a/mobxreact-7.5.1.min.js.download b/mobxreact-7.5.1.min.js.download new file mode 100644 index 0000000..66cb47f --- /dev/null +++ b/mobxreact-7.5.1.min.js.download @@ -0,0 +1,2 @@ +!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("mobx"),require("react"),require("mobx-react-lite")):"function"==typeof define&&define.amd?define(["exports","mobx","react","mobx-react-lite"],r):r((e=e||self).mobxReact={},e.mobx,e.React,e.mobxReactLite)}(this,(function(e,r,t,n){"use strict";var o="default"in t?t.default:t,i=0,a={};function c(e){return a[e]||(a[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react "+e+" ("+i+")";return i++,r}(e)),a[e]}function s(e,r){if(u(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o2?n-2:0),i=2;i {}` or `render = function() {}` is not supported.")}return r.render=function(){return n.isUsingStaticRendering()||(this.render=x.call(this,i)),this.render()},m(r,"componentDidMount",(function(){this[O]=!1,this.render[v]||t.Component.prototype.forceUpdate.call(this)})),m(r,"componentWillUnmount",(function(){if(!n.isUsingStaticRendering()){var e=this.render[v];if(e)e.dispose(),this.render[v]=null;else{var r=P(this);console.warn("The reactive render of an observer class component ("+r+")\n was overriden after MobX attached. This may result in a memory leak if the\n overriden reactive render was not properly disposed.")}this[O]=!0}})),e}function P(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function x(e){var n=this;f(this,g,!1),f(this,w,!1);var o=P(this),i=e.bind(this),a=!1;return function e(){var c;a=!1;var s=null!=(c=e[v])?c:e[v]=function(){var e=new r.Reaction(o+".render()",(function(){if(!a&&(a=!0,!0!==n[O])){var r=!0;try{f(n,w,!0),n[g]||t.Component.prototype.forceUpdate.call(n),r=!1}finally{f(n,w,!1),r&&(e.dispose(),n.render[v]=null)}}}));return e.reactComponent=n,e}(),u=void 0,l=void 0;if(s.track((function(){try{l=r._allowStateChanges(!1,i)}catch(e){u=e}})),u)throw u;return l}}function R(e,r){return n.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!s(this.props,e)}function S(e,t){var n=c("reactProp_"+t+"_valueHolder"),o=c("reactProp_"+t+"_atomHolder");function i(){return this[o]||f(this,o,r.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=r._allowStateReadsStart(!0)),i.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&r._allowStateReadsEnd(e),this[n]},set:function(e){this[w]||s(this[n],e)?f(this,n,e):(f(this,n,e),f(this,g,!0),i.call(this).reportChanged(),f(this,g,!1))}})}function C(e){return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(t.Component,e)||Object.prototype.isPrototypeOf.call(t.PureComponent,e)?j(e):n.observer(e)}function E(){return(E=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,A),n=o.useContext(k),i=o.useRef(E({},n,t));return o.createElement(k.Provider,{value:i.current},r)}function _(e,r,t,n){var i,a,c,s=o.forwardRef((function(t,n){var i=E({},t),a=o.useContext(k);return Object.assign(i,e(a||{},i)||{}),n&&(i.ref=n),o.createElement(r,i)}));return n&&(s=C(s)),s.isMobxInjector=!0,i=r,a=s,c=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(e){l[e]||-1!==c.indexOf(e)||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))})),s.wrappedComponent=r,s.displayName=function(e,r){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r?"inject-with-"+r+"("+t+")":"inject("+t+")"}(r,t),s}function M(e){return function(r,t){return e.forEach((function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}})),t}}U.displayName="MobXProvider";var T=c("disposeOnUnmountProto"),q=c("disposeOnUnmountInst");function D(){var e=this;[].concat(this[T]||[],this[q]||[]).forEach((function(r){var t="string"==typeof r?e[r]:r;null!=t&&(Array.isArray(t)?t.map((function(e){return e()})):t())}))}function N(e){function t(t,n,o,i,a,c){for(var s=arguments.length,u=new Array(s>6?s-6:0),l=6;l>",c=c||o,null==n[o]?t?new Error("The "+a+" `"+c+"` is marked as required in `"+i+"`, but its value is `"+(null===n[o]?"null":"undefined")+"`."):null:e.apply(void 0,[n,o,i,a,c].concat(u))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function L(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function I(e,t){return N((function(n,o,i,a,c){return r.untracked((function(){if(e&&L(n[o])===t.toLowerCase())return null;var a;switch(t){case"Array":a=r.isObservableArray;break;case"Object":a=r.isObservableObject;break;case"Map":a=r.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var s=n[o];if(!a(s)){var u=function(e){var r=L(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(s),l=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+c+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+l+".")}return null}))}))}function X(e,t){return N((function(n,o,i,a,c){for(var s=arguments.length,u=new Array(s>5?s-5:0),l=5;l Date: Sat, 13 Apr 2024 09:39:45 -0400 Subject: [PATCH 5/5] mobxreactlite-3.4.0.min.js.download Stock control supervisors --- mobxreactlite-3.4.0.min.js.download | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mobxreactlite-3.4.0.min.js.download diff --git a/mobxreactlite-3.4.0.min.js.download b/mobxreactlite-3.4.0.min.js.download new file mode 100644 index 0000000..efe8666 --- /dev/null +++ b/mobxreactlite-3.4.0.min.js.download @@ -0,0 +1,2 @@ +!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","mobx","react","react-dom"],r):r((e=e||self).mobxReactLite={},e.mobx,e.React,e.ReactDOM)}(this,(function(e,r,t,n){"use strict";var o="default"in t?t.default:t;if(!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function i(e){e()}function u(e){e||(e=i),r.configure({reactionScheduler:e})}function a(e){return r.getDependencyTree(e)}var c="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function f(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+s}}var s=1e4;function d(e){var r=new Map,t=1,n=new e((function(e){var t=r.get(e);t&&(t.reaction.dispose(),r.delete(e))}));return{addReactionToTrack:function(e,o,i){var u=t++;return n.register(i,u,e),e.current=f(o),e.current.finalizationRegistryCleanupToken=u,r.set(u,e.current),e.current},recordReactionAsCommitted:function(e){n.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&r.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=t.cleanAt&&(t.reaction.dispose(),e.current=null,r.delete(e))})),r.size>0&&t()}return{addReactionToTrack:function(e,n,o){return e.current=f(n),r.add(e),t(),e.current},recordReactionAsCommitted:function(e){r.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),n())},resetCleanupScheduleForTests:function(){if(r.size>0){for(var t,n=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return l(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,void 0):void 0}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(t=n()).done;){var o=t.value,i=o.current;i&&(i.reaction.dispose(),o.current=null)}r.clear()}e&&(clearTimeout(e),e=void 0)}}}var p=c?d(c):m(),v=p.addReactionToTrack,b=p.recordReactionAsCommitted,y=p.resetCleanupScheduleForTests,h=!1;function w(e){h=e}function g(){return h}function R(e){return"observer"+e}var T=function(){};function S(){return new T}function x(e,t){if(void 0===t&&(t="observed"),g())return e();var n=o.useState(S)[0],i=o.useState()[1],u=function(){return i([])},c=o.useRef(null);if(!c.current)var f=new r.Reaction(R(t),(function(){s.mounted?u():s.changedBeforeMount=!0})),s=v(c,f,n);var d,l,m=c.current.reaction;if(o.useDebugValue(m,a),o.useEffect((function(){return b(c),c.current?(c.current.mounted=!0,c.current.changedBeforeMount&&(c.current.changedBeforeMount=!1,u())):(c.current={reaction:new r.Reaction(R(t),(function(){u()})),mounted:!0,changedBeforeMount:!1,cleanAt:Infinity},u()),function(){c.current.reaction.dispose(),c.current=null}}),[]),m.track((function(){try{d=e()}catch(e){l=e}})),l)throw l;return d}var O="function"==typeof Symbol&&Symbol.for,A=O?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,C=O?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof,$={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function k(e){var r=e.children||e.render;return"function"!=typeof r?null:x(r)}function j(e){var n=t.useState((function(){return r.observable(e,{},{deep:!1})}))[0];return r.runInAction((function(){Object.assign(n,e)})),n}k.displayName="Observer",u(n.unstable_batchedUpdates),e.Observer=k,e.clearTimers=y,e.enableStaticRendering=w,e.isObserverBatched=function(){return!0},e.isUsingStaticRendering=g,e.observer=function(e,r){var n;if(C&&e.$$typeof===C)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(g())return e;var o=null!=(n=null==r?void 0:r.forwardRef)&&n,i=e,u=e.displayName||e.name;if(A&&e.$$typeof===A&&(o=!0,"function"!=typeof(i=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,c,f=function(e,r){return x((function(){return i(e,r)}),u)};return""!==u&&(f.displayName=u),e.contextTypes&&(f.contextTypes=e.contextTypes),o&&(f=t.forwardRef(f)),f=t.memo(f),a=e,c=f,Object.keys(a).forEach((function(e){$[e]||Object.defineProperty(c,e,Object.getOwnPropertyDescriptor(a,e))})),f},e.observerBatching=u,e.useAsObservableSource=j,e.useLocalObservable=function(e,n){return t.useState((function(){return r.observable(e(),n,{autoBind:!0})}))[0]},e.useLocalStore=function(e,n){var o=n&&j(n);return t.useState((function(){return r.observable(e(o),void 0,{autoBind:!0})}))[0]},e.useObserver=function(e,r){return void 0===r&&(r="observed"),x(e,r)},e.useStaticRendering=function(e){w(e)},Object.defineProperty(e,"__esModule",{value:!0})})); +//# sourceMappingURL=mobxreactlite.umd.production.min.js.map